forked from MagicBane/Server
Drop rate not used for equipment drops.
This commit is contained in:
@@ -346,13 +346,14 @@ public enum LootManager {
|
|||||||
if (me.getDropChance() == 0)
|
if (me.getDropChance() == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
float equipmentRoll = ThreadLocalRandom.current().nextInt(99) + 1;
|
float equipmentRoll = ThreadLocalRandom.current().nextInt(100);
|
||||||
float dropChance = me.getDropChance() * 100;
|
float dropChance = me.getDropChance() * 100;
|
||||||
|
|
||||||
if (equipmentRoll > dropChance)
|
if (equipmentRoll > dropChance)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
|
MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
|
||||||
|
|
||||||
if (ml != null) {
|
if (ml != null) {
|
||||||
ml.setIsID(true);
|
ml.setIsID(true);
|
||||||
ml.setIsID(true);
|
ml.setIsID(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user