RimWorld
Raiderpedes
dninemfive 2018년 4월 22일 오전 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>
< >
전체 댓글 1개 중 1~1개 표시 중
Jdalt40  [개발자] 2018년 5월 7일 오후 5시 58분 
Thanks! I'll implement it right now :)
< >
전체 댓글 1개 중 1~1개 표시 중
페이지당 표시 개수: 1530 50