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
38 lines
1.1 KiB
C#
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();
|
|
}
|
|
}
|
|
}
|