[MoM] Can't think, head hurts too much #72737
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 "Too much pain shuts down your powers"
Purpose of change
I think the change I made to the success formula for psi was good, but it does lead to being able to use them in basically any situation, even ones that are a little hard to believe. Like if you have multiple broken limbs or if you're bleeding profusely from numerous wounds. Plus, this game is all about the death spiral and making sure to avoid situations where it could happen to you.
Describe the solution
Add an
opens_spellbook
event EoC that checks your pain and, if it's 40 or above, hits you with a instant-duration effect with the NO_PSIONICS flag, preventing you from using your powers. This isDistracting pain
or higher.That's pretty low, but it represents someone who's completely unused to concentrating under adverse circumstances. Therefore, the concentration proficiencies and relevant traits all raise this limit: the Improved Concentration and Prime Intelligence traits increase this limit by 15 (and Easily Distracted lowers it by 15), as does Basic Concentration. Expert Concentration increases it by an additional 30, and Master Concentration increases it by an additional 45, totaling 130 (+30 if you have both traits), well into Severe Pain territory before the pain disables your powers. The various pain-related mutations are not accounted for here because they already modify the amount of pain you receive and how fast you recover from pain.
Maintaining concentration on existing powers already has a system for dealing with pain (pain reduces intelligence, which reduces your concentration threshold), so it has not been touched.
Finally, I reduced the pain causes by psionic overload due to this (it was higher than necessary and a single instance would have turned off your powers), and I also realized that while it had a vomit_chance it did not have a vomit_tick, so it was checking for vomiting every second. I added
"vomit_tick": [ 200 ]
, so it will now cause you to vomit 99.5% less than previously.Describe alternatives you've considered
Testing
Everything works. Powers are disabled properly due to pain, proficiencies increase the pain limit, and the effect that disables powers only lasts a single round and can't be stacked by repeatedly opening and closing the spellbook.
Additional context
This doesn't affect your ability to cast spells, for extra inter-mod compatibility. That's why I PRed the NO_PSIONICS flag in the first place.
Though maybe I should change that message to say "You can't channel any of the powers you know!" when it's NO_PSIONICS disabling your powers.