Hospitality icon indicating copy to clipboard operation
Hospitality copied to clipboard

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

Open heatherathebyne opened this issue 2 years ago • 2 comments

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.

heatherathebyne avatar Nov 22 '23 01:11 heatherathebyne

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.

OrionFive avatar Nov 23 '23 10:11 OrionFive

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

heatherathebyne avatar Dec 01 '23 03:12 heatherathebyne