mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-15 18:16:10 +00:00
fix(misc): satisfy wheel spin lint
This commit is contained in:
1 parent
eb4a3c49c4
commit
6d021d1e04
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user