Skip to content

Instantly share code, notes, and snippets.

@Flixbox
Created December 1, 2022 08:27
Show Gist options
  • Save Flixbox/186df9adbd17218ea5a69510b58745f6 to your computer and use it in GitHub Desktop.
Save Flixbox/186df9adbd17218ea5a69510b58745f6 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<!-- Add genes to any traders that sell medical, high-end, or genetic goods -->
<li Class="PatchOperationAdd">
<xpath>Defs/TraderKindDef/stockGenerators[li/thingDef="MedicineUltratech" or li/thingDef="MedicineIndustrial" or li/thingDef="ComponentSpacer" or li/thingDef="Neutroamine" or li/thingDef="AIPersonaCore" or li/thingDef="VFEI_DroneGenome"]</xpath>
<value>
<li MayRequire="Ludeon.RimWorld.Biotech" Class="StockGenerator_SingleDef">
<thingDef>Genepack</thingDef>
<countRange>3~5</countRange>
</li>
<li MayRequire="Ludeon.RimWorld.Biotech" Class="StockGenerator_SingleDef">
<thingDef>ArchiteCapsule</thingDef>
<countRange>0~2</countRange>
</li>
<li MayRequire="Ludeon.RimWorld.Biotech" Class="StockGenerator_SingleDef">
<thingDef>DeathrestCapacitySerum</thingDef>
<countRange>0~1</countRange>
</li>
</value>
</li>
</operations>
</Operation>
</Patch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment