49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
using CalamityMod.Items.Placeables.Walls;
|
|
using CalamityMod.Items.Materials;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Placeables.Plates
|
|
{
|
|
public class Cinderplate : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Cinderplate");
|
|
Tooltip.SetDefault("It resonates with otherworldly energy.");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.createTile = ModContent.TileType<Tiles.Plates.Cinderplate>();
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.useTurn = true;
|
|
item.useAnimation = 15;
|
|
item.useTime = 10;
|
|
item.autoReuse = true;
|
|
item.consumable = true;
|
|
item.width = 13;
|
|
item.height = 10;
|
|
item.maxStack = 999;
|
|
item.value = Item.sellPrice(silver: 3);
|
|
item.rare = ItemRarityID.Orange;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<EssenceofCinder>(), 1);
|
|
recipe.AddIngredient(ItemID.Obsidian, 3);
|
|
recipe.SetResult(this, 3);
|
|
recipe.AddTile(TileID.Hellforge);
|
|
recipe.AddRecipe();
|
|
recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<CinderplateWall>(), 4);
|
|
recipe.SetResult(this);
|
|
recipe.AddTile(TileID.WorkBenches);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|