Fixed high amount of dropChance rate.
Contributed by Olivka.
This commit is contained in:
parent
b0a513ab85
commit
4673c3e594
@ -1616,7 +1616,7 @@ public class Attackable extends NpcInstance
|
|||||||
// At least 1 item will be dropped for sure. So the chance will be adjusted to 100%
|
// At least 1 item will be dropped for sure. So the chance will be adjusted to 100%
|
||||||
// if smaller.
|
// if smaller.
|
||||||
|
|
||||||
int dropChance = 0;
|
long dropChance = 0;
|
||||||
|
|
||||||
switch (drop.getItemId())
|
switch (drop.getItemId())
|
||||||
{
|
{
|
||||||
@ -1738,7 +1738,7 @@ public class Attackable extends NpcInstance
|
|||||||
// Count and chance adjustment for high rate servers
|
// Count and chance adjustment for high rate servers
|
||||||
if ((dropChance > DropData.MAX_CHANCE) && !Config.PRECISE_DROP_CALCULATION)
|
if ((dropChance > DropData.MAX_CHANCE) && !Config.PRECISE_DROP_CALCULATION)
|
||||||
{
|
{
|
||||||
final int multiplier = (dropChance) / DropData.MAX_CHANCE;
|
final long multiplier = dropChance / DropData.MAX_CHANCE;
|
||||||
|
|
||||||
if (min < max)
|
if (min < max)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user