aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_look.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 00:44:47 -0400
committerhistoria <[not public]>2026-06-25 00:44:47 -0400
commit94a06fbbe682701ca4d4bd2a70cd74d8df29c932 (patch)
treeeb49fb1893e61092138164d419e863ee3fe0d1e2 /internal/game/cmd_look.go
parent15b7e221b799ef107dec44ecdb294026dfd3d059 (diff)
downloadthehouseoficarus-94a06fbbe682701ca4d4bd2a70cd74d8df29c932.tar.gz
refactor: replaced map[string]any with typed structs for Data
Diffstat (limited to 'internal/game/cmd_look.go')
-rw-r--r--internal/game/cmd_look.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/game/cmd_look.go b/internal/game/cmd_look.go
index 266cd15..3f31a15 100644
--- a/internal/game/cmd_look.go
+++ b/internal/game/cmd_look.go
@@ -479,10 +479,8 @@ func (g *Game) showRoomPlayers(sess *net.Session, p *player.Player, room *world.
}
line += fmt.Sprintf(" (fighting %s)", name)
}
- } else if as, ok := op.ActionState.(*ActionState); ok && as != nil {
- if desc := as.Description(); desc != "" {
- line += ", " + desc
- }
+ } else if desc := g.playerActionDisplay(op); desc != "" {
+ line += ", " + desc
}
sess.WriteLine(line + ".")
}