Consider drop rate by id for occurrences configuration.
This commit is contained in:
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -801,7 +801,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -891,7 +898,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -801,7 +801,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -891,7 +898,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -801,7 +801,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -891,7 +898,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -863,7 +863,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -953,7 +960,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -863,7 +863,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -953,7 +960,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -863,7 +863,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -953,7 +960,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -878,7 +878,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -968,7 +975,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -878,7 +878,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -968,7 +975,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -878,7 +878,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -968,7 +975,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -862,7 +862,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -952,7 +959,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -877,7 +877,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -967,7 +974,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -877,7 +877,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -967,7 +974,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -877,7 +877,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -967,7 +974,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
@@ -877,7 +877,14 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
}
|
}
|
||||||
@@ -967,7 +974,16 @@ public class NpcTemplate extends CreatureTemplate implements IIdentifiable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// finally
|
// finally
|
||||||
if (dropItem.getChance() < 100)
|
final Float itemChance = Config.RATE_DROP_CHANCE_BY_ID.get(dropItem.getItemId());
|
||||||
|
if (itemChance != null)
|
||||||
|
{
|
||||||
|
if ((dropItem.getChance() * itemChance) < 100)
|
||||||
|
{
|
||||||
|
dropOccurrenceCounter--;
|
||||||
|
randomDrops.add(drop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (dropItem.getChance() < 100)
|
||||||
{
|
{
|
||||||
dropOccurrenceCounter--;
|
dropOccurrenceCounter--;
|
||||||
randomDrops.add(drop);
|
randomDrops.add(drop);
|
||||||
|
Reference in New Issue
Block a user