Browse Source

rune and contract rate update

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
351437b46b
  1. 4
      src/engine/gameManager/LootManager.java

4
src/engine/gameManager/LootManager.java

@ -112,6 +112,7 @@ public enum LootManager { @@ -112,6 +112,7 @@ public enum LootManager {
case "LOOT":
if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate))
GenerateLootDrop(mob, bse.genTable); //generate normal loot drop
if(ThreadLocalRandom.current().nextInt(1,101) < mob.level && mob.parentZone.getSafeZone() == 0) {
if (ThreadLocalRandom.current().nextInt(1, 20000) == 10000) {
if (_genTables.containsKey(bse.genTable + 1)) {
int roll = ThreadLocalRandom.current().nextInt(1, 101);
@ -130,6 +131,7 @@ public enum LootManager { @@ -130,6 +131,7 @@ public enum LootManager {
}
}
}
}
break;
case "ITEM":
GenerateInventoryDrop(mob, bse);
@ -145,7 +147,7 @@ public enum LootManager { @@ -145,7 +147,7 @@ public enum LootManager {
MobLoot outItem;
int genRoll = ThreadLocalRandom.current().nextInt(1,100 + 1);
int genRoll = ThreadLocalRandom.current().nextInt(1,94 + 1);
GenTableEntry selectedRow = GenTableEntry.rollTable(genTableID, genRoll, 1.0f);

Loading…
Cancel
Save