From f5eba66c883d72b7b727a3bf58507e0f73367e2e Mon Sep 17 00:00:00 2001 From: horrible little slime <69secret69email69@gmail.com> Date: Sat, 28 Sep 2024 21:56:58 -0400 Subject: [PATCH] clamp rate --- packages/garbo/src/tasks/freeGiantSandworm.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/garbo/src/tasks/freeGiantSandworm.ts b/packages/garbo/src/tasks/freeGiantSandworm.ts index 4bb54f2a9..abfb83c39 100644 --- a/packages/garbo/src/tasks/freeGiantSandworm.ts +++ b/packages/garbo/src/tasks/freeGiantSandworm.ts @@ -308,7 +308,8 @@ function sandwormRate(): number { ? 2 : 1; _sandwormRate = - REJECTION * BASE_RATE * (1 + (getModifier("Item Drop") * squint) / 100); + REJECTION * + clamp(BASE_RATE * (1 + (getModifier("Item Drop") * squint) / 100), 0, 1); } return _sandwormRate; }