[MoM] Psi passives turn off if you can't use psionics #78447
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Mods "[MoM] Psi passives turn off if you can't use psionics"
Purpose of change
It only makes sense.
Describe the solution
Add
"condition": { "not": { "u_has_flag": "NO_PSIONICS" } }
to all the psi passives. This can lead to some problems if you're not careful--for example, your electric armor from electrokinesis turns off if you're near a null now, or if you’re stunned.I was not able to do this yet with Photokinesis, since
integrated_armor
doesn't take conditions and since adding mutations through an enchantment is bugged. Once that bug is fixed, I can make the actual fake glasses that provide the effects a secondary mutation that's removed if you have the flag.Describe alternatives you've considered
Testing
Went in as a Clairsentient and spawned some nether monsters. Spawned a null nearby, passive nether vision turned off.
Additional context