From 0a614e493ee2c6f3514d666b2c21e6773fbb6858 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Mon, 6 Jul 2026 13:23:12 +0700 Subject: [PATCH] fix(misc): satisfy wheel spin lint --- internal/modules/misc/wheelofnames_beta_spin_profile.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/modules/misc/wheelofnames_beta_spin_profile.go b/internal/modules/misc/wheelofnames_beta_spin_profile.go index b32434f..4f958bc 100644 --- a/internal/modules/misc/wheelofnames_beta_spin_profile.go +++ b/internal/modules/misc/wheelofnames_beta_spin_profile.go @@ -69,7 +69,8 @@ func (p wheelBetaSpinProfile) progressAt(t float64) float64 { accelEnd := p.accelEnd coastEnd := p.coastEnd if accelEnd <= 0 || coastEnd <= accelEnd || coastEnd >= 1 { - return 1 - math.Pow(1-t, 3) + remaining := 1 - t + return 1 - remaining*remaining*remaining } accelArea := accelEnd * 0.5