Browse Source

changed location of mob power lookup

pull/13/head
FatBoy-DOTC 2 years ago
parent
commit
f8a9262fc5
  1. 2
      src/engine/ai/utilities/CombatUtilities.java
  2. 2
      src/engine/objects/Mob.java

2
src/engine/ai/utilities/CombatUtilities.java

@ -291,7 +291,7 @@ public class CombatUtilities { @@ -291,7 +291,7 @@ public class CombatUtilities {
else
//check for a cast here?
agent.mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(agent.getMobBaseID());
//agent.mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(agent.getMobBaseID());
if(agent.mobPowers.size() > 0 && agent.mobPowers != null)
{

2
src/engine/objects/Mob.java

@ -2203,7 +2203,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -2203,7 +2203,7 @@ public class Mob extends AbstractIntelligenceAgent {
} catch(Exception e){
Logger.error( e.getMessage());
}
mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(this.getMobBaseID());
if (this.equip == null) {
Logger.error("Null equipset returned for uuid " + currentID);
this.equip = new HashMap<>(0);

Loading…
Cancel
Save