33 lines
985 B
C#
33 lines
985 B
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Placeables.Ores
|
|
{
|
|
public class PerennialOre : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Placeables";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 100;
|
|
ItemID.Sets.SortingPriorityMaterials[Type] = 92; // Shroomite Bar
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.createTile = ModContent.TileType<Tiles.Ores.PerennialOre>();
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.useTurn = true;
|
|
Item.useAnimation = 15;
|
|
Item.useTime = 10;
|
|
Item.autoReuse = true;
|
|
Item.consumable = true;
|
|
Item.width = 12;
|
|
Item.height = 10;
|
|
Item.maxStack = 9999;
|
|
Item.value = Item.sellPrice(silver: 18);
|
|
Item.rare = ItemRarityID.Lime;
|
|
}
|
|
}
|
|
}
|