aboutsummaryrefslogtreecommitdiff
path: root/internal/game/render_casino_settlement.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-03 00:51:41 -0400
committerhistoria <[not public]>2026-10-03 00:51:41 -0400
commit82e571d227feeafd0af4011e701ce26b99c5e3d9 (patch)
treeab4d56ddf94c3bf3b42fff5dfc2ff9a339f09113 /internal/game/render_casino_settlement.go
parentcac16d1725c46c82a2e62b84c93f7090b2ce0746 (diff)
downloadthehouseoficarus-82e571d227feeafd0af4011e701ce26b99c5e3d9.tar.gz
fix: craps felt and wager description cleanup
Diffstat (limited to 'internal/game/render_casino_settlement.go')
-rw-r--r--internal/game/render_casino_settlement.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/game/render_casino_settlement.go b/internal/game/render_casino_settlement.go
index bfe101c..2b5acc9 100644
--- a/internal/game/render_casino_settlement.go
+++ b/internal/game/render_casino_settlement.go
@@ -149,6 +149,12 @@ func renderCasinoSettlement(lines []casino.SettlementLine, unicode bool, paint f
}
}
}
+ if settled == 0 {
+ // Nothing settled yet: the whole totals footer is noise, so end the
+ // receipt at the wager rows with the flat bottom border.
+ out = append(out, paint("dim", bl+strings.Repeat(h, inner)+br))
+ return strings.Join(out, "\n")
+ }
out = append(out, border(lj, bj, rj))
footer := func(text, tag string) {
out = append(out, paint("dim", v)+" "+paint(tag, pad(text, inner-2, false))+" "+paint("dim", v))