Skip to content

Commit

Permalink
More finding ISR2G in the game file
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoNeko committed May 1, 2020
1 parent 0271eae commit c76be98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/HarmonyPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public static class Patch_Game_LoadGame
[HarmonyPostfix]
public static void Postfix(Game __instance)
{
List<Thing> listOfThing = __instance.CurrentMap.listerThings.AllThings.Where(x => x.def.defName == "RotR_ISR2G").ToList();
List<Thing> listOfThing = __instance.CurrentMap.listerThings.AllThings.Where(x => x.def.defName.Contains("ISR2G")).ToList();
RoadsOfTheRim.DebugLog("Game loaded - Found "+listOfThing.Count()+" ISR2G");
foreach (Thing t in listOfThing)
{
Expand Down
Binary file modified v1.1/Assemblies/RoadsOfTheRim.dll
Binary file not shown.

0 comments on commit c76be98

Please sign in to comment.