aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_walk.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-19 18:20:26 -0400
committerhistoria <[not public]>2026-06-19 18:20:26 -0400
commit0ea4eec5dd2122c6704216971eb1249276297867 (patch)
tree430fbbef04e837820f1d031c190f52ecd6112e25 /internal/game/cmd_walk.go
parent3a58125d14bb307f861b38c6c5b0a63babde7e08 (diff)
downloadthehouseoficarus-0ea4eec5dd2122c6704216971eb1249276297867.tar.gz
shop fixes, 'toggle' completely removed, movement speed increased
Diffstat (limited to 'internal/game/cmd_walk.go')
-rw-r--r--internal/game/cmd_walk.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_walk.go b/internal/game/cmd_walk.go
index 2104782..eca608f 100644
--- a/internal/game/cmd_walk.go
+++ b/internal/game/cmd_walk.go
@@ -11,7 +11,7 @@ import (
)
func (g *Game) doWalk(sess *net.Session, args []string) {
- p := sess.Player.(*player.Player)
+ p := sess.Player
if len(args) == 0 {
sess.WriteLine("Walk where?")
return
@@ -87,7 +87,7 @@ func (g *Game) startWalk(sess *net.Session, p *player.Player, dirs []string) {
return
}
- g.CancelAction(p)
+ g.cancelAction(p)
p.WalkSequence = dirs
}
@@ -104,7 +104,7 @@ func (g *Game) advanceWalk(sess *net.Session, p *player.Player) {
p.WalkSequence = p.WalkSequence[1:]
oldRoom := p.RoomID
- g.doMove(sess, dir)
+ g.doMove(sess, dir, 2.0)
if p.MoveTicks == 0 && p.RoomID == oldRoom {
p.WalkSequence = nil