Drop rate not used for equipment drops.

This commit is contained in:
2023-08-04 13:09:09 -04:00
parent 2cbb112f09
commit 8b1fb98b09
+2 -1
View File
@@ -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);