sumghai / MedPod

Advanced regenerative medical beds for RimWorld
Other
14 stars 15 forks source link

Patients starving and/or not gaining rest during long treatment sessions on MedPods #35

Closed sumghai closed 3 years ago

sumghai commented 3 years ago

A couple of Steam users have complained that the MedPod causes patients to not gain rest, as well as eventually starving to death as the MedPod (by design) prevents doctors from feeding patients.

Rest need

I initially designed the MedPod to not provide BedRestEffectiveness or Comfort because patients typically don't spend a lot of time on them compared with regular medical beds.

Fixing this might be as easy as adding these stats back in, or it may be a bit more difficult (as my Harmony patch for Toils_LayDown.LayDown() may have detoured the original method in a way that makes gaining rest impossible).

Food need

I explored a few different options in the Steam workshop comments, and the least disruptive approach seems to be to take a page out of the Medical IV mod's playbook:

sumghai commented 3 years ago

As it turned out, I did, in fact, already defined BedRestEffectiveness and Comfort stats for both MedPod variants, but my Harmony code (as I suspected) detoured the toil in a way that causes pawns to never gain rest - so I've manually added that back in.

sumghai commented 3 years ago

(Accidentally pushed to an obsolete branch. Redoing commit)

sumghai commented 3 years ago

Pawns should now no longer starve while having lengthy treatments on MedPods.