Files
CalamityModPublic/Items/Placeables/FurnitureProfaned/ProfanedDoor.cs
T

30 lines
998 B
C#

using CalamityMod.Tiles.Furniture.CraftingStations;
using CalamityMod.Tiles.FurnitureProfaned;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.FurnitureProfaned
{
public class ProfanedDoor : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.width = 14;
Item.height = 28;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.createTile = ModContent.TileType<ProfanedDoorClosed>();
}
public override void AddRecipes()
{
CreateRecipe(1).AddIngredient(ModContent.ItemType<ProfanedRock>(), 6).AddTile(ModContent.TileType<ProfanedCrucible>()).Register();
}
}
}