impoveDefenses: Upgrade vs Add #144
Bluntaxe
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was setting up some skills and effect using ProjectFUTextCommands
I needed an effect that increased Magic Defense by 1. When you add an effect directly to a character you can select to change the mode from Add/Upgrade/Downgrade etc.
However in the Guided Effect Creation selecting Improve Defenses
it doesn't give you those options; it just says 'Improve to". Putting in '1' I noticed when I applied the effect to a character it no longer showed a value for the magic defense.
Digging through the code - I changed in the file inline-effects.mjs
under improveDefenses
I changed
mode: CONST.ACTIVE_EFFECT_MODES.UPGRADE
to
mode: CONST.ACTIVE_EFFECT_MODES.ADD
this seems to make the effect work the way I need. I'm not sure if this will mess something else up elsewhere.
Beta Was this translation helpful? Give feedback.
All reactions