forked from MagicBane/Server
mob loot fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user