diff options
| author | historia <[not public]> | 2026-10-02 14:43:26 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-02 14:43:26 -0400 |
| commit | 4f40f116ba884111c9a66849e620ff9fbc67530a (patch) | |
| tree | af407f199be482f9aac997d2cfaa0d86a806d8ff /internal/game/look_room.go | |
| parent | 62017c86392b046d746fb4fafef6742840477c5f (diff) | |
| download | thehouseoficarus-4f40f116ba884111c9a66849e620ff9fbc67530a.tar.gz | |
feat: compact craps layout, ux cleanup
Diffstat (limited to 'internal/game/look_room.go')
| -rw-r--r-- | internal/game/look_room.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/game/look_room.go b/internal/game/look_room.go index 3208f40..a09d66d 100644 --- a/internal/game/look_room.go +++ b/internal/game/look_room.go @@ -134,11 +134,13 @@ func (g *Game) formatExitLines(sess *net.Session, room *world.Room) []string { return out } -func (g *Game) showRoomExits(sess *net.Session, p *player.Player, room *world.Room) { +func (g *Game) showRoomExits(sess *net.Session, p *player.Player, room *world.Room, gap bool) { if len(room.Exits) == 0 { return } - sess.WriteLine("") + if gap { + sess.WriteLine("") + } if p.OptionBool("exits") { lines := g.formatExitLines(sess, room) if len(lines) > 0 { |
