Skip to content

Instantly share code, notes, and snippets.

@Pandragon
Created September 24, 2015 02:30
Show Gist options
  • Save Pandragon/25823ca540c4cff9b502 to your computer and use it in GitHub Desktop.
Save Pandragon/25823ca540c4cff9b502 to your computer and use it in GitHub Desktop.
### 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