Files
CalamityModPublic/Items/Accessories/DepthCharm.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
955 B
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[AutoloadEquip(EquipType.Waist)]
public class DepthCharm : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Depths Charm");
Tooltip.SetDefault("Reduces the damage caused by the pressure of the abyss while out of breath\n" +
"Removes the bleed effect caused by the upper layers of the abyss");
}
public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = Item.buyPrice(0, 9, 0, 0);
item.rare = 3;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.depthCharm = true;
}
}
}