Files
institution/Patches/Ward_DisorderIntegration.xml
T

73 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Soft integration with [RF] Rim Disorders (Continued). The README's whole pitch is that its chronic
hediffs are Ward's admission criteria; this is what makes that true in the game rather than on
paper. Each operation is CONDITIONAL on the hediff existing, so the file is a silent no-op when Rim
Disorders is not loaded — Ward never hard-depends on it.
Attached only to the clinical, distress-causing conditions: major depression, generalized anxiety,
PTSD, cleanliness-OCD. Deliberately NOT Autism or ADHD — those are neurotypes, and a ward that
"treats away" who someone is would be a worse mod, not a more featureful one.
A player or another mod can opt any hediff in the same way: add the Institution.TreatableConditionExtension extension.
-->
<Patch>
<Operation Class="PatchOperationConditional">
<xpath>/Defs/HediffDef[defName="MajorDepression"]</xpath>
<match Class="PatchOperationAdd">
<xpath>/Defs/HediffDef[defName="MajorDepression"]</xpath>
<value>
<modExtensions>
<li Class="Institution.TreatableConditionExtension">
<reductionPerSession>0.10</reductionPerSession>
</li>
</modExtensions>
</value>
</match>
</Operation>
<Operation Class="PatchOperationConditional">
<xpath>/Defs/HediffDef[defName="GeneralizedAnxiety"]</xpath>
<match Class="PatchOperationAdd">
<xpath>/Defs/HediffDef[defName="GeneralizedAnxiety"]</xpath>
<value>
<modExtensions>
<li Class="Institution.TreatableConditionExtension">
<reductionPerSession>0.12</reductionPerSession>
</li>
</modExtensions>
</value>
</match>
</Operation>
<Operation Class="PatchOperationConditional">
<xpath>/Defs/HediffDef[defName="PTSD"]</xpath>
<match Class="PatchOperationAdd">
<xpath>/Defs/HediffDef[defName="PTSD"]</xpath>
<value>
<modExtensions>
<li Class="Institution.TreatableConditionExtension">
<reductionPerSession>0.08</reductionPerSession>
</li>
</modExtensions>
</value>
</match>
</Operation>
<Operation Class="PatchOperationConditional">
<xpath>/Defs/HediffDef[defName="COCD"]</xpath>
<match Class="PatchOperationAdd">
<xpath>/Defs/HediffDef[defName="COCD"]</xpath>
<value>
<modExtensions>
<li Class="Institution.TreatableConditionExtension">
<reductionPerSession>0.10</reductionPerSession>
</li>
</modExtensions>
</value>
</match>
</Operation>
</Patch>