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

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class SeaShell : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sea Shell");
Tooltip.SetDefault("Increased defense and damage reduction when submerged in liquid\n" +
"Increased movement speed when submerged in liquid");
}
public override void SetDefaults()
{
item.defense = 2;
item.width = 20;
item.height = 24;
item.value = Item.buyPrice(0, 3, 0, 0);
item.rare = 1;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.seaShell = true;
}
}
}