Skip to content

Commit

Permalink
labor area changes (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazzer authored Apr 13, 2022
1 parent c68fd99 commit 9a47195
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
Binary file modified 1.3/Assemblies/PrisonLabor.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</li>
</modDependencies>

<description>Version 1.3.8
<description>Version 1.3.9

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
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-1.3.8-orange.svg?style=flat" alt="v1.3.8" />
<img src="https://img.shields.io/badge/version-1.3.9-orange.svg?style=flat" alt="v1.3.9" />
</a>
</p>

Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Meta/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public enum Version
v1_3_5,
v1_3_6,
v1_3_7,
v1_3_8
v1_3_8,
v1_3_9
}
}
4 changes: 2 additions & 2 deletions Source/Core/Meta/VersionUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ namespace PrisonLabor.Core.Meta
{
class VersionUtility
{
public const Version versionNumber = Version.v1_3_8;
public const string versionString = "1.3.8";
public const Version versionNumber = Version.v1_3_9;
public const string versionString = "1.3.9";

public static Version VersionOfSaveFile { get; set; }

Expand Down
3 changes: 1 addition & 2 deletions Source/Core/PrisonLaborUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ public static bool IsDisabledByLabor(IntVec3 pos, Pawn pawn, WorkTypeDef workTyp

public static bool CanWorkHere(IntVec3 pos, Pawn pawn, WorkTypeDef workType)
{
if ((!pawn.IsPrisonerOfColony || !pawn.IsSlaveOfColony) && pos != null && pawn.Map.areaManager.Get<Area_Labor>() != null &&
!WorkSettings.WorkDisabled(workType))
if (pawn.IsFreeNonSlaveColonist && pos != null && pawn.Map.areaManager.Get<Area_Labor>() != null && !WorkSettings.WorkDisabled(workType))
{
bool result = true;
try
Expand Down
1 change: 1 addition & 0 deletions Source/Organizer/NewsFeed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<!-- [img] ... [/img] for image (inside name of file) -->
<!-- [gap] for gap -->
<patches>
<patch version="1.3.9" silent="true"/>
<patch version="1.3.8" silent="true"/>
<patch version="1.3.7" silent="true"/>
<patch version="1.3.6" silent="true"/>
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:
1.3.9
- Prisoner labor area fixes
1.3.8
- Harmony patches for clean and remove snow
- Drugs policy tracker enabled for prisoners
Expand Down

0 comments on commit 9a47195

Please sign in to comment.