Skip to content

Commit

Permalink
0.8.9.5
Browse files Browse the repository at this point in the history
- cleared some code debris, hope it fix the "uknown bug"
  • Loading branch information
Aviuz committed Dec 11, 2017
1 parent 0d9dc3e commit b4df7fa
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Prison Labor</name>
<author>Avius</author>
<targetVersion>0.18.0</targetVersion>
<description>Version 0.8.9.4
<description>Version 0.8.9.5

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
Binary file modified Assemblies/PrisonLabor.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
</p>
<p align="center">
<a href="https://github.com/Aviuz/PrisonLabor/releases">
<img src="https://img.shields.io/badge/version-0.8.9.4-orange.svg?style=flat" alt="v0.8.9.4" />
<img src="https://img.shields.io/badge/version-0.8.9.5-orange.svg?style=flat" alt="v0.8.9.5" />
</a>
</p>

Expand Down
1 change: 0 additions & 1 deletion Source/HarmonyPatches/Patch_ExtendVistorRect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ private static IEnumerable<CodeInstruction> Transpiler(ILGenerator gen, IEnumera

foreach (var ci in instr)
{
HPatcher.CreateDebugFileOnDesktop("HPatches/Patch_ExtendVisitorRect", instr);
if (ci.operand is float && (float)ci.operand == 200f)
ci.operand = 30f * DefDatabase<PrisonerInteractionModeDef>.DefCount + 10;
yield return ci;
Expand Down
2 changes: 0 additions & 2 deletions Source/HarmonyPatches/Patch_LaborForbid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ internal class Patch_LaborForbid
private static IEnumerable<CodeInstruction> Transpiler(ILGenerator gen, MethodBase mBase,
IEnumerable<CodeInstruction> instr)
{
HPatcher.CreateDebugFileOnDesktop("HPatches/Patch_LaborForbid", instr);

//var pawn = HPatcher.FindOperandAfter(new[] { OpCodes.Ldfld }, new[] { "Verse.Pawn pawn" }, instr);
var jobgiver = HPatcher.FindOperandAfter(new[] {OpCodes.Ldloc_S }, new[] { "RimWorld.JobGiver_Work+<TryIssueJobPackage>c__AnonStorey1 (11)" }, instr );
var scanner = HPatcher.FindOperandAfter(new[] { OpCodes.Ldfld }, new[] { "RimWorld.WorkGiver_Scanner scanner" }, instr);
Expand Down
1 change: 0 additions & 1 deletion Source/HarmonyPatches/Patch_NeedOnlyByPrisoners.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ internal class Patch_NeedOnlyByPrisoners
private static IEnumerable<CodeInstruction> Transpiler(ILGenerator gen, MethodBase mBase,
IEnumerable<CodeInstruction> instr)
{
HPatcher.CreateDebugFileOnDesktop("HPatches/Patch_NeedOnlyByPrisoners_CHANGE_LINE_if(ci.opcode.Value == OpCodes.Ldfld.Value)", instr);
//Searches for pawn
var pawn = HPatcher.FindOperandAfter(new[] { OpCodes.Ldfld }, new[] { "Verse.Pawn pawn" }, instr );
// Define label to the begining of the original code
Expand Down
3 changes: 2 additions & 1 deletion Source/PrefsData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public enum Version
v0_8_9,
v0_8_9_1,
v0_8_9_2,
v0_8_9_4
v0_8_9_4,
v0_8_9_5
}

[Flags]
Expand Down
4 changes: 2 additions & 2 deletions Source/VersionUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace PrisonLabor
{
class VersionUtility
{
public const Version versionNumber = Version.v0_8_9_4;
public const string versionString = "0.8.9.4 unstable";
public const Version versionNumber = Version.v0_8_9_5;
public const string versionString = "0.8.9.5 unstable";

public static void CheckVersion()
{
Expand Down
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Changelog:
*********** BETA 18 COMPATIBILITY PATCHES *******************
0.8.9.5
- cleared some code debris, hope it fix the "uknown bug"
0.8.9.4
- fixed timetables
- fixed bill checkboxes
Expand Down

0 comments on commit b4df7fa

Please sign in to comment.