43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using CalamityMod.Items.Placeables.Walls;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ID;
|
|
|
|
namespace CalamityMod.Items.Placeables
|
|
{
|
|
public class EutrophicSand : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
SacrificeTotal = 100;
|
|
DisplayName.SetDefault("Eutrophic Sand");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.createTile = ModContent.TileType<Tiles.SunkenSea.EutrophicSand>();
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.useTurn = true;
|
|
Item.useAnimation = 15;
|
|
Item.useTime = 10;
|
|
Item.autoReuse = true;
|
|
Item.consumable = true;
|
|
Item.width = 13;
|
|
Item.height = 10;
|
|
Item.maxStack = 999;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<EutrophicSandWallSafe>(4).
|
|
AddTile(TileID.WorkBenches).
|
|
Register();
|
|
|
|
CreateRecipe().
|
|
AddIngredient<EutrophicSandWall>(4).
|
|
AddTile(TileID.WorkBenches).
|
|
Register();
|
|
}
|
|
}
|
|
}
|