• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Changing Turret active range in progression

shakikoko

Refugee
Hi, I have this code here that I sort of copied from my other own mod. It did not work when i load my world.

I just wanted to change the active range from 10,14,15,16,17,18

Code:
<configs>
<set xpath="/progression/progression/perks/perk[@name='perkTurrets']/effect_group[@name='General and deployed turrets']/passive_effect[@name='JunkTurretActiveRange'][@operation='base_set'][@level='0,1,2,3,4,5']/@value">10,15,20,25,30,40</set>
</configs>
 
You don't need all that many conditions on it, try this and see if it works:

Code:
<configs>
<set xpath="/progression/perks/perk[@name='perkTurrets']/effect_group/passive_effect[@name='JunkTurretActiveRange']/@value">10,15,20,25,30,40</set>
</configs>
Things like targeting the specific effect group aren't necessary because there's only one JunkTurretActiveRange passive_effect.

 
Back
Top