Browse Source

multiplier not used for item drops.

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

8
src/engine/gameManager/LootManager.java

@ -135,7 +135,7 @@ public enum LootManager {
break; break;
case "ITEM": case "ITEM":
GenerateInventoryDrop(mob, bse, multiplier); GenerateInventoryDrop(mob, bse);
break; break;
} }
} }
@ -363,13 +363,13 @@ public enum LootManager {
} }
} }
public static void GenerateInventoryDrop(Mob mob, BootySetEntry bse, float multiplier) { public static void GenerateInventoryDrop(Mob mob, BootySetEntry bse) {
int chanceRoll = ThreadLocalRandom.current().nextInt(99) + 1; int chanceRoll = ThreadLocalRandom.current().nextInt(100);
//early exit, failed to hit minimum chance roll //early exit, failed to hit minimum chance roll
if (chanceRoll > bse.dropChance * multiplier) if (chanceRoll > bse.dropChance)
return; return;
MobLoot lootItem = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true); MobLoot lootItem = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true);

Loading…
Cancel
Save