OrionFive / Hospitality

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

Hospitality: "Slept on ground" moodlet incorrectly applied after colonist switches beds #776

Open heatherathebyne opened 9 months ago

heatherathebyne commented 9 months ago

Describe the bug "Slept on ground" moodlet incorrectly applied after colonist switches bed, and after enough time in bed has passed to gain "slept outside" moodlet.

To Reproduce Steps to reproduce the behavior:

  1. Ensure mod list consists of Harmony, Core, HugsLib, and Hospitality.
  2. Launch game, dev quicktest. Enable god mode.
  3. Place two regular beds outside.
  4. Pause. Choose a non-ascetic pawn. Dev tool drop pawn's sleep bar to 0. Assign one of the two beds to the chosen pawn.
  5. Unpause and let your chosen pawn go to bed. Wait until the "slept outside" moodlet is gained by the pawn.
  6. Assign the pawn to the other bed. The pawn will move to the other bed (if sleepy enough) and gain the "slept on ground" moodlet.

Console log No relevant console logs. Only Hospitality-related log is [HugsLib] initializing Hospitality.

Error stacktrace No errors are thrown.

IIRC, this might have started popping up in 1.4; it's been going on for a while but I only now tracked it down.

OrionFive commented 9 months ago

Thanks for figuring this out and making it reproducible. I don't think I'll get around any time soon to look into it, but maybe someone else can pick it up some time.

heatherathebyne commented 9 months ago

Thanks for responding! I have updated this with simpler repro steps for whomever picks it up.