-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MoM] Pain limits ignore painkiller effects #72882
Comments
There is no such thing as "total pain vs pain you're currently feeling", it is the same thing. |
Then the UI is effectively lying to the player. The basic effect of the PR is you can't use power if pain is over 40. I so far had 3 separate occasions where the sidebar was telling me I had 0 to 10 (=minimal) pain, yet powers were inaccessible due to pain apparently >=40. Whatever the cause, it doesn't feel like that's what should be happening. Edit: Redid the steps to reproduce, it will put you at minimal pain, which should be between 10-20 pain yet the debug menu shows a pain of 46. As far as im concerned that is "total pain vs pain you're currently feeling". |
Hmm There's definitely something going on. I used u_pain() in the EoC to get the pain from the character, but in the screenshot, the character has Mild Pain (below the threshold, they should be fine to use their powers) but u_pain() is returning a value where they can't use their powers. Another odd thing: This is with the Spacebar UI. The pain says mild pain, as expected, but the separators are light red, which the code reads should only apply when So something is going on.
|
u_pain return pain_cur(), which is indeed return only get_pain(). What's the difference between two? |
On my phone, but in looking here: Cataclysm-DDA/src/creature.cpp Line 1983 in ef0aebc
apparently there’s no difference (get_perceived_pain() just calls get_pain() ). Hmm. Edit: Oh, it’s virtual. Found it (thank you limited GitHub web search). It’s actual pain - painkiller: Cataclysm-DDA/src/character.cpp Line 12492 in ef0aebc
Maybe I can replicate that, since EoCs can get the painkiller level too. |
i recommend you to make vanilla math function for this, and use it in MoM |
Describe the bug
The pain thresholds introduced by #72737 check against your total pain, not the pain you're currently feeling.
Attach save file
N/A
Steps to reproduce
Expected behavior
Check against pain the PC is actually experiencing.
Screenshots
No response
Versions and configuration
Dark Days Ahead [dda],
Mind Over Matter [mindovermatter]
]
Additional context
No response
The text was updated successfully, but these errors were encountered: