36 lines
1009 B
C#
36 lines
1009 B
C#
using System.Collections.Generic;
|
|
using Decimation.Lib.Items;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace Decimation.Content.Items.Accessories
|
|
{
|
|
internal class GraniteLinedTunic : DecimationAccessory
|
|
{
|
|
protected override string ItemName => "Granite Lined Tunic";
|
|
|
|
protected override void InitAccessory()
|
|
{
|
|
item.width = 30;
|
|
item.height = 20;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
player.statDefense += 2;
|
|
}
|
|
|
|
protected override List<ModRecipe> GetRecipes()
|
|
{
|
|
ModRecipe recipe = GetNewModRecipe(this, 1, new List<int> {TileID.Anvils});
|
|
|
|
recipe.AddIngredient(ItemID.FamiliarShirt);
|
|
recipe.AddIngredient(ItemID.Granite, 16);
|
|
recipe.AddRecipeGroup("AnyThread", 10);
|
|
recipe.AddIngredient(ItemID.Chain, 6);
|
|
|
|
return new List<ModRecipe> {recipe};
|
|
}
|
|
}
|
|
} |