- Added support for animated projectiles - Refactoring - Removed useless fields - Fixed swords not dealing damages - Added Hour Hand (from Evie's PR)
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using Decimation.Content.Items.Misc.Souls;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using Decimation.Lib.Items;
|
|
|
|
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 = 20;
|
|
item.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;
|
|
}
|
|
}
|
|
}
|