Decimation_Mod/Content/Items/Placeable/EnchantedAnvil.cs
FyloZ 884e67c5e2 Updated some potions's sprite.
Changed buy price to sell price.
2020-07-09 18:03:44 -04:00

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();
}
}
}