Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
heatherathebyne opened this issue Nov 22, 2023 · 2 comments
Labels
bug This is a bug in a mod.

Comments

@heatherathebyne
Copy link

heatherathebyne commented Nov 22, 2023

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 heatherathebyne added the bug This is a bug in a mod. label Nov 22, 2023
@heatherathebyne heatherathebyne changed the title Hospitality: "Slept on ground" moodlet incorrectly applied after colonist exists hospital bed Hospitality: "Slept on ground" moodlet incorrectly applied after colonist exits hospital bed Nov 22, 2023
@OrionFive
Copy link
Owner

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 heatherathebyne changed the title Hospitality: "Slept on ground" moodlet incorrectly applied after colonist exits hospital bed Hospitality: "Slept on ground" moodlet incorrectly applied after colonist switches beds Dec 1, 2023
@heatherathebyne
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a bug in a mod.
Projects
Status: TODO
Development

No branches or pull requests

2 participants