Decimation_Mod/Items/Placeable/EnchantedAnvil.cs
2020-03-03 21:17:42 -05:00

35 lines
1.0 KiB
C#

using Decimation.Items.Misc.Souls;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Decimation.Core.Items;
namespace Decimation.Items.Placeable
{
internal class EnchantedAnvil : DecimationPlaceableItem
{
protected override string ItemName => "Enchanted Anvil";
protected override int Tile => ModContent.TileType<Tiles.EnchantedAnvil>();
protected override void InitPlaceable()
{
width = 20;
height = 20;
item.maxStack = 1;
}
protected override ModRecipe GetRecipe()
{
ModRecipe recipe = GetNewModRecipe(this, 1, TileID.AdamantiteForge, true);
recipe.AddIngredient(ItemID.MythrilAnvil, 1);
recipe.AddIngredient(ItemID.IronAnvil, 1);
recipe.AddIngredient(ModContent.ItemType<SoulofLife>(), 5);
recipe.AddIngredient(ItemID.SoulofNight, 5);
recipe.AddIngredient(ItemID.SoulofMight, 5);
return recipe;
}
}
}