Barotrauma
Barotrauma copied to clipboard
Add beds as wandering targets depending on health
I've given the AI the ability to seek beds when idling, allowing them to heal during downtimes without being a constant drain on supplies for minor wounds, with the chance of choosing a bed increasing the more wounded they are every time a check passes.
To make it work, you'll need to add tags="bed" to the respective bunks and hospital beds in their XML files.
It essentially allows you to slowly heal NPCs at the cost of having to dissmiss them of any active duties like maintenance or operating machinery, which is a worthy tradeoff in my opinion as you trade away threat readiness for some weak, cost-free healing.