Skip to content

Instantly share code, notes, and snippets.

@zorbathut
Last active May 21, 2017 21:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zorbathut/99a3858fafd2dc9bea8f685ed6b35556 to your computer and use it in GitHub Desktop.
Save zorbathut/99a3858fafd2dc9bea8f685ed6b35556 to your computer and use it in GitHub Desktop.
<Patch>
<Operation Class="PatchOperationReplace">
<xpath>//HediffDef[defName = "Heatstroke"]/lethalSeverity</xpath>
<value>
<lethalSeverity>0.1</lethalSeverity>
</value>
</Operation>
<Operation Class="PatchOperationInsert">
<xpath>//ThingDef[@Name = "StandingLampBase"]/costList/Steel</xpath>
<order>Append</order>
<value>
<Cloth>5</Cloth>
</value>
</Operation>
<Operation Class="PatchOperationRemove">
<xpath>//ThingDef[defName = "HospitalBed"]/costList</xpath>
</Operation>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>//ThingDef[defName = "DiningChair"]/costList</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>//ThingDef[defName = "DiningChair"]</xpath>
<value>
<costList />
</value>
</li>
</operations>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>//ThingDef[defName = "DiningChair"]/costList</xpath>
<value>
<Cloth>5</Cloth>
</value>
</Operation>
</Patch>
@kaptain-kavern
Copy link

Thank you ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment