35 lines
965 B
C#
35 lines
965 B
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Materials
|
|
{
|
|
public class BarofLife : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Life Alloy");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 30;
|
|
item.height = 24;
|
|
item.maxStack = 999;
|
|
item.value = Item.sellPrice(gold: 3);
|
|
item.rare = ItemRarityID.Yellow;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>());
|
|
recipe.AddIngredient(ModContent.ItemType<DraedonBar>());
|
|
recipe.AddIngredient(ModContent.ItemType<CruptixBar>());
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|