Browse Source

rune and contract rate update

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
547de5033b
  1. 6
      src/engine/gameManager/LootManager.java

6
src/engine/gameManager/LootManager.java

@ -113,14 +113,14 @@ public enum LootManager { @@ -113,14 +113,14 @@ public enum LootManager {
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) < mob.level) {
if (ThreadLocalRandom.current().nextInt(1, 10000) < mob.level) {
if (_genTables.containsKey(bse.genTable + 1)) {
int roll = ThreadLocalRandom.current().nextInt(1, 101);
MobLoot extraLoot = null;
if (roll >= 1 && roll <= 47) {
if (roll >= 1 && roll <= 50) {
extraLoot = rollForContract(bse.genTable + 1, mob);
}
if (roll >= 48 && roll <= 94) {
if (roll >= 51 && roll <= 94) {
extraLoot = rollForRune(bse.genTable + 1, mob);
}
if (roll >= 95) {

Loading…
Cancel
Save