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

NPCs no longer use vehicle beds #27507

Open
jeremyshannon opened this Issue Jan 8, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@jeremyshannon
Copy link
Contributor

jeremyshannon commented Jan 8, 2019

Describe the bug
Prior to commit 3e0e699 (Sleep deprivation added as a mod) npcs would claim nearby beds to sleep in, but afterwards they will just stay in whatever vehicle seat they're in.

To Reproduce
Get a friendly NPC and an RV.
Assign him to the seat in the back, and set his fatigue to 200.
Prior to the commit, he'll move to the bed, afterwards he won't.

Expected behavior
NPCs ought to prefer a bed to a car seat when one's available. I know I would.

Versions and configuration(please complete the following information):
Debian 9 64 bit, using tiles or ascii
Doesn't seem to matter what mods are loaded. Notably, the Sleep Deprivation mod is NOT loaded.

@AskaHope

This comment has been minimized.

Copy link

AskaHope commented Jan 9, 2019

Reclining seats counts as beds, so most NPCs won't even bother moving.

@jeremyshannon

This comment has been minimized.

Copy link
Contributor

jeremyshannon commented Jan 9, 2019

This happens with non-reclining seats, though, and the behavior was changed by the merging of the sleep deprivation mod, so I figure it's an unintentional change.
I'm guessing the new "comfort level" code is making them decide their car seat is good enough. In testing this my NPC wouldn't move a single square to get to a proper bed from a non-reclining seat, though, so it looks like they just won't move anymore.

On the plus side, this prevents one major trigger for #21811, so yay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment