From cac16d1725c46c82a2e62b84c93f7090b2ce0746 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 2 Oct 2026 17:51:46 -0400 Subject: feat: craps table color improvements, die improvements --- internal/game/casino_ux.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'internal/game/casino_ux.go') 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. -- cgit v1.2.3