From bb67ee27970d4568850beca7c300bb95b7df5068 Mon Sep 17 00:00:00 2001 From: Hazzer Date: Sat, 11 Apr 2020 21:23:50 +0200 Subject: [PATCH] Fix for new rimworld version --- About/About.xml | 2 +- .../Patches_GUI/GUI_Bill/Patch_BillCheckbox.cs | 2 +- .../GUI_PrisonerTab/Patch_AddScrollToPrisonerTab.cs | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/About/About.xml b/About/About.xml index e51bd852..a734f227 100644 --- a/About/About.xml +++ b/About/About.xml @@ -19,7 +19,7 @@ - Version 1.1.2 + Version 1.1.3 This mod force prisoners to work. To enable this feature prisoners must have "Force to work" option checked ("Prisoner" tab). Prison labor needs management that consist: - Motivation - prisoners need to be motivated by presence of colonists. Wardens have new job - supervising prisoners. Low motivation can lead to revolts. diff --git a/Source/HarmonyPatches/Patches_GUI/GUI_Bill/Patch_BillCheckbox.cs b/Source/HarmonyPatches/Patches_GUI/GUI_Bill/Patch_BillCheckbox.cs index d3f46af0..de16fe89 100644 --- a/Source/HarmonyPatches/Patches_GUI/GUI_Bill/Patch_BillCheckbox.cs +++ b/Source/HarmonyPatches/Patches_GUI/GUI_Bill/Patch_BillCheckbox.cs @@ -68,7 +68,7 @@ private static IEnumerable Transpiler(ILGenerator gen, MethodBa { "Void PlayOneShotOnCamera(Verse.SoundDef, Verse.Map)", "System.Reflection.Emit.Label", - "Verse.Listing_Standard (28)", + "Verse.Listing_Standard (30)", }; var listing = HPatcher.FindOperandAfter(opCodes4, operands4, instr); diff --git a/Source/HarmonyPatches/Patches_GUI/GUI_PrisonerTab/Patch_AddScrollToPrisonerTab.cs b/Source/HarmonyPatches/Patches_GUI/GUI_PrisonerTab/Patch_AddScrollToPrisonerTab.cs index 38f54d27..a5895dc7 100644 --- a/Source/HarmonyPatches/Patches_GUI/GUI_PrisonerTab/Patch_AddScrollToPrisonerTab.cs +++ b/Source/HarmonyPatches/Patches_GUI/GUI_PrisonerTab/Patch_AddScrollToPrisonerTab.cs @@ -31,8 +31,8 @@ private static IEnumerable Transpiler(ILGenerator gen, IEnumera String[] operands1 = { "UnityEngine.Rect ContractedBy(UnityEngine.Rect, Single)", - "UnityEngine.Rect (6)", - "UnityEngine.Rect (6)", + "UnityEngine.Rect (7)", + "UnityEngine.Rect (7)", "Void BeginGroup(UnityEngine.Rect)", }; int step1 = 0; @@ -48,7 +48,7 @@ private static IEnumerable Transpiler(ILGenerator gen, IEnumera }; String[] operands2 = { - "System.Collections.Generic.IEnumerator`1[RimWorld.PrisonerInteractionModeDef] (21)", + "System.Collections.Generic.IEnumerator`1[RimWorld.PrisonerInteractionModeDef] (22)", "Void Dispose()", "", "Void EndGroup()", @@ -68,8 +68,8 @@ private static IEnumerable Transpiler(ILGenerator gen, IEnumera { "10", "UnityEngine.Rect ContractedBy(UnityEngine.Rect, Single)", - "UnityEngine.Rect (6)", - "UnityEngine.Rect (6)", + "UnityEngine.Rect (7)", + "UnityEngine.Rect (7)", }; int step3 = 0; var rect = HPatcher.FindOperandAfter(opCodes3, operands3, instr);