diff options
| author | historia <[not public]> | 2026-10-03 00:51:41 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-03 00:51:41 -0400 |
| commit | 82e571d227feeafd0af4011e701ce26b99c5e3d9 (patch) | |
| tree | ab4d56ddf94c3bf3b42fff5dfc2ff9a339f09113 /internal/game/casino_house_edge.go | |
| parent | cac16d1725c46c82a2e62b84c93f7090b2ce0746 (diff) | |
| download | thehouseoficarus-82e571d227feeafd0af4011e701ce26b99c5e3d9.tar.gz | |
fix: craps felt and wager description cleanup
Diffstat (limited to 'internal/game/casino_house_edge.go')
| -rw-r--r-- | internal/game/casino_house_edge.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/game/casino_house_edge.go b/internal/game/casino_house_edge.go index 19d8cc2..1abbcac 100644 --- a/internal/game/casino_house_edge.go +++ b/internal/game/casino_house_edge.go @@ -78,8 +78,10 @@ func (g *Game) casinoListRows(sess *net.Session, t *casino.Table, wagers []casin entry := row if strings.Contains(wager.Bet, "<n>") { entry.bet = strings.ReplaceAll(wager.Bet, "<n>", part.Label) - } else { - entry.win = part.Label + "; " + entry.win + } else if part.Label != "" { + // The label refines the shared win text (hop's doubles), so append + // it: the base phrase stays "Next roll is a/b (doubles)". + entry.win = entry.win + " " + part.Label } entry.edge = casino.HouseEdge{Parts: []casino.EdgePart{part}} rows = append(rows, entry) |
