[A17] Pawns can be ordered to rest/heal in a too-small bed

Started by Thirite, July 22, 2017, 02:52:32 AM

Previous topic - Next topic

Thirite

Ran into this while making the crib for children and pregnancy.

Building_Bed.GetFloatMenuOptions method does not use the RestUtility.CanUseBedEver method to ensure a pawn can actually use the bed before providing the float menu option to order them to rest in it.

The statement in question:
if (!this.<>f__this.ForPrisoners && this.<>f__this.Medical && this.myPawn.CanReserveAndReach (this.<>f__this, PathEndMode.ClosestTouch, Danger.Deadly, this.<>f__this.SleepingSlotsCount, -1, null, true)) {

Nictis

I'm pretty sure this should be mentioned to whoever made the mod which brings in children and cribs, from my understanding Base Rimworld doesn't have any of those features and I recall Tynan saying that they are not in the plans for future updates.

ison