From 94a06fbbe682701ca4d4bd2a70cd74d8df29c932 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 25 Jun 2026 00:44:47 -0400 Subject: refactor: replaced map[string]any with typed structs for Data --- internal/game/cmd_score.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'internal/game/cmd_score.go') diff --git a/internal/game/cmd_score.go b/internal/game/cmd_score.go index 635c4b4..d4dd823 100644 --- a/internal/game/cmd_score.go +++ b/internal/game/cmd_score.go @@ -124,10 +124,8 @@ func (g *Game) doScore(sess *net.Session) { gap() actionDesc := "Idle" - if as, ok := p.ActionState.(*ActionState); ok && as != nil { - if d := as.Description(); d != "" { - actionDesc = d - } + if d := g.playerActionDisplay(p); d != "" { + actionDesc = d } content("Action: " + actionDesc) -- cgit v1.2.3