Files
CalamityModPublic/Items/Weapons/Rogue/DeepWounder.cs
T
Storm2103 64cc8c1c38 Buffed Deep Wounder's stealth strike by x2 since it was so bad.
Another nerf to electrician's glove since it was still on crack. This time I hit the armor pen in addition to the sparks again.

Nerfed Spectral Veil teleport's Iframes very slightly since people in balance tread complained but exagerated the problem, this tiny nerf should handle it.

I overnerfed Glove of Precision, this 1% damage buff should buff it and make it cancel out completely Glove of Recklessness' damage decrease.
2023-02-19 17:54:28 -06:00

57 lines
2.1 KiB
C#

using Terraria.DataStructures;
using CalamityMod.Projectiles.Rogue;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Rogue
{
public class DeepWounder : RogueWeapon
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Deep Wounder");
Tooltip.SetDefault("Throws an abyssal hatchet that inflicts Armor Crunch and Crush Depth to the enemies it hits\n" +
"Stealth strikes cause the hatchet to be thrown faster and trail water, inflicting Marked for Death in addition to the other debuffs");
SacrificeTotal = 1;
}
public override void SetDefaults()
{
Item.width = 52;
Item.damage = 136;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useAnimation = 23;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 23;
Item.knockBack = 3f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.height = 48;
Item.maxStack = 1;
Item.rare = ItemRarityID.Lime;
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
Item.shoot = ModContent.ProjectileType<DeepWounderProjectile>();
Item.shootSpeed = 14f;
Item.DamageType = RogueDamageClass.Instance;
}
public override float StealthVelocityMultiplier => 1.1f;
public override float StealthDamageMultiplier => 3f;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.Calamity().StealthStrikeAvailable())
{
int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, 1f);
if (p.WithinBounds(Main.maxProjectiles))
Main.projectile[p].Calamity().stealthStrike = true;
return false;
}
return true;
}
}
}