diff options
| author | historia <[not public]> | 2026-10-02 17:51:46 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-02 17:51:46 -0400 |
| commit | cac16d1725c46c82a2e62b84c93f7090b2ce0746 (patch) | |
| tree | e54f6624bdeb47421587656757ef3ce4fd7ebb3f /internal/game/casino_ux.go | |
| parent | 4f40f116ba884111c9a66849e620ff9fbc67530a (diff) | |
| download | thehouseoficarus-cac16d1725c46c82a2e62b84c93f7090b2ce0746.tar.gz | |
feat: craps table color improvements, die improvements
Diffstat (limited to 'internal/game/casino_ux.go')
| -rw-r--r-- | internal/game/casino_ux.go | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/internal/game/casino_ux.go b/internal/game/casino_ux.go index d65cfb9..2650d47 100644 --- a/internal/game/casino_ux.go +++ b/internal/game/casino_ux.go @@ -260,16 +260,10 @@ func (g *Game) seesCasinoDetails(sess *net.Session, event casino.Event) bool { var casinoTicksPattern = regexp.MustCompile(`([0-9]+) ticks`) -// Casino logic counts engine ticks; present deadlines in actual configured seconds. +// Casino logic counts engine ticks; deadlines are presented in ticks too, so +// the configured tick cadence never rewrites a deadline the player can count. func (g *Game) casinoTimeText(text string) string { - ms := 600 - if g.Ticks != nil { - ms = g.Ticks.TickLengthMilliseconds() - } - return casinoTicksPattern.ReplaceAllStringFunc(text, func(s string) string { - n, _ := strconv.Atoi(strings.Fields(s)[0]) - return fmt.Sprintf("%g seconds", float64(n)*float64(ms)/1000) - }) + return casinoTicksPattern.ReplaceAllString(text, "${1}t") } // betRangeWords renders the wager range in words for one-line hints. |
