Files
CalamityModPublic/Items/Placeables/AstralSandstone.cs
T

39 lines
1.1 KiB
C#

using CalamityMod.Items.Placeables.Walls;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Placeables
{
public class AstralSandstone : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Placeables";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 100;
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<AstralSand>();
}
public override void SetDefaults()
{
Item.createTile = ModContent.TileType<Tiles.AstralDesert.AstralSandstone>();
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.autoReuse = true;
Item.consumable = true;
Item.width = 16;
Item.height = 16;
Item.maxStack = 9999;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<AstralSandstoneWall>(4).
AddTile(TileID.WorkBenches).
Register();
}
}
}