Skip to content

Commit

Permalink
Fix xpaths for PatchOperationAdd operations
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeBuffalo committed Apr 30, 2022
1 parent a91ab31 commit f07b192
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
27 changes: 18 additions & 9 deletions 1.3/Patches/VAE_Core_Patch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,42 @@
<!-- add some move speed maluses -->

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VAE_Apparel_AdvancedVest"]/equippedStatOffsets</xpath>
<xpath>/Defs/ThingDef[defName="VAE_Apparel_AdvancedVest"]</xpath>
<value>
<MoveSpeed>-0.12</MoveSpeed>
<equippedStatOffsets>
<MoveSpeed>-0.12</MoveSpeed>
</equippedStatOffsets>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VAE_Apparel_LightPlateArmor"]/equippedStatOffsets/MoveSpeed</xpath>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VAE_Apparel_LightPlateArmor"]</xpath>
<value>
<MoveSpeed>-0.4</MoveSpeed>
<equippedStatOffsets>
<MoveSpeed>-0.4</MoveSpeed>
</equippedStatOffsets>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VAE_Apparel_PlateShoulderpads"]/equippedStatOffsets</xpath>
<xpath>/Defs/ThingDef[defName="VAE_Apparel_PlateShoulderpads"]</xpath>
<value>
<MoveSpeed>-0.05</MoveSpeed>
<equippedStatOffsets>
<MoveSpeed>-0.05</MoveSpeed>
</equippedStatOffsets>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VAE_Apparel_WoodenArmor"]/equippedStatOffsets</xpath>
<xpath>/Defs/ThingDef[defName="VAE_Apparel_WoodenArmor"]</xpath>
<value>
<MoveSpeed>-0.20</MoveSpeed>
<equippedStatOffsets>
<MoveSpeed>-0.20</MoveSpeed>
</equippedStatOffsets>
</value>
</li>


</operations>
</match>
</Operation>
Expand Down
8 changes: 5 additions & 3 deletions 1.3/Patches/VFE_Vikings_Patch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VFEV_Apparel_RavagerArmor"]/equippedStatOffsets</xpath>
<xpath>/Defs/ThingDef[defName="VFEV_Apparel_RavagerArmor"]</xpath>
<value>
<MoveSpeed>-0.10</MoveSpeed>
<equippedStatOffsets>
<MoveSpeed>-0.10</MoveSpeed>
</equippedStatOffsets>
</value>
</li>

<li Class="PatchOperationAdd">
<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="VFEV_Apparel_LeatherHelmet"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>0.35</StuffEffectMultiplierArmor>
Expand Down

0 comments on commit f07b192

Please sign in to comment.