diff options
| author | historia <[not public]> | 2026-06-11 20:41:06 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-11 20:41:06 -0400 |
| commit | d6ab0e93a64525ce34f89e26d5272efbac513c32 (patch) | |
| tree | d0ec59a72a32a15d0917d9c6c3bfa2f2a424c1f1 /internal/game/cmd_move.go | |
| parent | 6b2b4bf470b655f01c5a21c5f558a6102402c214 (diff) | |
| download | thehouseoficarus-d6ab0e93a64525ce34f89e26d5272efbac513c32.tar.gz | |
feat: big map and options changes
Diffstat (limited to 'internal/game/cmd_move.go')
| -rw-r--r-- | internal/game/cmd_move.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/game/cmd_move.go b/internal/game/cmd_move.go index 79ca45e..d62701d 100644 --- a/internal/game/cmd_move.go +++ b/internal/game/cmd_move.go @@ -79,7 +79,7 @@ func (g *Game) doMove(sess *net.Session, dir string) { } sess.WriteLine(fmt.Sprintf("\nYou walk %s.", exitDir)) - if p.Toggles["description"] { + if p.OptionBool("description") { g.doLook(sess) } else { targetRoom, _ := g.World.LoadRoom(targetID) @@ -88,6 +88,10 @@ func (g *Game) doMove(sess *net.Session, dir string) { } } + if p.OptionBool("automap") { + g.doMap(sess) + } + g.RunEnterSteps(sess, targetID) } |
