Guest User

EltexJumpsuit_PatchSuggestion

a guest
Jul 3rd, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.81 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <Patch>
  3.  
  4.     <Operation Class="PatchOperationFindMod">
  5.         <mods>
  6.             <li>VGP Garden Fabrics</li>
  7.             <li>VGP Garden Fabrics Simplified</li>
  8.         </mods>
  9.         <!-- 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) -->
  10.    
  11.         <match Class="PatchOperationSequence">
  12.             <operations>
  13.             <!-- The Sequence is technically unecessary since it contains only one operation, but just in case you want more later tied to the above mod -->
  14.                 <li Class="PatchOperationReplace">
  15.                     <xpath>/Defs/ThingDef[defName="eltex_bodysuit"]/costList/Plasteel</xpath> <!-- selects the node to replace -->
  16.                     <value>
  17.                         <VG_PlasteelThread>100</VG_PlasteelThread>
  18.                     </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 -->
  19.                 </li>
  20.             </operations>
  21.         </match>   
  22.     </Operation>
  23.    
  24.     <Operation Class="PatchOperationFindMod">
  25.         <mods>
  26.             <li>Psy-Eltex</li>
  27.         </mods>
  28.         <!-- The PatchOperationFindMod looks for what the mod is called in the <name></name>-space under ModMetaData in About.xml -->
  29.    
  30.         <match Class="PatchOperationAdd">
  31.         <!-- sequence operation can be skipped if there is only one operation -->
  32.             <xpath>/Defs/ThingDef[defName="eltex_bodysuit"]/equippedStatOffsets</xpath> <!-- selects the node to Add something inside -->
  33.             <value>
  34.                 <MeditationFocusGain>0.03</MeditationFocusGain> <!-- Shirt is 2%, Vest is 4%. Here I use the suggested 3% -->
  35.             </value>   
  36.         </match>   
  37.     </Operation>
  38.    
  39.     <!-- The two PatchOperationFindMod operations can all be in the same .xml or in seperate files depending on how you would organize your mod structure -->
  40.  
  41. </Patch>
Advertisement
Add Comment
Please, Sign In to add comment