Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Items.Placeables.FurnitureProfaned
|
|
{
|
|
public class ProfanedTable : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 26;
|
|
item.height = 26;
|
|
item.maxStack = 99;
|
|
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.ProfanedTable>();
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<ProfanedRock>(), 8);
|
|
recipe.SetResult(this, 1);
|
|
recipe.AddTile(ModContent.TileType<ProfanedBasin>());
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|