微调波塞克动画

This commit is contained in:
Atsuishio 2025-04-22 23:04:29 +08:00 committed by Light_Quanta
parent bf1f5a8614
commit 50f9ecb46b
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -1462,7 +1462,7 @@ public class ClientEventHandler {
bowPullTimer = Math.min(bowPullTimer + 0.024 * times, 1.4);
bowPower = Math.min(bowPower + 0.018 * times, 1);
} else {
bowPullTimer = Math.max(bowPullTimer - 0.025 * times, 0);
bowPullTimer = Math.max(bowPullTimer - 0.021 * times, 0);
bowPower = Math.max(bowPower - 0.04 * times, 0);
}
bowPullPos = 0.5 * Math.cos(Math.PI * Math.pow(Math.pow(Mth.clamp(bowPullTimer, 0, 1), 2) - 1, 2)) + 0.5;