44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using CalamityMod.Items.Placeables.Ores;
|
|
using CalamityMod.Rarities;
|
|
using CalamityMod.Tiles;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Materials
|
|
{
|
|
[LegacyName("UeliaceBar")]
|
|
public class UelibloomBar : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Materials";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 25;
|
|
ItemID.Sets.SortingPriorityMaterials[Type] = 106;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.createTile = ModContent.TileType<Tiles.UelibloomBar>();
|
|
Item.width = 15;
|
|
Item.height = 12;
|
|
Item.maxStack = 9999;
|
|
Item.value = Item.sellPrice(gold: 5);
|
|
Item.rare = ModContent.RarityType<Turquoise>();
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.useTurn = true;
|
|
Item.useAnimation = 15;
|
|
Item.useTime = 10;
|
|
Item.autoReuse = true;
|
|
Item.consumable = true;
|
|
}
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<UelibloomOre>(4).
|
|
AddTile(TileID.AdamantiteForge).
|
|
Register();
|
|
}
|
|
}
|
|
}
|