Skip to content

Fix character activity schedule to respect the assigned work building… - #741

Merged
gaidheal1 merged 1 commit into
developmentfrom
fix/inn-worker-relaxing-activity
Aug 9, 2026
Merged

Fix character activity schedule to respect the assigned work building…#741
gaidheal1 merged 1 commit into
developmentfrom
fix/inn-worker-relaxing-activity

Conversation

@gaidheal1

Copy link
Copy Markdown
Member

…'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.

@gaidheal1
gaidheal1 force-pushed the fix/inn-worker-relaxing-activity branch from 39c129a to c83d995 Compare August 9, 2026 22:39
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
gaidheal1 force-pushed the fix/inn-worker-relaxing-activity branch from c83d995 to e12199f Compare August 9, 2026 22:39
@gaidheal1
gaidheal1 merged commit 1af244b into development Aug 9, 2026
2 checks passed
@gaidheal1
gaidheal1 deleted the fix/inn-worker-relaxing-activity branch August 9, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant