38 lines
987 B
C#
38 lines
987 B
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items
|
|
{
|
|
public class AshenKey : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Tooltip.SetDefault("Fragile key of the Profaned Crags. Can be used to remove the lock of an Ashen Chest, at the cost of the key");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 20;
|
|
item.height = 20;
|
|
item.maxStack = 99;
|
|
item.value = Item.buyPrice(0, 0, 10, 0);
|
|
item.rare = 1;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ItemID.GoldenKey);
|
|
recipe.SetResult(this, 1);
|
|
recipe.AddTile(null, "AshenAltar");
|
|
recipe.AddRecipe();
|
|
recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ItemID.GoldenKey);
|
|
recipe.SetResult(this, 1);
|
|
recipe.AddTile(null, "AncientAltar");
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|