Files
CalamityModPublic/Items/Accessories/TheEvolution.cs
T
DominicKarma42 55e89c9b98 Replaced (hopefully) every magic number with a constant
Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
2020-05-30 17:56:36 -04:00

33 lines
1.1 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class TheEvolution : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Evolution");
Tooltip.SetDefault("You have a 50% chance to reflect projectiles when they hit you back at the enemy for 1000% their original damage\n" +
"If this effect triggers you get a health regeneration boost for a short time\n" +
"If the same enemy projectile type hits you again you will resist its damage by 15%");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 60, 0, 0);
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.RareVariant;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.projRefRare = true;
}
}
}