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 {
int roll = ThreadLocalRandom.current().nextInt(1, 101); int roll = ThreadLocalRandom.current().nextInt(1, 101);
MobLoot extraLoot = null; MobLoot extraLoot = null;
if (roll >= 1 && roll <= 50) { if (roll >= 1 && roll <= 50) {
extraLoot = rollForContract(bse.genTable + 1, mob); extraLoot = rollForContract(bse.genTable, mob);
} }
if (roll >= 51 && roll <= 94) { if (roll >= 51 && roll <= 94) {
extraLoot = rollForRune(bse.genTable + 1, mob); extraLoot = rollForRune(bse.genTable, mob);
} }
if (roll >= 95) { if (roll >= 95) {
extraLoot = rollForGlass(mob); extraLoot = rollForGlass(mob);
@ -473,7 +473,7 @@ public enum LootManager {
} }
public static MobLoot rollForContract(int table, Mob mob){ 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) if (selectedRow == null)
return null; return null;
@ -496,7 +496,7 @@ public enum LootManager {
return null; return null;
} }
public static MobLoot rollForRune(int table, Mob mob){ 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) if (selectedRow == null)
return null; return null;

Loading…
Cancel
Save