mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
resolveArenaRound now branches on arenaBossFlowEnabled(): when set, the round runs through resolveArenaBoss (zone-boss combat + staged narration) and the resulting intro/phases/outcome are threaded into resolveArenaSurvival and resolveArenaDeath via a new arenaBossNarration carrier. Both handlers swap their RenderCombatLogArena + dnd opening/closing/roll-summary stack for the pre-rendered boss-flow narration; arena economic glue (rewards, tier-clear, helmet drops, hospital ad) is preserved untouched. A new sendArenaCombatMessages helper picks 2–3s zone pacing under boss flow and 5–8s arena pacing under the legacy path. bossFlowPhaseMessages prepends the intro line ahead of phases, mirroring streamOrSend's intro+phases pattern from dnd_zone_cmd.go. Tests: TestArenaBossFlowEnabled covers the env-gate parsing; TestBossFlowPhaseMessages asserts the staged-narration assembly. Full suite green with the flag both off (default, legacy path) and on. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>