-
Notifications
You must be signed in to change notification settings - Fork 5
/
OriRecipeGroups.cs
82 lines (77 loc) · 4.41 KB
/
OriRecipeGroups.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
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace OriMod;
public class OriRecipeGroups : ModSystem {
public static RecipeGroup EnchantedItems { get; private set; }
public static RecipeGroup MovementAccessories { get; private set; }
public static RecipeGroup IronBars { get; private set; }
public static RecipeGroup GoldBars { get; private set; }
public static RecipeGroup DarkBars { get; private set; }
public static RecipeGroup HardmodeBars1 { get; private set; }
public static RecipeGroup HardmodeBars2 { get; private set; }
public static RecipeGroup HardmodeBars3 { get; private set; }
public static RecipeGroup LunarFragments { get; private set; }
public static RecipeGroup WallJumpGear { get; private set; }
public static RecipeGroup JumpBottles { get; private set; }
public static RecipeGroup JumpBalloons { get; private set; }
public override void AddRecipeGroups() {
EnchantedItems = new RecipeGroup(
() => Language.GetTextValue("Mods.OriMod.RecipeGroups.EnchantedItems"),
ItemID.EnchantedSword, ItemID.EnchantedBoomerang, ItemID.Terragrim);
MovementAccessories = new RecipeGroup(
() => Language.GetTextValue("Mods.OriMod.RecipeGroups.MovementAccessories"),
ItemID.Aglet, ItemID.AnkletoftheWind, ItemID.RocketBoots, ItemID.HermesBoots, ItemID.CloudinaBottle,
ItemID.FlurryBoots, ItemID.SailfishBoots, ItemID.SandstorminaBottle, ItemID.FartinaJar, ItemID.ShinyRedBalloon,
ItemID.ShoeSpikes, ItemID.ClimbingClaws, ItemID.EoCShield, ItemID.BlizzardinaBottle, ItemID.TsunamiInABottle);
IronBars = new RecipeGroup(() => Language.GetTextValue("Mods.OriMod.RecipeGroups.IronBars"),
ItemID.IronBar, ItemID.LeadBar);
GoldBars = new RecipeGroup(() => Language.GetTextValue("Mods.OriMod.RecipeGroups.GoldBars"),
ItemID.GoldBar, ItemID.PlatinumBar);
DarkBars = new RecipeGroup(() => Language.GetTextValue("Mods.OriMod.RecipeGroups.DarkBars"),
ItemID.DemoniteBar, ItemID.CrimtaneBar);
HardmodeBars1 = new RecipeGroup(() => Language.GetTextValue("Mods.OriMod.RecipeGroups.HardmodeBars1"),
ItemID.CobaltBar, ItemID.PalladiumBar);
HardmodeBars2 = new RecipeGroup(() => Language.GetTextValue("Mods.OriMod.RecipeGroups.HardmodeBars2"),
ItemID.MythrilBar, ItemID.OrichalcumBar);
HardmodeBars3 = new RecipeGroup(() => Language.GetTextValue("Mods.OriMod.RecipeGroups.HardmodeBars3"),
ItemID.AdamantiteBar, ItemID.TitaniumBar);
LunarFragments = new RecipeGroup(() => Language.GetTextValue("Mods.OriMod.RecipeGroups.LunarFragments"),
ItemID.FragmentNebula, ItemID.FragmentSolar, ItemID.FragmentStardust, ItemID.FragmentVortex);
WallJumpGear = new RecipeGroup(() => Language.GetTextValue("Mods.OriMod.RecipeGroups.WallJumpGear"),
ItemID.ClimbingClaws, ItemID.ShoeSpikes);
JumpBottles = new RecipeGroup(() => Language.GetTextValue("Mods.OriMod.RecipeGroups.JumpBottles"),
ItemID.CloudinaBottle, ItemID.BlizzardinaBottle, ItemID.SandstorminaBottle,
ItemID.TsunamiInABottle, ItemID.FartinaJar);
JumpBalloons = new RecipeGroup(() => Language.GetTextValue("Mods.OriMod.RecipeGroups.JumpBalloons"),
ItemID.CloudinaBalloon, ItemID.BlizzardinaBalloon, ItemID.SandstorminaBalloon, ItemID.SharkronBalloon,
ItemID.FartInABalloon);
RecipeGroup.RegisterGroup("OriMod:EnchantedItems", EnchantedItems);
RecipeGroup.RegisterGroup("OriMod:MovementAccessories", MovementAccessories);
RecipeGroup.RegisterGroup("OriMod:IronBars", IronBars);
RecipeGroup.RegisterGroup("OriMod:GoldBars", GoldBars);
RecipeGroup.RegisterGroup("OriMod:DarkBars", DarkBars);
RecipeGroup.RegisterGroup("OriMod:HardmodeBars1", HardmodeBars1);
RecipeGroup.RegisterGroup("OriMod:HardmodeBars2", HardmodeBars2);
RecipeGroup.RegisterGroup("OriMod:HardmodeBars3", HardmodeBars3);
RecipeGroup.RegisterGroup("OriMod:LunarFragments", LunarFragments);
RecipeGroup.RegisterGroup("OriMod:WallJumpGear", WallJumpGear);
RecipeGroup.RegisterGroup("OriMod:JumpBottles", JumpBottles);
RecipeGroup.RegisterGroup("OriMod:JumpBalloons", JumpBalloons);
}
public override void Unload() {
EnchantedItems = null;
MovementAccessories = null;
IronBars = null;
GoldBars = null;
DarkBars = null;
HardmodeBars1 = null;
HardmodeBars2 = null;
HardmodeBars3 = null;
LunarFragments = null;
WallJumpGear = null;
JumpBottles = null;
JumpBalloons = null;
}
}