29 lines
857 B
C#
29 lines
857 B
C#
using CalamityMod.Tiles;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ID;
|
|
|
|
namespace CalamityMod.Items.Placeables.Banners
|
|
{
|
|
public class RepairUnitBanner : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Placeables";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 10;
|
|
Item.height = 24;
|
|
Item.maxStack = 9999;
|
|
Item.useTurn = true;
|
|
Item.autoReuse = true;
|
|
Item.useAnimation = 15;
|
|
Item.useTime = 10;
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.consumable = true;
|
|
Item.rare = ItemRarityID.Blue;
|
|
Item.value = Item.buyPrice(0, 0, 10, 0);
|
|
Item.createTile = ModContent.TileType<MonsterBanner>();
|
|
Item.placeStyle = 0;
|
|
}
|
|
}
|
|
}
|