Browse Source

Minions loaded for guard captain

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
6b3c64faea
  1. 12
      src/engine/objects/Mob.java

12
src/engine/objects/Mob.java

@ -1677,6 +1677,9 @@ public class Mob extends AbstractIntelligenceAgent {
if (this.getMobBase().enemy.size() > 0) if (this.getMobBase().enemy.size() > 0)
this.enemy.addAll(this.getMobBase().enemy); this.enemy.addAll(this.getMobBase().enemy);
} }
// Load skills, powers and effects
NPCManager.applyMobbaseEffects(this); NPCManager.applyMobbaseEffects(this);
NPCManager.applyEquipmentResists(this); NPCManager.applyEquipmentResists(this);
NPCManager.applyMobbaseSkill(this); NPCManager.applyMobbaseSkill(this);
@ -1695,6 +1698,11 @@ public class Mob extends AbstractIntelligenceAgent {
if (this.agentType.equals(AIAgentType.MOBILE)) if (this.agentType.equals(AIAgentType.MOBILE))
NPCManager.AssignPatrolPoints(this); NPCManager.AssignPatrolPoints(this);
// Load minions for guard captain.
if (this.agentType.equals(AIAgentType.GUARDCAPTAIN))
DbManager.MobQueries.LOAD_GUARD_MINIONS(this);
this.deathTime = 0; this.deathTime = 0;
} }
@ -1732,9 +1740,9 @@ public class Mob extends AbstractIntelligenceAgent {
if (!ac.getObjectType().equals(GameObjectType.PlayerCharacter)) if (!ac.getObjectType().equals(GameObjectType.PlayerCharacter))
return; return;
if (this.getCombatTarget() == null) { if (this.getCombatTarget() == null)
this.setCombatTarget(ac); this.setCombatTarget(ac);
}
} }
public void setRank(int newRank) { public void setRank(int newRank) {

Loading…
Cancel
Save