Skip to content

Commit

Permalink
Version 0.3b
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviuz committed Jul 12, 2017
1 parent 634d44a commit bda2c6d
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 29 deletions.
4 changes: 3 additions & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Prison Labor (Alpha)</name>
<author>Avius</author>
<targetVersion>0.17.0</targetVersion>
<description>Version 0.3a
<description>Version 0.3b

This mod force prisoners to work if Prisoner Interaction is set to "Work".
Prisoner must be fed, and rested, or he(she) will refuse to work. Currently prisoners can only cook, mine, cut plants, craft, haul, and clean.
Expand All @@ -22,6 +22,8 @@ To make prisoners work you must meet these conditions:
- Prisoner interaction is set to "Work" (no "Chat and Recruit", or "Friendly Chat").

Changelog:
0.3b
- Fixed "Forbidden" bug
0.3a
- wardens no longer watch over hungry or tired prisoners
0.3
Expand Down
Binary file modified Assemblies/PrisonLabor.dll
Binary file not shown.
15 changes: 10 additions & 5 deletions Defs/Job.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<JobDef>
<defName>PrisonerSupervise</defName>
<driverClass>PrisonLabor.JobDriver_Supervise</driverClass>
<reportString>watching prisoner TargetA.</reportString>
<alwaysShowWeapon>true</alwaysShowWeapon>
</JobDef>
<defName>PrisonerSupervise</defName>
<driverClass>PrisonLabor.JobDriver_Supervise</driverClass>
<reportString>watching prisoner TargetA.</reportString>
<alwaysShowWeapon>true</alwaysShowWeapon>
</JobDef>
<JobDef>
<defName>PrisonLabor.Mine_Tweak</defName>
<driverClass>PrisonLabor.JobDriver_Mine_Tweak</driverClass>
<reportString>digging at TargetA.</reportString>
</JobDef>
</Defs>
9 changes: 8 additions & 1 deletion Defs/Tutor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
<highlightTags>
<li>ITab-Prisoner-Closed</li>
</highlightTags>
<helpText>You can force your prisoners to labor.\n\nTo do so you must select "No Interaction" option from "Prisoner" pane\n\nAlso, you must ensure your prisoners are fed and rested. You can check this in 'Needs' tab.\n\nPrisoners will work on orders and bills that are in allowed area.\nThey can only cook, mine, cut plants, haul and clean.\n\nHINT: If you put a stove in a prison cell make sure they can reach raw food.\n\nHINT: You can let prioners moving through doors by leaving them open.</helpText>
<helpText>You can force your prisoners to labor.\n\nTo do so you must select "Work" option from "Prisoner" pane\n\nAlso, you must ensure your prisoners are fed and rested. You can check this in 'Needs' tab.\n\nPrisoners will work on orders and bills that are in allowed area.\nThey can only cook, mine, cut plants, haul and clean.\n\nHINT: If you put a stove in a prison cell make sure they can reach raw food.\n\nHINT: You can let prioners moving through doors by leaving them open.</helpText>
</ConceptDef>
<ConceptDef>
<defName>LazyPrisoner</defName>
<label>Lazy Prisoner</label>
<priority>100</priority>
<needsOpportunity>True</needsOpportunity>
<helpText>One of yours prisoners got lazy.\nHe won't work any longer, unless he get motivated.\nMake sure you have enough wardens (check "Work" tab), or draft one of your colonist and order him to stand around your prisoners.</helpText>
</ConceptDef>
</Defs>
20 changes: 0 additions & 20 deletions Defs/Tutorials/Tutor.xml

This file was deleted.

25 changes: 25 additions & 0 deletions Defs/WorkGiver.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,29 @@
<li>Talking</li>
</requiredCapacities>
</WorkGiverDef>
<!--WorkGiverDef>
<defName>DeliverFoodToPrisonerTweak</defName>
<label>deliver food to prisoners</label>
<giverClass>PrisonLabor.WorkGiver_Warden_DeliverFood_Tweak</giverClass>
<workType>Warden</workType>
<verb>deliver food for</verb>
<gerund>delivering food for</gerund>
<priorityInType>69</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef-->
<WorkGiverDef>
<defName>PrisonLabor.Mine_Tweak</defName>
<label>mine</label>
<giverClass>PrisonLabor.WorkGiver_Miner_Tweak</giverClass>
<workType>Mining</workType>
<priorityInType>101</priorityInType>
<verb>mine</verb>
<gerund>mining</gerund>
<tagToGive>Fieldwork</tagToGive>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>
</WorkGivers>
2 changes: 0 additions & 2 deletions Defs/WorkOption.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PrisonerInteractionModes>
<!-- Work in progress, this can't be added properly for now, RimWorld fault-->
<PrisonerInteractionModeDef>
<defName>PrisonLabor_workOption</defName>
<label>Force to work</label>
<listOrder>5</listOrder>
</PrisonerInteractionModeDef>
</PrisonerInteractionModes>

0 comments on commit bda2c6d

Please sign in to comment.