Files
CalamityModPublic/Items/Placeables/FurnitureAbyss/AbyssTable.cs
T

34 lines
1.2 KiB
C#

using CalamityMod.Tiles.Furniture.CraftingStations;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Placeables.FurnitureAbyss
{
public class AbyssTable : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetDefaults()
{
Item.width = 26;
Item.height = 26;
Item.maxStack = 9999;
Item.useTurn = true;
Item.autoReuse = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.consumable = true;
Item.value = 0;
Item.createTile = ModContent.TileType<Tiles.FurnitureAbyss.AbyssTable>();
// This is Ozz's item of choice for placing hostile Lab Turrets for testing. It should not do this normally.
// item.createTile = ModContent.TileType<Tiles.DraedonStructures.DraedonLabTurret>();
}
public override void AddRecipes()
{
CreateRecipe(1).AddIngredient(ModContent.ItemType<SmoothAbyssGravel>(), 8).AddTile(ModContent.TileType<VoidCondenser>()).Register();
}
}
}