Skip to content

Commit

Permalink
Fix loot roll modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Telokis authored Oct 3, 2024
1 parent 5e9c133 commit 80cd60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ function drop_something(player, monster, share) {
// 3) item drops if the calculated falls below the drop rate threshold

let dropRate = item[0];
let rollModifier = share / player.luckm / monster.level / monster_mult;
let rollModifier = share * player.luckm * monster.level * monster_mult;
let playerRoll = Math.random() / rollModifier;

return playerRoll < dropRate;
Expand Down

0 comments on commit 80cd60e

Please sign in to comment.