mob loot fix
This commit is contained in:
@@ -79,22 +79,23 @@ public enum LootManager {
|
|||||||
if(mob == null)
|
if(mob == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(mob.level > 80){
|
if(mob.level == 85){
|
||||||
MobLoot mithril = new MobLoot(mob, ItemBase.getItemBase(1580021), 1, true);
|
MobLoot mithril = new MobLoot(mob, ItemBase.getItemBase(1580021), 1, true);
|
||||||
mob.getCharItemManager().addItemToInventory(mithril);
|
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{
|
try{
|
||||||
|
int stewardRoll = ThreadLocalRandom.current().nextInt(1,racial_stewards.size() + 1);
|
||||||
MobLoot steward = new MobLoot(mob, ItemBase.getItemBase((Integer) racial_stewards.toArray()[stewardRoll]), true);
|
MobLoot steward = new MobLoot(mob, ItemBase.getItemBase((Integer) racial_stewards.toArray()[stewardRoll]), true);
|
||||||
mob.getCharItemManager().addItemToInventory(steward);
|
mob.getCharItemManager().addItemToInventory(steward);
|
||||||
}catch(Exception ex){
|
}catch(Exception ex){
|
||||||
|
|
||||||
}
|
}
|
||||||
try{
|
try{
|
||||||
|
int guardRoll = ThreadLocalRandom.current().nextInt(1,undead_guards.size() + 1);
|
||||||
}catch(Exception ex){
|
|
||||||
MobLoot guard = new MobLoot(mob, ItemBase.getItemBase((Integer) undead_guards.toArray()[guardRoll]), true);
|
MobLoot guard = new MobLoot(mob, ItemBase.getItemBase((Integer) undead_guards.toArray()[guardRoll]), true);
|
||||||
mob.getCharItemManager().addItemToInventory(guard);
|
mob.getCharItemManager().addItemToInventory(guard);
|
||||||
|
}catch(Exception ex){
|
||||||
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user