Skip to content
Snippets Groups Projects
Commit 8683d183 authored by Zaltys's avatar Zaltys :snake:
Browse files

Direct xpath for faster loading.

parent 169e558a
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
<Patch>
<!-- Generate a HediffGiver for the dummy hediff, then inject it into the OrganicStandard HediffGiverSet;this replace the inject_sexualizer() in First.cs -->
<Operation Class="PatchOperationAdd">
<xpath>*/HediffGiverSetDef[defName = "OrganicStandard" or "OrganicAgeless"]/hediffGivers</xpath>
<xpath>Defs/HediffGiverSetDef[defName = "OrganicStandard" or "OrganicAgeless"]/hediffGivers</xpath>
<value>
<li Class="HediffGiver_Birthday">
<hediff>DummyPrivates</hediff>
......@@ -31,11 +31,11 @@
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>*/ThingDef[thingClass = "AIPawn.AIPawn"]</xpath>
<xpath>Defs/ThingDef[thingClass = "AIPawn.AIPawn"]</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[thingClass = "AIPawn.AIPawn"]/race</xpath>
<xpath>Defs/ThingDef[thingClass = "AIPawn.AIPawn"]/race</xpath>
<value>
<hediffGiverSets>
<li>DummyPrivatesForModdedPawnsOnBirthday</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment