Decimation_Mod/Content/Items/Placeable/TitanForge.cs
2020-07-09 19:46:40 -04:00

41 lines
1.5 KiB
C#

using Decimation.Content.Items.Misc.Souls;
using Decimation.Lib.Items;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Placeable
{
internal class TitanForge : DecimationPlaceableItem
{
protected override string ItemName => "Titan Forge";
protected override string ItemTooltip => "Used to craft powerful weapons and armor.";
protected override int Tile => ModContent.TileType<Tiles.TitanForge>();
protected override void InitPlaceable()
{
item.width = 32;
item.height = 32;
item.value = Item.sellPrice(gold: 42, silver: 25);
item.maxStack = 1;
}
protected override ModRecipe GetRecipe()
{
ModRecipe recipe = GetNewModRecipe(this, 1, ModContent.TileType<Tiles.ChlorophyteAnvil>(), true);
recipe.AddIngredient(ItemID.AdamantiteForge);
recipe.AddIngredient(ItemID.Autohammer);
recipe.AddIngredient(ItemID.AdamantiteBar, 5);
recipe.AddIngredient(ItemID.TitaniumBar, 5);
recipe.AddIngredient(ItemID.LavaBucket);
recipe.AddIngredient(ItemID.SoulofMight, 5);
recipe.AddIngredient(ItemID.SoulofFright, 5);
recipe.AddIngredient(ItemID.SoulofSight, 5);
recipe.AddIngredient(ModContent.ItemType<SoulofSpite>(), 5);
recipe.AddIngredient(ItemID.SoulofFlight, 5);
return recipe;
}
}
}