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/action.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'internal/game/action.go') diff --git a/internal/game/action.go b/internal/game/action.go index 3146f1a..19e79cf 100644 --- a/internal/game/action.go +++ b/internal/game/action.go @@ -184,14 +184,12 @@ func (g *Game) startAction(sess *net.Session, verb, target string) { func (g *Game) cancelAction(p *player.Player) { p.Action = nil - p.ActionState = nil p.WalkSequence = nil p.ClearMoveState() } func (g *Game) cancelBgAction(p *player.Player) { p.BackgroundAction = nil - p.BackgroundActionState = nil } func (g *Game) AdvanceActions() { @@ -234,7 +232,7 @@ func (g *Game) AdvanceActions() { case "obstacle": g.advanceObstacle(sess, p) default: - if productionActionTypes[p.Action.Type] { + if productionActionTypes[string(p.Action.Type)] { g.advanceProduction(sess, p) } } -- cgit v1.2.3