Reduced damage of Buzzkill and Sup Slaughterer holdouts
Increased Sup Slaughterer's use time to kill spam meta Also fixed Sup Slaughterer's lingering saw dealing more damage when fired from the holdout than when fired from a plain right-click
This commit is contained in:
1 parent
a99a7e93e3
commit
4d2243de1f
5 files changed
+17
-13
No files matched your search
@@ -42,8 +42,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
// The holdout deals 1.5x base damage.
|
||||
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<BuzzkillHoldout>(), (int)(damage * 1.5), knockback, player.whoAmI);
|
||||
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<BuzzkillHoldout>(), damage, knockback, player.whoAmI);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,8 +58,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Item.damage = 100;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.crit = 21;
|
||||
Item.useTime = 10;
|
||||
Item.useAnimation = 10;
|
||||
Item.useTime = Item.useAnimation = 30;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
@@ -124,8 +123,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
return false;
|
||||
}
|
||||
|
||||
// The holdout deals 2x base damage.
|
||||
Projectile.NewProjectile(source, position, velocity, Item.shoot, damage * 2, knockback, player.whoAmI);
|
||||
// The holdout deals 1.5x base damage.
|
||||
Projectile.NewProjectile(source, position, velocity, Item.shoot, (int)(damage * 1.5), knockback, player.whoAmI);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -390,7 +390,7 @@ WulfrumDiggingTurtle: {
|
||||
|
||||
WulfrumDrill: {
|
||||
DisplayName: Wulfrum Drill
|
||||
Tooltip: {$Common.ArmorPenetration}
|
||||
Tooltip: "{$Common.ArmorPenetration}"
|
||||
}
|
||||
|
||||
WulfrumScaffoldKit: {
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
int sawLevel = (SawPower >= 1f).ToInt() + (SawPower >= 0.25f).ToInt();
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
{
|
||||
float sawDamageMult = MathHelper.Lerp(1f, 5f, SawPower) / 1.5f; // The damage must be divided by 1.5 to offset the holdout having 1.5x base damage.
|
||||
float sawDamageMult = MathHelper.Lerp(1f, 5f, SawPower);
|
||||
int sawPierce = (int)MathHelper.Lerp(2f, 6f, SawPower);
|
||||
|
||||
Projectile buzzsaw = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitY) * Owner.HeldItem.shootSpeed, ModContent.ProjectileType<BuzzkillSaw>(), (int)(Projectile.damage * sawDamageMult), (int)(Projectile.knockBack * (sawDamageMult / 2)), Main.myPlayer, sawLevel);
|
||||
@@ -179,13 +179,16 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
|
||||
// The holdout can deal damage; you're literally spinning up a buzzsaw at the end, after all.
|
||||
public override bool? CanDamage() => !NoSawOnHoldout;
|
||||
public override bool? CanDamage() => !NoSawOnHoldout && Time % Projectile.localNPCHitCooldown == 0;
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<HeavyBleeding>(), 240);
|
||||
SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Custom/SwiftSlice") { Volume = 0.7f }, GunTipPosition);
|
||||
|
||||
if (damageDone > 2 && !target.Calamity().IsArmored())
|
||||
Projectile.damage = (int)(Projectile.damage * 0.8f);
|
||||
|
||||
int SawLevel = (Time / ChargeupTime >= 1f).ToInt() + (Time / ChargeupTime >= 0.25f).ToInt();
|
||||
int bloodCount = 4 + 3 * SawLevel;
|
||||
for (int p = 0; p < bloodCount; p++)
|
||||
|
||||
@@ -81,12 +81,12 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
Owner.AddCooldown(SuperradiantSawBoost.ID, SuperradiantSlaughterer.DashCooldown);
|
||||
SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Custom/MeatySlash"), GunTipPosition);
|
||||
|
||||
// Throws a lingering saw at the cursor that deals 3x damage (since the holdout already deals 2x)
|
||||
// Throws a lingering saw at the cursor that deals 2x damage (since the holdout already deals 1.5x)
|
||||
if (Main.myPlayer == Projectile.owner)
|
||||
{
|
||||
float clampedMouseDist = MathHelper.Clamp(Vector2.Distance(GunTipPosition, Owner.Calamity().mouseWorld), 0f, 960f);
|
||||
float adjustedMouseDist = clampedMouseDist / 21f;
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitY) * adjustedMouseDist, ModContent.ProjectileType<SuperradiantSawLingering>(), (int)(Projectile.damage * 1.5f), Projectile.knockBack, Projectile.owner);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), GunTipPosition, Projectile.velocity.SafeNormalize(Vector2.UnitY) * adjustedMouseDist, ModContent.ProjectileType<SuperradiantSawLingering>(), (int)(Projectile.damage * 4f / 3f), Projectile.knockBack, Projectile.owner);
|
||||
}
|
||||
|
||||
// End animation early
|
||||
@@ -125,7 +125,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
SoundStyle ShootSound = new("CalamityMod/Sounds/Item/SawShot", 2) { PitchVariance = 0.1f, Volume = 0.4f + SawPower * 0.5f };
|
||||
SoundEngine.PlaySound(ShootSound, GunTipPosition);
|
||||
|
||||
float sawDamageMult = MathHelper.Lerp(1f, 5f, SawPower) / 2f; // The damage must be divided by 2 to offset the holdout having 2x base damage.
|
||||
float sawDamageMult = MathHelper.Lerp(1f, 5f, SawPower) / 1.5f; // The damage must be divided by 1.5 to offset the holdout having 1.5x base damage.
|
||||
int sawPierce = (int)MathHelper.Lerp(2f, 7f, SawPower);
|
||||
int sawLevel = (SawPower >= 1f).ToInt() + (SawPower >= 0.25f).ToInt();
|
||||
|
||||
@@ -240,7 +240,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
|
||||
// The holdout can deal damage; you're literally spinning up a buzzsaw at the end, after all.
|
||||
public override bool? CanDamage() => !NoSawOnHoldout;
|
||||
public override bool? CanDamage() => !NoSawOnHoldout && Time % Projectile.localNPCHitCooldown == 0;
|
||||
|
||||
public override void ModifyDamageHitbox(ref Rectangle hitbox)
|
||||
{
|
||||
@@ -258,6 +258,9 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
target.AddBuff(ModContent.BuffType<ElementalMix>(), 150);
|
||||
SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Custom/SwiftSlice") { Volume = 0.7f }, GunTipPosition);
|
||||
|
||||
if (damageDone > 2 && !target.Calamity().IsArmored())
|
||||
Projectile.damage = (int)(Projectile.damage * 0.8f);
|
||||
|
||||
// EPIC AND COOL RAINBOW PARTICLES WOOOO
|
||||
int SawLevel = (Time / ChargeupTime >= 1f).ToInt() + (Time / ChargeupTime >= 0.25f).ToInt();
|
||||
int onHitSparkAmount = 4 + 4 * SawLevel;
|
||||
|
||||
Reference in new issue
Block a user