Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2J_Mobius_CT_2.6_HighFive
- Index: dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java
- ===================================================================
- --- dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java (revision 7212)
- +++ dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java (working copy)
- @@ -375,8 +375,15 @@
- sb.append("<tr><td width=48 align=right valign=top><font color=\"LEVEL\">Amount:</font></td>");
- sb.append("<td width=247 align=center>");
- + // Drop amount increase
- + long dropMax = dropItem.getMax();
- + if (Config.DROP_AMOUNT_INCREASE && ((dropItem.getChance() * rateChance) > 100))
- + {
- + dropMax += (dropItem.getChance() * rateChance) / 100;
- + }
- +
- final long min = (long) (dropItem.getMin() * rateAmount);
- - final long max = (long) (dropItem.getMax() * rateAmount);
- + final long max = (long) (dropMax * rateAmount);
- if (min == max)
- {
- sb.append(amountFormat.format(min));
- Index: java/org/l2jmobius/gameserver/model/actor/templates/NpcTemplate.java
- ===================================================================
- --- java/org/l2jmobius/gameserver/model/actor/templates/NpcTemplate.java (revision 7212)
- +++ java/org/l2jmobius/gameserver/model/actor/templates/NpcTemplate.java (working copy)
- @@ -802,7 +802,7 @@
- rateAmount *= Config.RATE_DEATH_DROP_AMOUNT_MULTIPLIER * (champion ? Config.CHAMPION_REWARDS_AMOUNT : 1);
- }
- - // premium chance
- + // premium amount
- if (Config.PREMIUM_SYSTEM_ENABLED && (killer.getActingPlayer() != null) && killer.getActingPlayer().hasPremiumStatus())
- {
- if (Config.PREMIUM_RATE_DROP_AMOUNT_BY_ID.get(itemId) != null)
- @@ -823,8 +823,15 @@
- }
- }
- + // Drop amount increase
- + long dropMax = dropItem.getMax();
- + if (Config.DROP_AMOUNT_INCREASE && ((dropItem.getChance() * rateChance) > 100))
- + {
- + dropMax += (dropItem.getChance() * rateChance) / 100;
- + }
- +
- // finally
- - return new ItemHolder(itemId, (long) (Rnd.get(dropItem.getMin(), dropItem.getMax()) * rateAmount));
- + return new ItemHolder(itemId, (long) (Rnd.get(dropItem.getMin(), dropMax) * rateAmount));
- }
- break;
- }
- @@ -849,8 +856,15 @@
- rateAmount *= Config.PREMIUM_RATE_SPOIL_AMOUNT;
- }
- + // Drop amount increase
- + long dropMax = dropItem.getMax();
- + if (Config.DROP_AMOUNT_INCREASE && ((dropItem.getChance() * rateChance) > 100))
- + {
- + dropMax += (dropItem.getChance() * rateChance) / 100;
- + }
- +
- // finally
- - return new ItemHolder(dropItem.getItemId(), (long) (Rnd.get(dropItem.getMin(), dropItem.getMax()) * rateAmount));
- + return new ItemHolder(dropItem.getItemId(), (long) (Rnd.get(dropItem.getMin(), dropMax) * rateAmount));
- }
- break;
- }
- ### Eclipse Workspace Patch 1.0
- #P L2J_Mobius_CT_2.6_HighFive
- Index: dist/game/config/Rates.ini
- ===================================================================
- --- dist/game/config/Rates.ini (revision 7212)
- +++ dist/game/config/Rates.ini (working copy)
- @@ -125,17 +125,51 @@
- # are not counted by this value. They will drop as extra drops.
- DropMaxOccurrencesNormal = 2
- DropMaxOccurrencesRaidboss = 7
- +# Increase drop amount if drop chance exceeds 100%
- +# Default: False
- +DropAmountIncrease = True
- # ---------------------------------------------------------------------------
- ### Eclipse Workspace Patch 1.0
- #P L2J_Mobius_CT_2.6_HighFive
- Index: java/org/l2jmobius/Config.java
- ===================================================================
- --- java/org/l2jmobius/Config.java (revision 7212)
- +++ java/org/l2jmobius/Config.java (working copy)
- @@ -806,6 +810,7 @@
- public static Map<Integer, Float> RATE_DROP_CHANCE_BY_ID;
- public static int DROP_MAX_OCCURRENCES_NORMAL;
- public static int DROP_MAX_OCCURRENCES_RAIDBOSS;
- + public static boolean DROP_AMOUNT_INCREASE;
- public static int DROP_ADENA_MIN_LEVEL_DIFFERENCE;
- public static int DROP_ADENA_MAX_LEVEL_DIFFERENCE;
- public static double DROP_ADENA_MIN_LEVEL_GAP_CHANCE;
- @@ -2402,6 +2490,7 @@
- DROP_MAX_OCCURRENCES_NORMAL = RatesSettings.getInt("DropMaxOccurrencesNormal", 2);
- DROP_MAX_OCCURRENCES_RAIDBOSS = RatesSettings.getInt("DropMaxOccurrencesRaidboss", 7);
- + DROP_AMOUNT_INCREASE = RatesSettings.getBoolean("DropAmountIncrease", false);
- DROP_ADENA_MIN_LEVEL_DIFFERENCE = RatesSettings.getInt("DropAdenaMinLevelDifference", 8);
- DROP_ADENA_MAX_LEVEL_DIFFERENCE = RatesSettings.getInt("DropAdenaMaxLevelDifference", 15);
- DROP_ADENA_MIN_LEVEL_GAP_CHANCE = RatesSettings.getDouble("DropAdenaMinLevelGapChance", 10);
Add Comment
Please, Sign In to add comment