mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
Previous scheduler built one fixed roll-minute per player per UTC day in the 10:00-16:00 window, regardless of when (or whether) the player actually played. Players who acted late in the day might miss their roll entirely; players who acted early still had to wait for an arbitrary mid-day window. New scheduler: - Each ticker minute, scan for players who have acted today but don't yet have a scheduled roll. Assign each a one-shot roll-minute 60-180 minutes in the future (capped to 23:50 UTC). - At the assigned minute, fire the 0.5% trigger roll. Mark advEventRolled so it won't fire again that day. - New day rebuilds both maps fresh. Result: events trigger relative to the player's actual activity, not clock time. Late-day actors get their chance; players who skip a day don't get a roll. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 KiB
10 KiB