31 lines
578 B
C#
31 lines
578 B
C#
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ID;
|
|
|
|
namespace FabusMod.Items.Items.WeaponParts;
|
|
|
|
public class UntreatedSwordParts : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 42;
|
|
Item.height = 26;
|
|
Item.maxStack = 99;
|
|
Item.value = Item.sellPrice(0, 0, 0, 20);
|
|
Item.rare = ItemRarityID.White;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe()
|
|
.AddRecipeGroup("Wood", 12)
|
|
.AddTile(TileID.WorkBenches)
|
|
.Register();
|
|
}
|
|
}
|