35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using CalamityMod.Rarities;
|
|
using CalamityMod.Tiles.DraedonStructures;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Placeables.DraedonStructures
|
|
{
|
|
public class PowerCellFactoryItem : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
SacrificeTotal = 1;
|
|
DisplayName.SetDefault("Power Cell Factory");
|
|
Tooltip.SetDefault("Produces Draedon Power Cells over time\n" + "One cell is produced every 15 seconds");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 26;
|
|
Item.height = 26;
|
|
Item.maxStack = 999;
|
|
Item.useTurn = true;
|
|
Item.autoReuse = true;
|
|
Item.useAnimation = Item.useTime = 15;
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.consumable = true;
|
|
Item.createTile = ModContent.TileType<PowerCellFactory>();
|
|
|
|
Item.rare = ModContent.RarityType<DarkOrange>();
|
|
Item.value = Item.buyPrice(gold: 50);
|
|
}
|
|
}
|
|
}
|