34 lines
1008 B
C#
34 lines
1008 B
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class GloveOfPrecision : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Glove Of Precision");
|
|
Tooltip.SetDefault("Decreases rogue attack speed by 20% but increases damage and crit by 12% and velocity by 25%");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 24;
|
|
item.height = 40;
|
|
item.value = Item.buyPrice(0, 50, 0, 0);
|
|
item.accessory = true;
|
|
item.rare = 8;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.gloveOfPrecision = true;
|
|
modPlayer.throwingDamage *= 1.12f;
|
|
modPlayer.throwingCrit += 12;
|
|
modPlayer.throwingVelocity *= 1.2f;
|
|
}
|
|
}
|
|
}
|