From ad9c4db36add7861cc4a3d0bd38fabe6116ee13f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 26 May 2025 05:20:54 +0200 Subject: [PATCH] Reduce chance of salto in joy animation --- animeCat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/animeCat.js b/animeCat.js index 2af2ede..c09b226 100644 --- a/animeCat.js +++ b/animeCat.js @@ -309,7 +309,7 @@ _runJoyAnimation(onFinish) { img.src = this.images.joy || this.images.default; // 20% Chance auf Salto! - const salto = Math.random() < 1; + const salto = Math.random() < 0.2; // Erst: Wrapper nach oben bewegen (Katze springt hoch) wrapper.style.transition = 'transform 0.4s cubic-bezier(.19,1,.22,1)';