Skip to content

Commit 068c49c

Browse files
committed
Simplify code & fix vanilla version
1 parent abddead commit 068c49c

File tree

5 files changed

+13
-18
lines changed

5 files changed

+13
-18
lines changed

Source Code/Insulated Joint Plate/InsulatedPlates.cs

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,12 @@ public static void bridgeBuildMenu(string door, string menu, string pred)
8383
}
8484
}
8585

86-
public static void bridgeTechTree(string door, string group)
86+
public static void bridgeTechTree(string id, string researchGroup)
8787
{
88-
if (group == "none") return;
89-
#if VANILLA
90-
Techs.TECH_GROUPING[group] = new List<string>((IEnumerable<string>)Techs.TECH_GROUPING[group])
91-
{
92-
door
93-
}.ToArray();
94-
#endif
95-
96-
#if SPACED_OUT
97-
var tech = Db.Get().Techs.TryGet(group);
98-
if (tech != null)
99-
{
100-
tech.unlockedItemIDs.Add(door);
101-
}
102-
#endif
88+
if (researchGroup == "none") return;
89+
90+
Tech tech = Db.Get().Techs.TryGet(researchGroup);
91+
tech?.AddUnlockedItemIDs(id);
10392
}
10493
}
10594

0 Bytes
Binary file not shown.
Binary file not shown.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
supportedContent: VANILLA_ID
2-
lastWorkingBuild: 447596
2+
minimumSupportedBuild: 641974
3+
4+
version: 1.1.0
5+
APIVersion: 2
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
supportedContent: EXPANSION1_ID
2-
lastWorkingBuild: 447598
2+
minimumSupportedBuild: 641974
3+
4+
version: 1.1.0
5+
APIVersion: 2

0 commit comments

Comments
 (0)