Fixed grouped item drop chance calculation.
This commit is contained in:
parent
c1a7c9269f
commit
5c374393cb
@ -66,7 +66,7 @@ public interface IGroupedItemDropCalculationStrategy
|
|||||||
for (GeneralDropItem item2 : normalized.getItems())
|
for (GeneralDropItem item2 : normalized.getItems())
|
||||||
{
|
{
|
||||||
// Grouped item chance rates should not be modified (the whole magic was already done by normalizing thus the items' chance sum is always 100%).
|
// Grouped item chance rates should not be modified (the whole magic was already done by normalizing thus the items' chance sum is always 100%).
|
||||||
totalChance += item2.getChance();
|
totalChance += Math.sqrt(item2.getChance());
|
||||||
if (totalChance > random)
|
if (totalChance > random)
|
||||||
{
|
{
|
||||||
int amountMultiply = 1;
|
int amountMultiply = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user