Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?>
- <Patch>
- <Operation Class="PatchOperationFindMod">
- <mods>
- <li>VGP Garden Fabrics</li>
- <li>VGP Garden Fabrics Simplified</li>
- </mods>
- <!-- The Operation will check for either mod in this list and count as a match if it finds one of them (Or both, but they are internally incompatible so that shouldn't happen) -->
- <match Class="PatchOperationSequence">
- <operations>
- <!-- The Sequence is technically unecessary since it contains only one operation, but just in case you want more later tied to the above mod -->
- <li Class="PatchOperationReplace">
- <xpath>/Defs/ThingDef[defName="eltex_bodysuit"]/costList/Plasteel</xpath> <!-- selects the node to replace -->
- <value>
- <VG_PlasteelThread>100</VG_PlasteelThread>
- </value> <!-- If I wanted to change the Plasteel cost from 20 to 30 I would still have to select and replace the Plasteel-node and write <Plasteel>30</Plasteel> within the value -->
- </li>
- </operations>
- </match>
- </Operation>
- <Operation Class="PatchOperationFindMod">
- <mods>
- <li>Psy-Eltex</li>
- </mods>
- <!-- The PatchOperationFindMod looks for what the mod is called in the <name></name>-space under ModMetaData in About.xml -->
- <match Class="PatchOperationAdd">
- <!-- sequence operation can be skipped if there is only one operation -->
- <xpath>/Defs/ThingDef[defName="eltex_bodysuit"]/equippedStatOffsets</xpath> <!-- selects the node to Add something inside -->
- <value>
- <MeditationFocusGain>0.03</MeditationFocusGain> <!-- Shirt is 2%, Vest is 4%. Here I use the suggested 3% -->
- </value>
- </match>
- </Operation>
- <!-- The two PatchOperationFindMod operations can all be in the same .xml or in seperate files depending on how you would organize your mod structure -->
- </Patch>
Advertisement
Add Comment
Please, Sign In to add comment