From 46832316d827549593f9ad6d87a923370970b5f2 Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 9 Mar 2022 14:27:32 +0100 Subject: [PATCH] updated hyper and animation speed thresholds --- frontend/src/scripts/test/monkey.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/scripts/test/monkey.ts b/frontend/src/scripts/test/monkey.ts index e35742a30..cb3e7acdd 100644 --- a/frontend/src/scripts/test/monkey.ts +++ b/frontend/src/scripts/test/monkey.ts @@ -63,10 +63,10 @@ function update(): void { export function updateFastOpacity(num: number): void { if (!Config.monkey) return; - const opacity = mapRange(num, 100, 200, 0, 1); + const opacity = mapRange(num, 130, 180, 0, 1); $("#monkey .fast").animate({ opacity: opacity }, 1000); - let animDuration = mapRange(num, 100, 200, 0.5, 0.01); - if (animDuration == 0.5) animDuration = 0; + let animDuration = mapRange(num, 130, 180, 0.25, 0.01); + if (animDuration == 0.25) animDuration = 0; $("#monkey").css({ animationDuration: animDuration + "s" }); }