Browse Source

mob power list troubleshooting

master
FatBoy-DOTC 2 years ago
parent
commit
4f60811f6b
  1. 11
      src/engine/objects/Mob.java

11
src/engine/objects/Mob.java

@ -2220,15 +2220,8 @@ public class Mob extends AbstractIntelligenceAgent { @@ -2220,15 +2220,8 @@ public class Mob extends AbstractIntelligenceAgent {
Logger.error( e.getMessage());
}
//mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(this.getMobBaseID());
mobPowers = (HashMap<Integer, Integer>) PowersManager.AllMobPowers.get(this.getMobBaseID()).entrySet();
if(this.isPlayerGuard() == true){
//load guards powers
ArrayList<MobBase> mobbases = DbManager.MobBaseQueries.GET_ALL_MOBBASES();
for(MobBase mb : mobbases){
if(this.getNameOverride().contains(mb.getFirstName())){
this.mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(mb.getObjectUUID());
}
}
if(PowersManager.AllMobPowers.containsKey(this.getMobBaseID()) == true){
mobPowers = (HashMap<Integer, Integer>) PowersManager.AllMobPowers.get(this.getMobBaseID()).entrySet();
}
if (this.equip == null) {
Logger.error("Null equipset returned for uuid " + currentID);

Loading…
Cancel
Save