mob loot fix

This commit is contained in:
2024-03-26 12:50:31 -05:00
parent 57b5cef021
commit a577ecd3e4
+6 -5
View File
@@ -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;
}