Skip to content

Commit

Permalink
hospitality fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dubwise56 committed Nov 14, 2022
1 parent 6c1f18a commit 6158069
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 133 deletions.
Binary file modified 1.4/Assemblies/BadHygiene.dll
Binary file not shown.
278 changes: 148 additions & 130 deletions 1.4/Defs/WorkGiverDefs/WorkGivers.xml
Original file line number Diff line number Diff line change
@@ -1,135 +1,153 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

<WorkGiverDef DBHLite="true">
<defName>PlaceFertilizer</defName>
<label>fertilize</label>
<giverClass>DubsBadHygiene.WorkGiver_PlaceFertilizer</giverClass>
<workType>Growing</workType>
<priorityInType>20</priorityInType>
<verb>fertilize</verb>
<gerund>fertilizing</gerund>
<scanThings>false</scanThings>
<scanCells>true</scanCells>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>

<WorkGiverDef DBHLite="true">
<defName>TipSewage</defName>
<label>tip sewage</label>
<giverClass>DubsBadHygiene.WorkGiver_TipSewage</giverClass>
<workType>BasicWorker</workType>
<verb>tip Sewage</verb>
<gerund>tipping over</gerund>
<canBeDoneWhileDrafted>true</canBeDoneWhileDrafted>
<priorityInType>500</priorityInType>
</WorkGiverDef>

<WorkGiverDef DBHLite="true">
<defName>DrainWaterTank</defName>
<label>drain water</label>
<giverClass>DubsBadHygiene.WorkGiver_DrainWater</giverClass>
<workType>BasicWorker</workType>
<verb>drain</verb>
<gerund>draining</gerund>
<canBeDoneWhileDrafted>true</canBeDoneWhileDrafted>
<priorityInType>600</priorityInType>
</WorkGiverDef>







<WorkGiverDef DBHThirst="true">
<defName>DBHAdministerFluids</defName>
<label>administer fluids</label>
<giverClass>DubsBadHygiene.WorkGiver_AdministerFluids</giverClass>
<workType>Doctor</workType>
<verb>give drink</verb>
<gerund>serving drink</gerund>
<priorityInType>79</priorityInType>
<prioritizeSustains>true</prioritizeSustains>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
<feedHumanlikesOnly>true</feedHumanlikesOnly>
</WorkGiverDef>

<WorkGiverDef DBHThirst="true">
<defName>DBHAdministerFluidsWarden</defName>
<label>administer fluids</label>
<giverClass>DubsBadHygiene.WorkGiver_AdministerFluids</giverClass>
<workType>Warden</workType>
<verb>give drink</verb>
<gerund>serving drink</gerund>
<priorityInType>79</priorityInType>
<prioritizeSustains>true</prioritizeSustains>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
<feedHumanlikesOnly>true</feedHumanlikesOnly>
</WorkGiverDef>







<WorkGiverDef>
<defName>ClearBlockage</defName>
<label>clear blockage</label>
<giverClass>DubsBadHygiene.WorkGiver_FixBlockage</giverClass>
<workType>Cleaning</workType>
<verb>clear blockage</verb>
<gerund>clearing blockage</gerund>
<priorityInType>50</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>

<WorkGiverDef>
<defName>washPatient</defName>
<label>wash patient</label>
<giverClass>DubsBadHygiene.WorkGiver_washPatient</giverClass>
<workType>Doctor</workType>
<verb>wash</verb>
<gerund>washing</gerund>
<priorityInType>52</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>

<WorkGiverDef>
<defName>DocCleanBedpan</defName>
<label>clean bed pan</label>
<giverClass>DubsBadHygiene.WorkGiver_cleanBedpan</giverClass>
<workType>Doctor</workType>
<verb>clean</verb>
<gerund>cleaning</gerund>
<priorityInType>51</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>

<WorkGiverDef>
<defName>cleanBedpan</defName>
<label>clean bed pan</label>
<giverClass>DubsBadHygiene.WorkGiver_cleanBedpan</giverClass>
<workType>Cleaning</workType>
<verb>clean</verb>
<gerund>cleaning</gerund>
<priorityInType>50</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>
<WorkGiverDef DBHLite="true">
<defName>PlaceFertilizer</defName>
<label>fertilize</label>
<giverClass>DubsBadHygiene.WorkGiver_PlaceFertilizer</giverClass>
<workType>Growing</workType>
<priorityInType>20</priorityInType>
<verb>fertilize</verb>
<gerund>fertilizing</gerund>
<scanThings>false</scanThings>
<scanCells>true</scanCells>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>

<WorkGiverDef DBHLite="true">
<defName>TipSewage</defName>
<label>tip sewage</label>
<giverClass>DubsBadHygiene.WorkGiver_TipSewage</giverClass>
<workType>BasicWorker</workType>
<verb>tip Sewage</verb>
<gerund>tipping over</gerund>
<canBeDoneWhileDrafted>true</canBeDoneWhileDrafted>
<priorityInType>500</priorityInType>
</WorkGiverDef>

<WorkGiverDef DBHLite="true">
<defName>DrainWaterTank</defName>
<label>drain water</label>
<giverClass>DubsBadHygiene.WorkGiver_DrainWater</giverClass>
<workType>BasicWorker</workType>
<verb>drain</verb>
<gerund>draining</gerund>
<canBeDoneWhileDrafted>true</canBeDoneWhileDrafted>
<priorityInType>600</priorityInType>
</WorkGiverDef>







<WorkGiverDef DBHThirst="true">
<defName>DBHAdministerFluids</defName>
<label>administer fluids</label>
<giverClass>DubsBadHygiene.WorkGiver_AdministerFluids</giverClass>
<workType>Doctor</workType>
<verb>give drink</verb>
<gerund>serving drink</gerund>
<priorityInType>79</priorityInType>
<prioritizeSustains>true</prioritizeSustains>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
<feedHumanlikesOnly>true</feedHumanlikesOnly>
</WorkGiverDef>

<WorkGiverDef DBHThirst="true">
<defName>DBHAdministerFluidsWarden</defName>
<label>administer fluids</label>
<giverClass>DubsBadHygiene.WorkGiver_AdministerFluids</giverClass>
<workType>Warden</workType>
<verb>give drink</verb>
<gerund>serving drink</gerund>
<priorityInType>79</priorityInType>
<prioritizeSustains>true</prioritizeSustains>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
<feedHumanlikesOnly>true</feedHumanlikesOnly>
</WorkGiverDef>








<WorkGiverDef>
<defName>ClearBlockage</defName>
<label>clear blockage</label>
<giverClass>DubsBadHygiene.WorkGiver_FixBlockage</giverClass>
<workType>Cleaning</workType>
<verb>clear blockage</verb>
<gerund>clearing blockage</gerund>
<priorityInType>50</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>

<WorkGiverDef>
<defName>washPatient</defName>
<label>wash patient</label>
<giverClass>DubsBadHygiene.WorkGiver_washPatient</giverClass>
<workType>Doctor</workType>
<verb>wash</verb>
<gerund>washing</gerund>
<priorityInType>52</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>

<WorkGiverDef>
<defName>washChild</defName>
<label>wash child</label>
<giverClass>DubsBadHygiene.WorkGiver_washChild</giverClass>
<workType>Childcare</workType>
<verb>wash</verb>
<gerund>washing</gerund>
<priorityInType>52</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>


<WorkGiverDef>
<defName>DocCleanBedpan</defName>
<label>clean bed pan</label>
<giverClass>DubsBadHygiene.WorkGiver_cleanBedpan</giverClass>
<workType>Doctor</workType>
<verb>clean</verb>
<gerund>cleaning</gerund>
<priorityInType>51</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>

<WorkGiverDef>
<defName>cleanBedpan</defName>
<label>clean bed pan</label>
<giverClass>DubsBadHygiene.WorkGiver_cleanBedpan</giverClass>
<workType>Cleaning</workType>
<verb>clean</verb>
<gerund>cleaning</gerund>
<priorityInType>50</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
</requiredCapacities>
</WorkGiverDef>




</Defs>
6 changes: 3 additions & 3 deletions 1.4/Patches/HygienePatches.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,19 @@
<success>Always</success>
</li>
<li Class="PatchOperationInsert">
<xpath>*/DutyDef[defName = "Relax"]/thinkNode[@Class="ThinkNode_Priority"]/subNodes/li[@Class="Hospitality.ThinkNode_FilterGuestRooms"]/subNodes/li[@Class="ThinkNode_Tagger"]/subNodes/li[@Class="ThinkNode_PrioritySorter"]/subNodes//li[1]</xpath>
<xpath>*/DutyDef[defName = "Relax"]/thinkNode[@Class="ThinkNode_Priority"]/subNodes/li[@Class="Hospitality.ThinkNode_OnlyAllowed"]/subNodes/li[@Class="ThinkNode_Tagger"]/subNodes/li[@Class="ThinkNode_PrioritySorter"]/subNodes//li[1]</xpath>
<value>
<li Class="DubsBadHygiene.JobGiver_HaveWash"/>
</value>
</li>
<li Class="PatchOperationInsert">
<xpath>*/DutyDef[defName = "Relax"]/thinkNode[@Class="ThinkNode_Priority"]/subNodes/li[@Class="Hospitality.ThinkNode_FilterGuestRooms"]/subNodes/li[@Class="ThinkNode_Tagger"]/subNodes/li[@Class="ThinkNode_PrioritySorter"]/subNodes//li[1]</xpath>
<xpath>*/DutyDef[defName = "Relax"]/thinkNode[@Class="ThinkNode_Priority"]/subNodes/li[@Class="Hospitality.ThinkNode_OnlyAllowed"]/subNodes/li[@Class="ThinkNode_Tagger"]/subNodes/li[@Class="ThinkNode_PrioritySorter"]/subNodes//li[1]</xpath>
<value>
<li Class="DubsBadHygiene.JobGiver_UseToilet"/>
</value>
</li>
<li Class="PatchOperationInsert">
<xpath>*/DutyDef[defName = "Relax"]/thinkNode[@Class="ThinkNode_Priority"]/subNodes/li[@Class="Hospitality.ThinkNode_FilterGuestRooms"]/subNodes/li[@Class="ThinkNode_Tagger"]/subNodes/li[@Class="ThinkNode_PrioritySorter"]/subNodes//li[1]</xpath>
<xpath>*/DutyDef[defName = "Relax"]/thinkNode[@Class="ThinkNode_Priority"]/subNodes/li[@Class="Hospitality.ThinkNode_OnlyAllowed"]/subNodes/li[@Class="ThinkNode_Tagger"]/subNodes/li[@Class="ThinkNode_PrioritySorter"]/subNodes//li[1]</xpath>
<value>
<li Class="DubsBadHygiene.JobGiver_DrinkWater"/>
</value>
Expand Down

0 comments on commit 6158069

Please sign in to comment.