Skip to content

Commit

Permalink
Merge pull request #172 from Hazzer/new-patch-fix
Browse files Browse the repository at this point in the history
Fix for new rimworld version
  • Loading branch information
Aviuz authored Apr 12, 2020
2 parents 93dc75f + bb67ee2 commit 6f4618c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</li>
</modDependencies>

<description>Version 1.1.2
<description>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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private static IEnumerable<CodeInstruction> 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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ private static IEnumerable<CodeInstruction> 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;
Expand All @@ -48,7 +48,7 @@ private static IEnumerable<CodeInstruction> 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()",
Expand All @@ -68,8 +68,8 @@ private static IEnumerable<CodeInstruction> 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);
Expand Down

0 comments on commit 6f4618c

Please sign in to comment.