RimWorld

RimWorld

Raiderpedes
dninemfive 22 Apr, 2018 @ 10:54am
Xpath raiderpede pirate insert
Instead of overriding the entire pirate def, which might break compatibility with other mods, use Xpath patching instead. I've already made a working file for you, which I'll paste below. Delete the FactionDefs folder and instead paste this in a new XML in a new "Patches" folder in the root:

<?xml version="1.0" encoding="utf-8" ?> <Patch> <!-- xpath code by dninemfive --> <Operation Class="PatchOperationAdd"> <xpath>*/FactionDef[defName = "Pirate"]/pawnGroupMakers</xpath> <value> <li> <!-- pirate raid with raiderpedes --> <kindDef>Normal</kindDef> <commonality>100</commonality> <disallowedStrategies> <li>Siege</li> </disallowedStrategies> <options> <Drifter>5</Drifter> <GrenadierEMP>5</GrenadierEMP> <GrenadierDestructive>20</GrenadierDestructive> <Thrasher>70</Thrasher> <MercenarySlasher>70</MercenarySlasher> <MercenaryHeavy>60</MercenaryHeavy> <MercenarySniper>80</MercenarySniper> <Scavenger>100</Scavenger> <Pirate>120</Pirate> <MercenaryGunner>100</MercenaryGunner> <MercenaryElite>100</MercenaryElite> <PirateBoss>100</PirateBoss> <Raiderpede>40</Raiderpede> </options> </li> </value> </Operation> <Operation Class="PatchOperationAdd"> <!-- adding raiderpedes to base defense --> <xpath>*/FactionDef[defName = "Pirate"]/pawnGroupMakers/li[kindDef = "FactionBase"]/options</xpath> <value> <Raiderpede>40</Raiderpede> </value> </Operation> </Patch>
< >
Showing 1-1 of 1 comments
Jdalt40  [developer] 7 May, 2018 @ 5:58pm 
Thanks! I'll implement it right now :)
< >
Showing 1-1 of 1 comments
Per page: 1530 50