Fix character activity schedule to respect the assigned work building… - #741
Merged
Merged
Conversation
gaidheal1
force-pushed
the
fix/inn-worker-relaxing-activity
branch
from
August 9, 2026 22:39
39c129a to
c83d995
Compare
Base automatically changed from
feat/map-selection-highlight-polish
to
development
August 9, 2026 22:39
…'s hours generate_day hardcoded a fixed 8:00-17:00 work window regardless of the character's actual work building, while movement (target_role_for) already read the building's real open_time/close_time. For a late-closing building like the inn (06:00-23:00), this meant a worker was still physically at the inn well into the evening but their scheduled activity had already fallen through to the fixed leisure block, showing "Relaxing" instead of a work activity. Extracted the building-hours lookup into a shared work_hours_for helper and use it to size the work blocks (and push dinner/leisure/wind-down after work actually ends) in generate_day too. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
gaidheal1
force-pushed
the
fix/inn-worker-relaxing-activity
branch
from
August 9, 2026 22:39
c83d995 to
e12199f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…'s hours
generate_day hardcoded a fixed 8:00-17:00 work window regardless of the character's actual work building, while movement (target_role_for) already read the building's real open_time/close_time. For a late-closing building like the inn (06:00-23:00), this meant a worker was still physically at the inn well into the evening but their scheduled activity had already fallen through to the fixed leisure block, showing "Relaxing" instead of a work activity. Extracted the building-hours lookup into a shared work_hours_for helper and use it to size the work blocks (and push dinner/leisure/wind-down after work actually ends) in generate_day too.