CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.27k stars 4.12k forks source link

Disinfection and bandaging not acting as it should #75736

Open lethallama opened 1 month ago

lethallama commented 1 month ago

Describe the bug

In the Consume screen, when I clicked on an alcohol wipe using my mouse, it just consumed it, cleaning a wound, I assume the most injured, and gave average disinfection. If I used the keyboard, it would go to the correct screen and let me choose which wound to treat, offering poor disinfection, and then gave me average anyway. The same happened with adhesive bandages, giving a poor bandaging, and when I go the the correct screen, it offers a very poor bandage. I have not yet bandaged more than one slot, so I can't say what it will give if I use keyboard.

Attach save file

Eternal Pool-trimmed.tar.gz

Steps to reproduce

With an injured character, who has healthcare 3 and wound care proficiency, open the Consume screen, and click on an alcohol wipe, or click on an adhesive bandage. Use the keyboard to go to the alcohol wipe or adhesive bandage, and check what it should have given. Check the Character screen to see what it gave?

Expected behavior

I expected clicking on the disinfectant/bandage to take me to the medical screen instead of just consuming it and using it on an injury without my input. I also expected it to give me treatment in line with my skills and not dramatically more.

Screenshots

No response

Versions and configuration

Additional context

No response

lethallama commented 1 month ago

After posting, I did verify that bandaging was giving poor benefit despite saying it would give very poor.

Void-Seeker commented 1 month ago

bandaging was giving poor benefit despite saying it would give very poor

I think final result is scaled with medicine skill and has some random factor in it. The state you see before applying is just estimation derived mostly from the base quality of the item.

lethallama commented 1 month ago

Every heal I've done with this update has been max rolled, I think. That doesn't sound right. And it's not the amount that it's saying I should expect when putting the bandages on.

l29ah commented 1 month ago

/confirmed The estimated healing efficacy is indeed off.

failboat78 commented 1 month ago

Maybe this has side effect of messing up npc logic as well: https://github.com/CleverRaven/Cataclysm-DDA/issues/75688

The npc tries to disinfect same wound over and over again.

sonphantrung commented 1 month ago

Prob the fact that the Wound Care proficiency buffing healing by 1 level (good -> very good, poor -> average, and so forth) which isn't calculated in the inv screen (just my guess)

sonphantrung commented 1 month ago

My char with 3 health care (No Wound Care): image With Wound Care: image

sonphantrung commented 1 month ago

I think I now know why the problem exists, after modifying the code so that it shows number: