Files
institution/Defs/RoomRoleDefs/RoomRoles_Ward.xml
T
flan 2d46fef192 Re-package the aggregate: bundle Ward + ship the policing layer
Fold Ward into the single Institution install as its psychiatric-care
layer. package.sh now builds Ward clean and vendors Ward.dll plus its
defs and textures alongside the other layers, and the settings shim
gains a Ward (psychiatric care) checkbox that writes the shared
InstitutionSettings.ward flag.

Re-assembling also carries in Justice's now-shipping policing defs (the
constable work type and crime thoughts), so the aggregate finally
bundles colony crime and the weighed arrest as well. README updated to
five layers over one Core with policing shipped and Ward folded in;
adds the changelog, the Workshop preview, and the preview generator.
2026-07-15 20:10:56 +00:00

25 lines
843 B
XML

<?xml version="1.0" encoding="utf-8"?>
<Defs>
<!--
RoomRoleDef.workerClass is a public field, so a new room role is XML plus one worker class
and zero patches. Vanilla already ships PrisonCell, PrisonBarracks and Hospital on exactly
this rail; the ward is the fourth sibling.
The score has to beat PrisonCell's, or a ward full of prisoner beds just reads as a cell.
RoomRoleWorker_PsychWard only scores at all when a treatment station is present, so an
ordinary prison cell is untouched and keeps its vanilla role.
-->
<RoomRoleDef>
<defName>Ward_PsychWard</defName>
<label>psychiatric ward</label>
<workerClass>Ward.RoomRoleWorker_PsychWard</workerClass>
<relatedStats>
<li>Impressiveness</li>
<li>Cleanliness</li>
<li>Space</li>
</relatedStats>
</RoomRoleDef>
</Defs>