Browse Source

mob loot fix

birdbane
FatBoy-DOTC 9 months ago
parent
commit
a577ecd3e4
  1. 11
      src/engine/gameManager/LootManager.java

11
src/engine/gameManager/LootManager.java

@ -79,22 +79,23 @@ public enum LootManager { @@ -79,22 +79,23 @@ public enum LootManager {
if(mob == null)
return;
if(mob.level > 80){
if(mob.level == 85){
MobLoot mithril = new MobLoot(mob, ItemBase.getItemBase(1580021), 1, true);
mob.getCharItemManager().addItemToInventory(mithril);
int stewardRoll = ThreadLocalRandom.current().nextInt(1,racial_stewards.size() + 1);
int guardRoll = ThreadLocalRandom.current().nextInt(1,undead_guards.size() + 1);
try{
int stewardRoll = ThreadLocalRandom.current().nextInt(1,racial_stewards.size() + 1);
MobLoot steward = new MobLoot(mob, ItemBase.getItemBase((Integer) racial_stewards.toArray()[stewardRoll]), true);
mob.getCharItemManager().addItemToInventory(steward);
}catch(Exception ex){
}
try{
}catch(Exception ex){
int guardRoll = ThreadLocalRandom.current().nextInt(1,undead_guards.size() + 1);
MobLoot guard = new MobLoot(mob, ItemBase.getItemBase((Integer) undead_guards.toArray()[guardRoll]), true);
mob.getCharItemManager().addItemToInventory(guard);
}catch(Exception ex){
}
return;
}

Loading…
Cancel
Save