-
Notifications
You must be signed in to change notification settings - Fork 9
SHORTTUTORIAL: DefPatches
Roxx Ploxx edited this page Jun 1, 2017
·
4 revisions
Zhentar's tutorial on DefPatches - Zhentar did a wonderful job on a tutorial.
There are a few additional things to be said:
- On else if - need a link about this
-
Selecting both
Defs
andThingDefs
- Sometimes, your xpaths will have to modify both of these root elements. You can create an xpath that checks both of these (need someone to validate this works):
*[self::Def or self::ThingDef]/foo/bar
-
On double vs single slashes - Careful about your slash use as it greatly impacts performance
- XPath Syntax - for quick reference