35 lines
969 B
C#
35 lines
969 B
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Materials
|
|
{
|
|
public class CoreofCalamity : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Core of Calamity");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 40;
|
|
item.height = 40;
|
|
item.maxStack = 99;
|
|
item.value = Item.sellPrice(gold: 4);
|
|
item.rare = 8;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 3);
|
|
recipe.AddIngredient(ModContent.ItemType<CoreofEleum>(), 3);
|
|
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>(), 3);
|
|
recipe.AddTile(TileID.MythrilAnvil);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|