Created
September 24, 2015 02:30
-
-
Save Pandragon/25823ca540c4cff9b502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Eclipse Workspace Patch 1.0 | |
#P L2J_Server | |
Index: java/com/l2jserver/gameserver/model/drops/strategy/IGroupedItemDropCalculationStrategy.java | |
=================================================================== | |
--- java/com/l2jserver/gameserver/model/drops/strategy/IGroupedItemDropCalculationStrategy.java (revision 10651) | |
+++ java/com/l2jserver/gameserver/model/drops/strategy/IGroupedItemDropCalculationStrategy.java (working copy) | |
@@ -66,7 +66,7 @@ | |
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%). | |
- totalChance += item2.getChance(); | |
+ totalChance += Math.sqrt(item2.getChance()); | |
if (totalChance > random) | |
{ | |
int amountMultiply = 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment