aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_walk.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-17 02:27:20 -0400
committerhistoria <[not public]>2026-06-17 02:27:20 -0400
commit731adf2e0fbcac9a32179da077299ed6465af41e (patch)
tree29d368917f258350d426f2680bec59feeb464eaf /internal/game/cmd_walk.go
parent389e307f205f9b7edf604fb9f86e1038ead736ef (diff)
downloadthehouseoficarus-731adf2e0fbcac9a32179da077299ed6465af41e.tar.gz
feat: movement overhauled. agility-enhancing items added.
Diffstat (limited to 'internal/game/cmd_walk.go')
-rw-r--r--internal/game/cmd_walk.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/game/cmd_walk.go b/internal/game/cmd_walk.go
index 4ff6187..2104782 100644
--- a/internal/game/cmd_walk.go
+++ b/internal/game/cmd_walk.go
@@ -92,18 +92,21 @@ func (g *Game) startWalk(sess *net.Session, p *player.Player, dirs []string) {
}
func (g *Game) advanceWalk(sess *net.Session, p *player.Player) {
+ if p.MoveTicks > 0 {
+ return
+ }
if len(p.WalkSequence) == 0 {
return
}
dir := p.WalkSequence[0]
- oldRoom := p.RoomID
remaining := condensePath(p.WalkSequence[1:])
p.WalkSequence = p.WalkSequence[1:]
+ oldRoom := p.RoomID
g.doMove(sess, dir)
- if p.RoomID == oldRoom {
+ if p.MoveTicks == 0 && p.RoomID == oldRoom {
p.WalkSequence = nil
p.ActionState = nil
return