34 lines
774 B
C#
34 lines
774 B
C#
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Placeables
|
|
{
|
|
public class ProfanedSlabWall : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 12;
|
|
item.height = 12;
|
|
item.maxStack = 999;
|
|
item.useTurn = true;
|
|
item.autoReuse = true;
|
|
item.useAnimation = 15;
|
|
item.useTime = 7;
|
|
item.useStyle = 1;
|
|
item.consumable = true;
|
|
item.createWall = mod.WallType("ProfanedSlabWall");
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(null, "ProfanedSlab");
|
|
recipe.SetResult(this, 4);
|
|
recipe.AddTile(18);
|
|
recipe.AddRecipe();
|
|
}
|
|
}
|
|
} |