-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModRecipeGroup.cs
121 lines (107 loc) · 3.03 KB
/
ModRecipeGroup.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace Eggpack
{
public class ModRecipeGroup : ModSystem
{
public static RecipeGroup Gems;
public static RecipeGroup EvilMaterials;
public static RecipeGroup EvilOre;
public static RecipeGroup EvilBar;
public static RecipeGroup CopperOre;
public static RecipeGroup IronOre;
public static RecipeGroup SilverOre;
public static RecipeGroup GoldOre;
public static RecipeGroup CopperBar;
public static RecipeGroup SilverBar;
public static RecipeGroup GoldBar;
public override void AddRecipeGroups()
{
// GEMS
Gems = new(() => Language.GetTextValue("LegacyMisc.37") + " Gem",
[
ItemID.Amethyst,
ItemID.Topaz,
ItemID.Sapphire,
ItemID.Emerald,
ItemID.Ruby,
ItemID.Diamond,
ItemID.Amber,
]);
RecipeGroup.RegisterGroup("Gems", Gems);
// EVIL MATERIALS
EvilMaterials = new(() => Language.GetTextValue("LegacyMisc.37") + " Evil Material",
[
ItemID.ShadowScale,
ItemID.TissueSample,
]);
RecipeGroup.RegisterGroup("EvilMaterials", EvilMaterials);
// ----------- BARS BELOW ----------- //
// EVIL ORE
EvilOre = new(() => Language.GetTextValue("LegacyMisc.37") + " Evil Ore",
[
ItemID.DemoniteOre,
ItemID.CrimtaneOre,
]);
RecipeGroup.RegisterGroup("EvilOre", EvilOre);
// EVIL BARS
EvilBar = new(() => Language.GetTextValue("LegacyMisc.37") + " Evil Bar",
[
ItemID.DemoniteBar,
ItemID.CrimtaneBar,
]);
RecipeGroup.RegisterGroup("EvilBar", EvilBar);
// COPPER ORE
CopperOre = new RecipeGroup(() => Language.GetTextValue("LegacyMisc.37") + " Copper Ore",
[
ItemID.CopperOre,
ItemID.TinOre,
]);
RecipeGroup.RegisterGroup("CopperOre", CopperOre);
// IRON ORE
IronOre = new RecipeGroup(() => Language.GetTextValue("LegacyMisc.37") + " Iron Ore",
[
ItemID.IronOre,
ItemID.LeadOre,
]);
RecipeGroup.RegisterGroup("IronOre", IronOre);
// SILVER ORE
SilverOre = new RecipeGroup(() => Language.GetTextValue("LegacyMisc.37") + " Silver Ore",
[
ItemID.SilverOre,
ItemID.TungstenOre,
]);
RecipeGroup.RegisterGroup("SilverOre", SilverOre);
// GOLD ORE
GoldOre = new RecipeGroup(() => Language.GetTextValue("LegacyMisc.37") + " Golden Ore",
[
ItemID.GoldOre,
ItemID.PlatinumOre,
]);
RecipeGroup.RegisterGroup("GoldOre", GoldOre);
// COPPER BAR
CopperBar = new RecipeGroup(() => Language.GetTextValue("LegacyMisc.37") + " Copper Bar",
[
ItemID.CopperBar,
ItemID.TinBar,
]);
RecipeGroup.RegisterGroup("CopperBar", CopperBar);
// SILVER BAR
SilverBar = new RecipeGroup(() => Language.GetTextValue("LegacyMisc.37") + " Silver Bar",
[
ItemID.SilverBar,
ItemID.TungstenBar,
]);
RecipeGroup.RegisterGroup("SilverBar", SilverBar);
// GOLD BAR
GoldBar = new RecipeGroup(() => Language.GetTextValue("LegacyMisc.37") + " Golden Bar",
[
ItemID.GoldBar,
ItemID.PlatinumBar,
]);
RecipeGroup.RegisterGroup("GoldBar", GoldBar);
}
}
}