35 lines
1017 B
C#
35 lines
1017 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ID;
|
|
using Terraria.GameContent.Creative;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class GiantTortoiseShell : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
|
|
DisplayName.SetDefault("Giant Tortoise Shell");
|
|
Tooltip.SetDefault("10% decreased movement speed\n" +
|
|
"Enemies take damage when they hit you");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.defense = 14;
|
|
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)
|
|
{
|
|
player.moveSpeed -= 0.1f;
|
|
player.thorns += 0.25f;
|
|
}
|
|
}
|
|
}
|