aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_move.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_move.go
parent15b7e221b799ef107dec44ecdb294026dfd3d059 (diff)
downloadthehouseoficarus-94a06fbbe682701ca4d4bd2a70cd74d8df29c932.tar.gz
refactor: replaced map[string]any with typed structs for Data
Diffstat (limited to 'internal/game/cmd_move.go')
-rw-r--r--internal/game/cmd_move.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/game/cmd_move.go b/internal/game/cmd_move.go
index b749e84..2939702 100644
--- a/internal/game/cmd_move.go
+++ b/internal/game/cmd_move.go
@@ -86,7 +86,6 @@ func (g *Game) doMove(sess *net.Session, dir string, multiplier float64) {
}
p.MoveTicks = ticks
- p.ActionState = &ActionState{Type: ActionMoving, Direction: string(exitDir)}
if inCombat && p.OptionBool("run_countdown") {
if p.MoveTicks > 1 {
@@ -178,7 +177,6 @@ func (g *Game) completeMove(sess *net.Session, p *player.Player) {
}
sess.WriteLine(fmt.Sprintf("You walk %s.", g.colorize(sess, "direction", exitDir)))
- p.ActionState = &ActionState{Type: ActionMoving, Direction: exitDir}
if p.OptionBool("description") {
g.doLook(sess)
} else {