diff options
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) |
