aboutsummaryrefslogtreecommitdiff
path: root/internal/game/look_room.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-02 14:43:26 -0400
committerhistoria <[not public]>2026-10-02 14:43:26 -0400
commit4f40f116ba884111c9a66849e620ff9fbc67530a (patch)
treeaf407f199be482f9aac997d2cfaa0d86a806d8ff /internal/game/look_room.go
parent62017c86392b046d746fb4fafef6742840477c5f (diff)
downloadthehouseoficarus-4f40f116ba884111c9a66849e620ff9fbc67530a.tar.gz
feat: compact craps layout, ux cleanup
Diffstat (limited to 'internal/game/look_room.go')
-rw-r--r--internal/game/look_room.go6
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 {