Browse Source

Drop rate not used for equipment drops.

master
MagicBot 1 year ago
parent
commit
8b1fb98b09
  1. 3
      src/engine/gameManager/LootManager.java

3
src/engine/gameManager/LootManager.java

@ -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);

Loading…
Cancel
Save