Three minor changes:

* Added Buzzkill to the specialist weapon set
* Tooltip now mentions that the weapon does not consume ammo
* Holdout no longer deals damage after the saw has been launched
This commit is contained in:
CongratsIsTrash committed 2024-04-17 08:18:31 -04:00
1 parent 630037bf78
commit 23f3a015b4
3 files changed
+11 -4

No files matched your search

+6
View File
@@ -14,6 +14,12 @@ namespace CalamityMod.Items.Weapons.Ranged
public new string LocalizationCategory => "Items.Weapons.Ranged";
public const float ShootSpeed = 18f;
public override void SetStaticDefaults()
{
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
}
public override void SetDefaults()
{
Item.width = 20;
@@ -206,7 +206,8 @@ Buzzkill: {
'''
Hold <left> to charge up a powerful buzzsaw that deals close-range damage
Fired buzzsaws slice through foes, making them bleed, and can bounce off tiles
The longer it is charged, the more damage and more pierce the buzzsaw has
The longer it is charged, the more damage and pierce the buzzsaw has
Does not consume ammo
'Not to be confused with the Sawed-On Shotgun'
'''
}
+3 -3
View File
@@ -187,7 +187,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() => Time > 30f;
public override bool? CanDamage() => Time > 30f && !NoSawOnHoldout;
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<Laceration>(), 180);
@@ -196,9 +196,9 @@ namespace CalamityMod.Projectiles.Ranged
Vector2 weaponTipPos = player.RotatedRelativePoint(player.MountedCenter, true) + Projectile.velocity * Projectile.width * 0.5f;
hitbox = new Rectangle((int)weaponTipPos.X - 19, (int)weaponTipPos.Y - 20, 38, 40);
if (Time / ChargeupTime >= 1f && !NoSawOnHoldout)
if (Time / ChargeupTime >= 1f)
hitbox.Inflate(60, 60);
else if (Time / ChargeupTime >= 0.25f && !NoSawOnHoldout)
else if (Time / ChargeupTime >= 0.25f)
hitbox.Inflate(25, 25);
}