RimWorld

RimWorld

Raiderpedes
dninemfive 22. apr. 2018 kl. 10.54
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>
< >
Viser 11 av 1 kommentarer
Jdalt40  [utvikler] 7. mai 2018 kl. 17.58 
Thanks! I'll implement it right now :)
< >
Viser 11 av 1 kommentarer
Per side: 1530 50