Skip to content

Commit

Permalink
0.8.9.1
Browse files Browse the repository at this point in the history
- fixed harmony patches
  • Loading branch information
Aviuz committed Dec 1, 2017
1 parent 635765b commit a120489
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 8 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
<description>Version 0.8.9.1

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-orange.svg?style=flat" alt="v0.8.9" />
<img src="https://img.shields.io/badge/version-0.8.9.1-orange.svg?style=flat" alt="v0.8.9.1" />
</a>
</p>

Expand Down
3 changes: 2 additions & 1 deletion Source/HarmonyPatches/Patch_BillCheckbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ private static IEnumerable<CodeInstruction> Transpiler(ILGenerator gen, MethodBa
}
else
{
throw new Exception($"Failed to get operands for harmony patch Patch_BillPrevention: billField: {billField != null}, label: {label != null}");
// TODO repair
//throw new Exception($"Failed to get operands for harmony patch Patch_BillCheckbox: billField: {billField != null}, label: {label != null}");
}

}
Expand Down
2 changes: 1 addition & 1 deletion Source/HarmonyPatches/Patch_WorkTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace PrisonLabor.HarmonyPatches
{
[HarmonyPatch(typeof(MainTabWindow_Work))]
[HarmonyPatch(typeof(MainTabWindow_PawnTable))]
[HarmonyPatch("get_Pawns")]
internal class Patch_WorkTab
{
Expand Down
11 changes: 10 additions & 1 deletion Source/NewsDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,16 @@ public void Init()
{
List<string> titlesList = new List<string>();
List<string[]> itemsList = new List<string[]>();


// 0.8.9.1 (silent)
if (showAll)
{
titlesList.Add("Prison Labor Beta v0.8.9.1 unstable");
string[] itemsArray =
{
"fixed harmony patches (work tab should appear now)",
};
}
// 0.8.9 (silent)
if (showAll)
{
Expand Down
3 changes: 2 additions & 1 deletion Source/PrefsData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public enum Version
v0_8_6,
v0_8_7,
v0_8_8,
v0_8_9
v0_8_9,
v0_8_9_1
}

[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;
public const string versionString = "0.8.9 unstable";
public const Version versionNumber = Version.v0_8_9_1;
public const string versionString = "0.8.9.1 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,4 +1,6 @@
Changelog:
0.8.9.1
- fixed harmony patches (work tab should appear now)
0.8.9
- updated to RimWorld b18
0.8.8
Expand Down

0 comments on commit a120489

Please sign in to comment.