Files
CalamityModPublic/Items/Accessories/GiantTortoiseShell.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

38 lines
1.1 KiB
C#

using CalamityMod.Buffs.StatDebuffs;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
using CalamityMod.Items.Materials;
using CalamityMod.CalPlayer;
namespace CalamityMod.Items.Accessories
{
public class GiantTortoiseShell : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.defense = 15;
Item.width = 20;
Item.height = 24;
Item.value = CalamityGlobalItem.Rarity4BuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.tortShell = true;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<GiantShell>().
AddIngredient(ItemID.TurtleShell).
AddTile(TileID.Anvils).
Register();
}
}
}