Incorrect extra roll calculation for item quantity
The condition should be (Math.random() * 100) < (itemQuantity % 100)
to correctly account for remainder percentages after guaranteed rolls.
Edited by PkmX
The condition should be (Math.random() * 100) < (itemQuantity % 100)
to correctly account for remainder percentages after guaranteed rolls.