From a51f7a53aa2c487ebf94ba0363038574ae8bb590 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 7 Jul 2026 00:22:32 -0400 Subject: feat: hidden exits (and related flags) work with commands that change room ids. exit code simplified and unified between impassable and blocked exits. --- internal/game/cmd_aps.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/game/cmd_aps.go') diff --git a/internal/game/cmd_aps.go b/internal/game/cmd_aps.go index af26923..839455e 100644 --- a/internal/game/cmd_aps.go +++ b/internal/game/cmd_aps.go @@ -41,7 +41,7 @@ func (g *Game) executeAps(sess *net.Session, args []string, rawInput string) { return } - path := g.findPathToRoom(p, p.RoomID, targetID) + path := g.findPathToRoom(sess, p.RoomID, targetID) if path == nil { room, err := g.World.LoadRoom(targetID) roomName := fmt.Sprintf("#%d", targetID) @@ -112,7 +112,7 @@ func displayApsNodes(g *Game, sess *net.Session, p *player.Player, known []int) } dist := 0 if id != p.RoomID { - path := g.findPathToRoom(p, p.RoomID, id) + path := g.findPathToRoom(sess, p.RoomID, id) if path != nil { dist = len(path) } @@ -163,7 +163,7 @@ func resolveApsTarget(g *Game, sess *net.Session, p *player.Player, known []int, if id == p.RoomID { return id } - path := g.findPathToRoom(p, p.RoomID, id) + path := g.findPathToRoom(sess, p.RoomID, id) if path == nil { continue } -- cgit v1.2.3