OrionFive / Hospitality

Orion's "Hospitality" and more
https://www.patreon.com/orionmods
GNU General Public License v3.0
91 stars 54 forks source link

Allow guests to sleep in beds with multiple spots #743

Closed Taranchuk closed 1 year ago

Taranchuk commented 1 year ago

This PR will allow married guests to sleep together. Also needed for an upcoming mod adding bunk beds to allow guests to sleep in bunk beds.

OrionFive commented 1 year ago

This PR broke guest behavior. Multiple guests now claim the same bed but then both not sleep in it.

I'm gonna roll it back tomorrow, unless you want to fix it.

Taranchuk commented 1 year ago

Does it break with single or double beds?

Taranchuk commented 1 year ago

I think I'm seeing what's the issue. Pawns are claiming beds after approaching them but not when finding jobs. This makes it so multiple pawns can get multiple jobs with the same bed. I'm looking if there is a way to let pawns know that the bed is being claimed by other pawn.

Taranchuk commented 1 year ago

Okay so in vanilla pawns are claiming beds before going to beds. In the mod pawns are claiming beds after going to them. So we just need to change the order.

Taranchuk commented 1 year ago

https://github.com/OrionFive/Hospitality/pull/744 This PR should solve the issue.