Browse Source

loot update

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
b5f36b60f7
  1. 8
      src/engine/gameManager/LootManager.java

8
src/engine/gameManager/LootManager.java

@ -118,10 +118,10 @@ public enum LootManager { @@ -118,10 +118,10 @@ public enum LootManager {
int roll = ThreadLocalRandom.current().nextInt(1, 101);
MobLoot extraLoot = null;
if (roll >= 1 && roll <= 50) {
extraLoot = rollForContract(bse.genTable + 1, mob);
extraLoot = rollForContract(bse.genTable, mob);
}
if (roll >= 51 && roll <= 94) {
extraLoot = rollForRune(bse.genTable + 1, mob);
extraLoot = rollForRune(bse.genTable, mob);
}
if (roll >= 95) {
extraLoot = rollForGlass(mob);
@ -473,7 +473,7 @@ public enum LootManager { @@ -473,7 +473,7 @@ public enum LootManager {
}
public static MobLoot rollForContract(int table, Mob mob){
GenTableEntry selectedRow = GenTableEntry.rollTable(table, 95, 1.0f);
GenTableEntry selectedRow = GenTableEntry.rollTable(table, 99, 1.0f);
if (selectedRow == null)
return null;
@ -496,7 +496,7 @@ public enum LootManager { @@ -496,7 +496,7 @@ public enum LootManager {
return null;
}
public static MobLoot rollForRune(int table, Mob mob){
GenTableEntry selectedRow = GenTableEntry.rollTable(table, 95, 1.0f);
GenTableEntry selectedRow = GenTableEntry.rollTable(table, 97, 1.0f);
if (selectedRow == null)
return null;

Loading…
Cancel
Save