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 {
else else
//check for a cast here? //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) if(agent.mobPowers.size() > 0 && agent.mobPowers != null)
{ {

2
src/engine/objects/Mob.java

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

Loading…
Cancel
Save