Files
CalamityModPublic/Items/Accessories/GiantShell.cs
T
Xyk e1aab4b2ac Giant Shell and Craw Carapace Reworks
Giant Shell:
10% reduced dash velocity
Taking a hit will remove the dash penalty and reduce defense (by 5) for 5 seconds

Craw Carapace:
5% increased damage
Enemies that hit you are inflicted with Armor Crunch
2023-08-06 22:36:14 -04:00

29 lines
799 B
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Accessories
{
[AutoloadEquip(EquipType.Back)]
public class GiantShell : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.defense = 10;
Item.width = 30;
Item.height = 28;
Item.value = CalamityGlobalItem.Rarity1BuyPrice;
Item.rare = ItemRarityID.Blue;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.gShell = true;
}
}
}