rimworld-blax-castes/Patches/BlaxCastes_Assign.xml

29 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Patch>
<!-- The Caste column goes right before the hostility column, left of medical care and the policy columns.
If another mod removed the hostility column, it goes right after the name column instead. The column is
taken out again at startup when the "Caste column in the Assign tab" setting is off (AssignColumn.cs). -->
<Operation Class="PatchOperationConditional">
<xpath>Defs/PawnTableDef[defName="Assign"]/columns/li[text()="HostilityResponse"]</xpath>
<match Class="PatchOperationInsert">
<xpath>Defs/PawnTableDef[defName="Assign"]/columns/li[text()="HostilityResponse"]</xpath>
<order>Prepend</order>
<value>
<li>BlaxCastes_Caste</li>
</value>
</match>
<nomatch Class="PatchOperationConditional">
<xpath>Defs/PawnTableDef[defName="Assign"]/columns/li[text()="LabelShortWithIcon"]</xpath>
<match Class="PatchOperationInsert">
<xpath>Defs/PawnTableDef[defName="Assign"]/columns/li[text()="LabelShortWithIcon"]</xpath>
<order>Append</order>
<value>
<li>BlaxCastes_Caste</li>
</value>
</match>
</nomatch>
</Operation>
</Patch>