Skip to content

Commit

Permalink
release (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazzer authored Mar 19, 2024
1 parent 758abc5 commit 1a5e92d
Show file tree
Hide file tree
Showing 25 changed files with 341 additions and 273 deletions.
Binary file modified 1.4/Assemblies/PrisonLabor.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
54 changes: 1 addition & 53 deletions 1.4/Defs/Interrogation/InterrogationDefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,9 @@
<defName>PL_GenQuest</defName>
<questScriptDefs>
<li>OpportunitySite_ItemStash</li>
<li>OpportunitySite_WorkSite</li>
<li MayRequire="Ludeon.RimWorld.Ideology">OpportunitySite_WorkSite</li>
</questScriptDefs>
</PrisonLabor.Core.Interrogation.InterrogationQuestGenDef>
<ThingDef ParentName="ArtableFurnitureBase">
<defName>PL_InterrogationChair</defName>
<label>interrogation chair</label>
<description>Not comfortable chair used to interrogate prisoners.</description>
<graphicData>
<texPath>Things/Building/Furniture/DiningChair</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>(1,1)</drawSize>
<damageData>
<rectN>(0.25,0.234375,0.5,0.28125)</rectN>
<rectS>(0.25,0.234375,0.5,0.28125)</rectS>
<rectE>(0.28125,0.25,0.453125,0.25)</rectE>
<rectW>(0.28125,0.25,0.453125,0.25)</rectW>
</damageData>
<shadowData>
<volume>(0.23, 0.26, 0.23)</volume>
</shadowData>
</graphicData>
<altitudeLayer>Building</altitudeLayer>
<statBases>
<MaxHitPoints>100</MaxHitPoints>
<WorkToBuild>8000</WorkToBuild>
<Mass>5</Mass>
<Flammability>1.0</Flammability>
<Beauty>1</Beauty>
<Comfort>0.30</Comfort>
<StyleDominance MayRequire="Ludeon.RimWorld.Ideology">5</StyleDominance>
</statBases>
<socialPropernessMatters>true</socialPropernessMatters>
<stuffCategories>
<li>Metallic</li>
<li>Woody</li>
</stuffCategories>
<costStuffCount>45</costStuffCount>
<pathCost>30</pathCost>
<designationHotKey>Misc7</designationHotKey>
<fillPercent>0.35</fillPercent>
<defaultPlacingRot>South</defaultPlacingRot>
<uiOrder>2410</uiOrder>
<building>
<isSittable>true</isSittable>
<paintable>true</paintable>
</building>
<constructionSkillPrerequisite>4</constructionSkillPrerequisite>
<researchPrerequisites>
<li>ComplexFurniture</li>
</researchPrerequisites>
<comps>
<li Class="CompProperties_Styleable"/>
<li Class="PrisonLabor.Core.Interrogation.CompPropertiesInterrogation"/>
</comps>
</ThingDef>
<RoomRoleDef>
<defName>PL_InterrogationRoom</defName>
<label>interrogation room</label>
Expand Down
41 changes: 36 additions & 5 deletions 1.4/Defs/Interrogation/InterrogationPatterns.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<defName>PL_Interrogation</defName>
<ritualOnlyForIdeoMembers>false</ritualOnlyForIdeoMembers>
<ritualBehavior>PL_Interrogation</ritualBehavior>
<ritualTargetFilter>SelectedThing</ritualTargetFilter>
<ritualTargetFilter>PL_SelectedThing</ritualTargetFilter>
<ritualObligationTargetFilter>PL_InterrogationRoom</ritualObligationTargetFilter>
<ritualOutcomeEffect>PL_Interrogation</ritualOutcomeEffect>
<playsIdeoMusic>false</playsIdeoMusic>
Expand Down Expand Up @@ -93,7 +93,7 @@
<roleBehaviors>
<li>
<roleId>warden</roleId>
<dutyDef>DeliverPawnToCell</dutyDef>
<dutyDef>PL_DeliverPawnToCell</dutyDef>
<customPositions>
<li Class="PrisonLabor.Core.Interrogation.Ritual.RitualPosition_ThingCenter"/>
</customPositions>
Expand Down Expand Up @@ -123,7 +123,7 @@
</li>
<li>
<roleId>prisoner</roleId>
<dutyDef>StandOnCell</dutyDef>
<dutyDef>PL_StandOnCell</dutyDef>
</li>
</roleBehaviors>
</li>
Expand All @@ -145,12 +145,43 @@
</subNodes>
</li>
<li Class="PrisonLabor.Core.Interrogation.Ritual.JobGiver_Interrogate">
<soundDefMale>Speech_Ideoligious_Male</soundDefMale>
<soundDefFemale>Speech_Ideoligious_Female</soundDefFemale>
<soundDefMale MayRequire="Ludeon.RimWorld.Ideology">Speech_Ideoligious_Male</soundDefMale>
<soundDefFemale MayRequire="Ludeon.RimWorld.Ideology">Speech_Ideoligious_Female</soundDefFemale>
</li>
</subNodes>
</thinkNode>
</DutyDef>
<DutyDef>
<defName>PL_DeliverPawnToCell</defName>
<hook>HighPriority</hook>
<socialModeMax>Off</socialModeMax>
<thinkNode Class="ThinkNode_Priority">
<subNodes>
<!-- Goto pawn -->
<li Class="JobGiver_DeliverPawnToCell">
<exactCell>true</exactCell>
<locomotionUrgency>Jog</locomotionUrgency>
</li>
</subNodes>
</thinkNode>
</DutyDef>
<DutyDef>
<defName>PL_StandOnCell</defName>
<thinkNode Class="ThinkNode_Priority">
<subNodes>

<li Class="JobGiver_Idle">
<ticks>60</ticks>
</li>

</subNodes>
</thinkNode>
</DutyDef>

<RitualTargetFilterDef>
<defName>PL_SelectedThing</defName>
<workerClass>RitualTargetFilter_SelectedThing</workerClass>
</RitualTargetFilterDef>
<JobDef>
<defName>PL_Interrogate</defName>
<driverClass>PrisonLabor.Core.Interrogation.Ritual.JobDriver_Interrogate</driverClass>
Expand Down
Binary file not shown.
55 changes: 55 additions & 0 deletions 1.4/Ideology/Defs/PL_Ideology_InterrogationDefs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThingDef ParentName="ArtableFurnitureBase">
<defName>PL_InterrogationChair</defName>
<label>interrogation chair</label>
<description>Not comfortable chair used to interrogate prisoners.</description>
<graphicData>
<texPath>Things/Building/Furniture/DiningChair</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>(1,1)</drawSize>
<damageData>
<rectN>(0.25,0.234375,0.5,0.28125)</rectN>
<rectS>(0.25,0.234375,0.5,0.28125)</rectS>
<rectE>(0.28125,0.25,0.453125,0.25)</rectE>
<rectW>(0.28125,0.25,0.453125,0.25)</rectW>
</damageData>
<shadowData>
<volume>(0.23, 0.26, 0.23)</volume>
</shadowData>
</graphicData>
<altitudeLayer>Building</altitudeLayer>
<statBases>
<MaxHitPoints>100</MaxHitPoints>
<WorkToBuild>8000</WorkToBuild>
<Mass>5</Mass>
<Flammability>1.0</Flammability>
<Beauty>1</Beauty>
<Comfort>0.30</Comfort>
<StyleDominance MayRequire="Ludeon.RimWorld.Ideology">5</StyleDominance>
</statBases>
<socialPropernessMatters>true</socialPropernessMatters>
<stuffCategories>
<li>Metallic</li>
<li>Woody</li>
</stuffCategories>
<costStuffCount>45</costStuffCount>
<pathCost>30</pathCost>
<designationHotKey>Misc7</designationHotKey>
<fillPercent>0.35</fillPercent>
<defaultPlacingRot>South</defaultPlacingRot>
<uiOrder>2410</uiOrder>
<building>
<isSittable>true</isSittable>
<paintable>true</paintable>
</building>
<constructionSkillPrerequisite>4</constructionSkillPrerequisite>
<researchPrerequisites>
<li>ComplexFurniture</li>
</researchPrerequisites>
<comps>
<li Class="CompProperties_Styleable"/>
<li Class="PrisonLabor.Core.Interrogation.CompPropertiesInterrogation"/>
</comps>
</ThingDef>
</Defs>
Binary file modified 1.4/Kijin/Assemblies/PrisonLaborKijinCompatibility.dll
Binary file not shown.
Binary file modified 1.4/Quarry/Assemblies/PrisonLaborQuarryCompatibility.dll
Binary file not shown.
Binary file modified 1.4/Therapy/Assemblies/PrisonLaborTherapyCompatibility.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 @@ -35,7 +35,7 @@
</modDependencies>

<description>
Version 1.4.8
Version 1.4.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.4.8-orange.svg?style=flat" alt="v1.4.8" />
<img src="https://img.shields.io/badge/version-1.4.9-orange.svg?style=flat" alt="v1.4.9" />
</a>
</p>

Expand Down
10 changes: 9 additions & 1 deletion Source/Core/Interrogation/InterrogationDefsOf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,24 @@

namespace PrisonLabor.Core.Interrogation
{
[DefOf]
[DefOf]
public static class InterrogationDefsOf
{
[MayRequireIdeology]
public static InterrogationQuestGenDef PL_GenQuest;
[MayRequireIdeology]
public static ThoughtDef PL_BitMe;
[MayRequireIdeology]
public static ThoughtDef PL_KindInterrogation;
[MayRequireIdeology]
public static ThoughtDef PL_Interrogated;
[MayRequireIdeology]
public static ThoughtDef PL_BrutallyInterrogated;
[MayRequireIdeology]
public static JobDef PL_Interrogate;
[MayRequireIdeology]
public static InteractionDef PL_InterrogateInteraction;
[MayRequireIdeology]
public static InteractionDef PL_BeIntrrogatedInteraction;
}
}
1 change: 1 addition & 0 deletions Source/Core/Interrogation/Ritual/JobGiver_Interrogate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ protected override Job TryGiveJob(Pawn pawn)
{
job.interaction = lordToil_Ritual.stage.BehaviorForRole(lordJob_Ritual.RoleFor(pawn).id).speakerInteraction;
}

job.speechSoundMale = (soundDefMale ?? SoundDefOf.Speech_Leader_Male);
job.speechSoundFemale = (soundDefFemale ?? SoundDefOf.Speech_Leader_Female);
job.speechFaceSpectatorsIfPossible = faceSpectatorsIfPossible;
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 @@ -88,6 +88,7 @@ public enum Version
v1_4_5,
v1_4_6,
v1_4_7,
v1_4_8
v1_4_8,
v1_4_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
{
public class VersionUtility
{
public const Version versionNumber = Version.v1_4_8;
public const string versionString = "1.4.8";
public const Version versionNumber = Version.v1_4_9;
public const string versionString = "1.4.9";

public static Version VersionOfSaveFile { get; set; }

Expand Down
Loading

0 comments on commit 1a5e92d

Please sign in to comment.