RimWorld

RimWorld

Helpful Raccoons
dninemfive 23 Apr, 2018 @ 4:24pm
xpath code
Instead of replacing the Raccoon ThingDef, which may cause compatibility issues with other mods, use the following xpath patch instead:

<?xml version="1.0" encoding="utf-8" ?> <Patch> <!-- xpath code by dninemfive --> <Operation Class="PatchOperationReplace"> <xpath>*/ThingDef[defName = "Raccoon"]/race/baseBodySize</xpath> <value> <baseBodySize>0.5</baseBodySize> </value> </Operation> <Operation Class="PatchOperationAdd"> <xpath>*/ThingDef[defName = "Raccoon"]/race</xpath> <value> <trainableIntelligence>Advanced</trainableIntelligence> </value> </Operation> </Patch>
< >
Showing 1-2 of 2 comments
lilwhitemouse 1 Oct, 2019 @ 9:23am 
It's faster to use /Defs/ThingDef[etcetcetc than */ThingDef[etc
dninemfive 1 Oct, 2019 @ 9:25am 
Yeah, I know that now, this was written a year and a half ago.
< >
Showing 1-2 of 2 comments
Per page: 1530 50