You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out why this bug occurs.
When calling Character::get_pain_penalty in Character::disp_info, we are not calculating the displayed penalty with the stats before penalties applied, but with the numbers after the penalties applied.
So, with 50 pain and intelligence 4 (8), ppen.intelligence is not 8*50*0.01 = 4, but 4*50*0.01 = 2.
Also, despite the doc and comment saying // Also not make character has 0 stats, the stats of character can still get lower than 1, I'll fix this also.
You can see that, with 100 pain, you got intelligence 0 (8), and ppen.intelligence is now 0*100*0.01 = 0.
Describe the bug
In the character window (
@
), in the effects section (c
), the penalties to characteristics depending on pain are incorrectly specified.Most likely they just forgot about them when they introduced the changes #72687.
The gif shows the characteristics at 20, 30, and 60 pain.
Attach save file
N/A
Steps to reproduce
Create a character and set the pain value. Then compare the real characteristics with the specified penalties.
Expected behavior
N/A
Screenshots
Versions and configuration
cdda-windows-tiles-x64-2024-04-05-0445
Additional context
No response
The text was updated successfully, but these errors were encountered: