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