feat: party action status display and sequential turn result replay

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 14:23:44 +09:00
parent 9221cfa7c6
commit 80c1988719
4 changed files with 95 additions and 23 deletions

View File

@@ -323,10 +323,16 @@ func (m Model) updateGame(msg tea.Msg) (tea.Model, tea.Cmd) {
switch msg.(type) {
case tickMsg:
// State already refreshed above, just keep polling during combat
if m.session != nil {
m.session.RevealNextLog()
}
// Keep polling during combat or while there are pending logs to reveal
if m.gameState.Phase == game.PhaseCombat {
return m, m.pollState()
}
if len(m.gameState.PendingLogs) > 0 {
return m, m.pollState()
}
return m, nil
}