Files
CalamityModPublic/Items/Accessories/EtherealExtorter.cs
T

36 lines
1.0 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Accessories
{
public class EtherealExtorter : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
DisplayName.SetDefault("Ethereal Extorter");
Tooltip.SetDefault(@"Rogue projectiles explode into homing souls on death
10% increased rogue damage and +10 maximum stealth");
}
public override void SetDefaults()
{
Item.width = 28;
Item.height = 32;
Item.accessory = true;
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
Item.rare = ItemRarityID.Yellow;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.etherealExtorter = true;
player.GetDamage<ThrowingDamageClass>() += 0.1f;
modPlayer.rogueStealthMax += 0.1f;
}
}
}