Skip to content

Commit

Permalink
bug fix (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazzer authored Apr 23, 2022
1 parent 67e97b6 commit ca709a2
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 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.10
<description>Version 1.3.11

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.10-orange.svg?style=flat" alt="v1.3.10" />
<img src="https://img.shields.io/badge/version-1.3.11-orange.svg?style=flat" alt="v1.3.11" />
</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 @@ -78,6 +78,7 @@ public enum Version
v1_3_7,
v1_3_8,
v1_3_9,
v1_3_10
v1_3_10,
v1_3_11
}
}
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_10;
public const string versionString = "1.3.10";
public const Version versionNumber = Version.v1_3_11;
public const string versionString = "1.3.11";

public static Version VersionOfSaveFile { get; set; }

Expand Down
5 changes: 4 additions & 1 deletion Source/Core/Other/CleanPrisonersStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ static public void Clean(Pawn prisoner)
prisoner.workSettings = new Pawn_WorkSettings(prisoner);
CleanHediffs(prisoner);
prisoner.playerSettings.AreaRestriction = null;
prisoner.drugs.CurrentPolicy = Current.Game.drugPolicyDatabase.DefaultDrugPolicy();
if (prisoner.drugs != null)
{
prisoner.drugs.CurrentPolicy = Current.Game.drugPolicyDatabase.DefaultDrugPolicy();
}
}

static public void CleanHediffs(Pawn prisoner)
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.11" silent="true"/>
<patch version="1.3.10" silent="true"/>
<patch version="1.3.9" silent="true"/>
<patch version="1.3.8" 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.11
- Fixed recruitment error for not working prisoners
1.3.10
- Motivated prisoners should respect food polices
- Fixed: prisoner should be able to use scanners
Expand Down

0 comments on commit ca709a2

Please sign in to comment.