-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomRecipes.cs
27 lines (25 loc) · 1.08 KB
/
CustomRecipes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Localization;
namespace YourTale
{
public class CustomRecipes : ModSystem
{
public override void AddRecipeGroups()
{
RecipeGroup goldBarGroup = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.GoldBar)}", ItemID.PlatinumBar, ItemID.GoldBar);
RecipeGroup.RegisterGroup(nameof(ItemID.GoldBar), goldBarGroup);
RecipeGroup ironBarGroup = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.IronBar)}", ItemID.LeadBar, ItemID.IronBar);
RecipeGroup.RegisterGroup(nameof(ItemID.IronBar), ironBarGroup);
}
public override void AddRecipes()
{
Recipe recipe = Recipe.Create(ModContent.ItemType<Items.Weapons.Melee.Claws.EmptyClaw>());
recipe.AddIngredient(ItemID.Leather, 3);
recipe.AddRecipeGroup(nameof(ItemID.GoldBar), 7);
recipe.AddTile(TileID.Anvils);
recipe.Register();
}
}
}