-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCombinationsModSystem.cs
More file actions
110 lines (94 loc) · 4.4 KB
/
CombinationsModSystem.cs
File metadata and controls
110 lines (94 loc) · 4.4 KB
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
using Combinations.Items.AgletOfTheWind;
using Combinations.Items.MoonTablet;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Localization;
using Combinations.Items.MOPPGear;
using Combinations.Items.DeadlyEnviromentGear;
namespace Combinations
{
public sealed class CombinationsModSystem : ModSystem
{
public override void AddRecipes()
{
Recipe recipe = Recipe.Create(ItemID.CelestialShell);
recipe.AddIngredient<MoonTablet>();
recipe.AddIngredient(ItemID.NeptunesShell);
recipe.AddIngredient(ItemID.SunStone);
recipe.AddTile(TileID.TinkerersWorkbench);
recipe.Register();
Recipe recipe2 = Recipe.Create(ItemID.LightningBoots);
recipe2.AddIngredient(ItemID.SpectreBoots);
recipe2.AddIngredient<AgletOfTheWind>();
recipe2.AddTile(TileID.TinkerersWorkbench);
recipe2.Register();
Recipe recipe3 = Recipe.Create(ItemID.FlameWakerBoots);
recipe3.AddIngredient(ItemID.SailfishBoots);
recipe3.AddIngredient(ItemID.HellstoneBar, 15);
recipe3.AddTile(TileID.Hellforge);
recipe3.Register();
Recipe recipe4 = Recipe.Create(ItemID.JellyfishNecklace);
recipe4.AddIngredient(ItemID.Gel, 25);
recipe4.AddIngredient(ItemID.Chain);
recipe4.AddIngredient(ItemID.GoldBar, 5);
recipe4.AddTile(TileID.TinkerersWorkbench);
recipe4.Register();
Recipe recipe5 = Recipe.Create(ItemID.JellyfishNecklace);
recipe5.AddIngredient(ItemID.Gel, 25);
recipe5.AddIngredient(ItemID.Chain);
recipe5.AddIngredient(ItemID.PlatinumBar, 5);
recipe5.AddTile(TileID.TinkerersWorkbench);
recipe5.Register();
Recipe recipe6 = Recipe.Create(ItemID.DivingHelmet);
recipe6.AddIngredient(ItemID.IronBar, 10);
recipe6.AddIngredient(ItemID.Glass, 5);
recipe6.AddIngredient(ItemID.SharkFin);
recipe6.AddTile(TileID.TinkerersWorkbench);
recipe6.Register();
Recipe recipe7 = Recipe.Create(ItemID.DivingHelmet);
recipe7.AddIngredient(ItemID.LeadBar, 10);
recipe7.AddIngredient(ItemID.Glass, 5);
recipe7.AddIngredient(ItemID.SharkFin);
recipe7.AddTile(TileID.TinkerersWorkbench);
recipe7.Register();
Recipe recipe8 = Recipe.Create(ItemID.BottomlessLavaBucket);
recipe8.AddIngredient(ItemID.LavaBucket, 25);
recipe8.AddTile(TileID.TinkerersWorkbench);
recipe8.Register();
Recipe recipe9 = Recipe.Create(ItemID.BottomlessBucket);
recipe9.AddIngredient(ItemID.WaterBucket, 25);
recipe9.AddTile(TileID.TinkerersWorkbench);
recipe9.Register();
Recipe recipe10 = Recipe.Create(ItemID.SuperAbsorbantSponge);
recipe10.AddIngredient(ItemID.Silk, 25);
recipe10.AddTile(TileID.TinkerersWorkbench);
recipe10.Register();
Recipe recipe11 = Recipe.Create(ItemID.LavaAbsorbantSponge);
recipe11.AddIngredient(ItemID.SuperAbsorbantSponge);
recipe11.AddIngredient(ItemID.MagmaStone);
recipe11.AddTile(TileID.TinkerersWorkbench);
recipe11.Register();
if(CombinationsConfig.Instance.EnableUnfinishedItems) {
AddExperimentalRecipes();
}
base.AddRecipes();
}
private void AddExperimentalRecipes() {
Recipe recipe = Recipe.Create(ModContent.ItemType<MOPPGear>());
recipe.AddIngredient<DeadlyEnviromentGear>();
recipe.AddIngredient(ItemID.AnkhShield);
recipe.AddTile(TileID.TinkerersWorkbench);
recipe.Register();
}
public override void AddRecipeGroups()
{
if (!RecipeGroup.recipeGroupIDs.ContainsKey(nameof(ItemID.CloudinaBottle)))
{
RecipeGroup group = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.CloudinaBottle)}", ItemID.SandstorminaBottle, ItemID.CloudinaBottle, ItemID.FartinaJar, ItemID.BlizzardinaBottle, ItemID.TsunamiInABottle);
RecipeGroup.RegisterGroup(nameof(ItemID.CloudinaBottle), group);
}
base.AddRecipeGroups();
}
}
}