36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using Decimation.Content.Items.Misc.Souls;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Decimation.Lib.Items;
|
|
using Decimation.Lib.Util.Builder;
|
|
|
|
namespace Decimation.Content.Items.Placeable
|
|
{
|
|
internal class EnchantedAnvil : DecimationPlaceableItem
|
|
{
|
|
protected override string ItemName => "Enchanted Anvil";
|
|
protected override int Tile => ModContent.TileType<Tiles.EnchantedAnvil>();
|
|
|
|
protected override void InitPlaceable()
|
|
{
|
|
item.width = 44;
|
|
item.height = 20;
|
|
item.maxStack = 1;
|
|
item.value = Item.sellPrice(gold: 1);
|
|
}
|
|
|
|
protected override ModRecipe GetRecipe()
|
|
{
|
|
return new RecipeBuilder(this)
|
|
.AnyIronBar(true)
|
|
.WithIngredient(ItemID.MythrilAnvil)
|
|
.WithIngredient(ItemID.IronAnvil)
|
|
.WithIngredient(ItemID.SoulofNight, 5)
|
|
.WithIngredient(ModContent.ItemType<SoulofLife>(), 5)
|
|
.WithStation(TileID.AdamantiteForge)
|
|
.Build();
|
|
}
|
|
}
|
|
}
|