Tweak animation to not roll 0 -> 1, overflow hidden (#5148)
This commit is contained in:
parent
0ef17a464d
commit
86de0dda02
2 changed files with 3 additions and 2 deletions
|
@ -5,9 +5,9 @@
|
|||
// - The count is going down and is 1 less than a multiple of 100
|
||||
export function decideShouldRoll(isSet: boolean, count: number) {
|
||||
let shouldRoll = false
|
||||
if (!isSet && count === 0) {
|
||||
if (!isSet && count === 1) {
|
||||
shouldRoll = true
|
||||
} else if (count > 0 && count < 1000) {
|
||||
} else if (count > 1 && count < 1000) {
|
||||
shouldRoll = true
|
||||
} else if (count > 0) {
|
||||
const mod = count % 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue