Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using CalamityMod.Items.Materials;
|
|
using CalamityMod.Items.Placeables.Walls;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Items.Placeables.FurnitureProfaned
|
|
{
|
|
public class ProfanedCrystal : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 12;
|
|
item.height = 12;
|
|
item.maxStack = 999;
|
|
item.useTurn = true;
|
|
item.autoReuse = true;
|
|
item.useAnimation = 15;
|
|
item.useTime = 10;
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.consumable = true;
|
|
item.createTile = ModContent.TileType<Tiles.FurnitureProfaned.ProfanedCrystal>();
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<UnholyEssence>());
|
|
recipe.AddIngredient(ItemID.Glass, 20);
|
|
recipe.SetResult(this, 20);
|
|
recipe.AddTile(TileID.LunarCraftingStation);
|
|
recipe.AddRecipe();
|
|
recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<ProfanedCrystalWall>(), 4);
|
|
recipe.SetResult(this);
|
|
recipe.AddTile(TileID.WorkBenches);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|