Skip to content

Instantly share code, notes, and snippets.

@slippycheeze
Created July 3, 2022 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slippycheeze/1cdef5d70e1087ab2bae32640631abfe to your computer and use it in GitHub Desktop.
Save slippycheeze/1cdef5d70e1087ab2bae32640631abfe to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Patch>
<Operation Class="XmlExtensions.Conditional">
<xpath>Defs/ThingDef[defName="VFEA_AncientChemfuelPoweredGenerator"]</xpath>
<caseTrue>
<Operation Class="XmlExtensions.PatchOperationSafeAdd">
<xpath>Defs/ThingDef[defName="VFEA_AncientChemfuelPoweredGenerator"]/comps/li/fuelFilter/thingDefs</xpath>
<compare>Both</compare>
<value>
<li MayRequire="Scruffy.Content.ONIAnimals">OxR_Coal</li>
</value>
</Operation>
</caseTrue>
</Operation>
</Patch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment