42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
using CalamityMod.Tiles.Furniture.CraftingStations;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Placeables.FurnitureAbyss
|
|
{
|
|
public class AbyssWorkbench : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.SetNameOverride("Abyss Work Bench");
|
|
item.width = 28;
|
|
item.height = 14;
|
|
item.maxStack = 99;
|
|
item.useTurn = true;
|
|
item.autoReuse = true;
|
|
item.useAnimation = 15;
|
|
item.useTime = 10;
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.consumable = true;
|
|
item.value = 0;
|
|
item.createTile = ModContent.TileType<Tiles.FurnitureAbyss.AbyssWorkbench>();
|
|
|
|
// This is Ozz's item of choice for placing inactive Power Cell Factories for lab schematics. It should not do this normally.
|
|
// item.createTile = ModContent.TileType<Tiles.DraedonStructures.InactivePowerCellFactory>();
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<SmoothAbyssGravel>(), 10);
|
|
recipe.SetResult(this, 1);
|
|
recipe.AddTile(ModContent.TileType<VoidCondenser>());
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
}
|