about summary refs log tree commit diff
path: root/src/lib/custom-animations
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-09-04 12:36:20 -0700
committerGitHub <noreply@github.com>2024-09-04 12:36:20 -0700
commit86de0dda026f2c0ed8362272f5c54b35643cbdec (patch)
tree4b9e9bc2ca96313e63df7b09a1f34d2a99ec7db6 /src/lib/custom-animations
parent0ef17a464d9118808c479c9610a12a42dc30e87f (diff)
downloadvoidsky-86de0dda026f2c0ed8362272f5c54b35643cbdec.tar.zst
Tweak animation to not roll 0 -> 1, overflow hidden (#5148)
Diffstat (limited to 'src/lib/custom-animations')
-rw-r--r--src/lib/custom-animations/util.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/custom-animations/util.ts b/src/lib/custom-animations/util.ts
index 0aebab57b..f3b9cbc5c 100644
--- a/src/lib/custom-animations/util.ts
+++ b/src/lib/custom-animations/util.ts
@@ -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