Files
institution/Defs/Misc_Contraband.xml
T

36 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<JobDef>
<defName>Contraband_SearchPawn</defName>
<driverClass>Institution.JobDriver_SearchPawn</driverClass>
<reportString>searching TargetA.</reportString>
</JobDef>
<!--
A NEW WorkGiver class, not a patch on a vanilla one. That is what keeps this mod out of a
fight with the rest of the prison ecosystem:
- Custom Prisoner Interactions patches the NAMED vanilla warden givers (_Chat, _Convert,
_Enslave, _ReleasePrisoner). It cannot see this one.
- Prison Commons postfixes WorkGiver_Warden.ShouldSkip on the BASE class, which this
inherits and does not override, so searches respect prison-commons areas for free.
Priority sits below feeding: a starving prisoner matters more than a hidden shiv.
-->
<WorkGiverDef>
<defName>Contraband_WardenSearch</defName>
<label>search prisoners for contraband</label>
<giverClass>Institution.WorkGiver_Warden_Search</giverClass>
<workType>Warden</workType>
<verb>search</verb>
<gerund>searching</gerund>
<priorityInType>40</priorityInType>
<requiredCapacities>
<li>Manipulation</li>
<li>Sight</li>
</requiredCapacities>
</WorkGiverDef>
</Defs>