• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

how to change DamageModifier to meleeToolStoneAxe?

darchon

Refugee
this used to work in A17:

Code:
<set xpath="/items/item[@name='meleeToolStoneAxe']/effect_group/passive_effect[@name='DamageModifier' and @tags='wood']/@value">50</set>
but doesnt anymore in A18. anyone have any ideas how to make this work?

 
meleeToolStoneAxe doesn't have a 'wood' DamageModifier anymore so the xpath doesn't find anything to change.

You could add one though:

Code:
<configs>
   <append xpath="/items/item[@name='meleeToolStoneAxe']/effect_group">
       <passive_effect name="DamageModifier" operation="perc_add" value="50" tags="wood"/>
   </append>
</configs>
Note that operation 'perc_add' with a value of 50 is a 5000% increase, which may be excessive.

 
Back
Top