diff options
| author | historia <[not public]> | 2026-10-01 04:45:05 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 04:45:05 -0400 |
| commit | 299b5b67aa80ba2539d7a91c60943060b0426b45 (patch) | |
| tree | 9b2ddf8dac25c24eec74766330345b80e7ab5311 /internal/game/casino.go | |
| parent | 0ba388bbe229dd1ccfcb0831d21a5542ae0935f1 (diff) | |
| download | thehouseoficarus-299b5b67aa80ba2539d7a91c60943060b0426b45.tar.gz | |
fix: light mode casino card rendering, video poker machine names
Diffstat (limited to 'internal/game/casino.go')
| -rw-r--r-- | internal/game/casino.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/game/casino.go b/internal/game/casino.go index 8d6e2a5..d433f2a 100644 --- a/internal/game/casino.go +++ b/internal/game/casino.go @@ -919,6 +919,14 @@ func cardArtLines(card casino.CardView, size int, unicode bool, style string, ar } key := card.Rank + strings.ToUpper(card.Suit[:1]) if configured := art.Art(key, size); len(configured) == size { + if unicode && style == "light" { + // The shared pip art draws a dark box frame, which leaves the top + // and bottom rows looking like the dark style. Replace only those + // two rows with the half-block edges the white body meets. + configured = append([]string(nil), configured...) + configured[0] = strings.Repeat("▄", utf8.RuneCountInString(configured[0])) + configured[size-1] = strings.Repeat("▀", utf8.RuneCountInString(configured[size-1])) + } return configured } return generatedCardArt(card.Rank, card.Suit, size, unicode, style) |
