Files
CalamityModPublic/Items/Accessories/CrawCarapace.cs
T
Xyk e39ba7da0a "Crab Claw" added and Giant Tortoise Shell Reworked
Also a few thing like absorber recipe getting prep-changed

Crab Claw:
8% increased damage
Enemies that hit you take high damage (1.1x thorn damage) and are inflicted with Armor Crunch for a long time (30 seconds)

Giant Tortoise Shell:
5% increased damage reduction
15% reduced dash velocity
Taking a hit will remove the dash penalty and reduce defense (by 10) and damage reduction (by 5%) for 5 seconds
2023-08-06 22:36:14 -04:00

28 lines
776 B
C#

using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.CalPlayer;
namespace CalamityMod.Items.Accessories
{
public class CrawCarapace : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 28;
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.crawCarapace = true;
player.thorns += 0.25f;
}
}
}