33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
namespace CalamityMod.Items.Placeables.DraedonStructures
|
|
{
|
|
public class LaboratoryPipePlating : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Placeables";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 100;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 12;
|
|
Item.height = 12;
|
|
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<Tiles.DraedonStructures.LaboratoryPipePlating>();
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe(2).AddIngredient(ModContent.ItemType<LaboratoryPlating>()).AddIngredient(ModContent.ItemType<RustedPipes>()).AddTile(TileID.Anvils).Register();
|
|
}
|
|
}
|
|
}
|