Browse Source

asset windows to display correct modified maintenance

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
05dace9194
  1. 2
      src/engine/gameManager/LootManager.java

2
src/engine/gameManager/LootManager.java

@ -112,13 +112,11 @@ public enum LootManager {
case "LOOT": case "LOOT":
if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate)) if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate))
GenerateLootDrop(mob, bse.genTable); //generate normal loot drop GenerateLootDrop(mob, bse.genTable); //generate normal loot drop
if (mob.level >= 30) {
if(ThreadLocalRandom.current().nextInt(1, 20000) < mob.level) { if(ThreadLocalRandom.current().nextInt(1, 20000) < mob.level) {
if (_genTables.containsKey(bse.genTable + 1) && ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate)) { if (_genTables.containsKey(bse.genTable + 1) && ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate)) {
GenerateLootDrop(mob, bse.genTable + 1); //generate loot drop from hotzone table GenerateLootDrop(mob, bse.genTable + 1); //generate loot drop from hotzone table
} }
} }
}
break; break;
case "ITEM": case "ITEM":
GenerateInventoryDrop(mob, bse); GenerateInventoryDrop(mob, bse);

Loading…
Cancel
Save