Skip to content

Commit

Permalink
clamp rate
Browse files Browse the repository at this point in the history
  • Loading branch information
horrible-little-slime committed Sep 29, 2024
1 parent 0745f7f commit f5eba66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/garbo/src/tasks/freeGiantSandworm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f5eba66

Please sign in to comment.