CleverRaven / Cataclysm-DDA

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

NPC doctor logic wastes resources disinfecting same wound repeatedly #75688

Open failboat78 opened 1 month ago

failboat78 commented 1 month ago

Describe the bug

In the save attached the npc companion has 10 medical skill - and does a great job with bandages. But not so much when disinfecting wounds.

The npc will repeatedly attempt to disinfect the same wound - blowing through a stack of alcohol wipes or antiseptic to achieve minimal result.

I suspect that even if the player has a little scratch the npc will immediately blow their entire inventory of materials trying to disinfect!

Attach save file

Coachella-trimmed.tar.gz

Steps to reproduce

Look at current status of players wounds. Trade npc some items that can disinfect Watch as npc takes action Look at status of players wounds after npc has taken multiple actions

Expected behavior

Expect npc to apply disinfectant to each of the players wounds - not just the same one over and over Expect npc to not waste disinfectant on a wound if it won't improve the outcome

Screenshots

No response

Versions and configuration

Additional context

No response

failboat78 commented 4 weeks ago

Also I notice the npc will bandage the players wounds - but not their own.

The save here is good scenario for testing this npc logic.