Browse Source

More minion setup work.

mobile-class-refactor
MagicBot 1 year ago
parent
commit
3aec6ee578
  1. 15
      src/engine/objects/Mob.java

15
src/engine/objects/Mob.java

@ -664,12 +664,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -664,12 +664,7 @@ public class Mob extends AbstractIntelligenceAgent {
minionMobile.parentZoneUUID = guardCaptain.parentZoneUUID;
minionMobile.bindLoc = guardCaptain.bindLoc;
minionMobile.runAfterLoad();
minionMobile.despawned = true;
minionMobile.setLoc(minionMobile.bindLoc);
minionMobile.despawn();
//grab equipment and name from minionbase.
//grab name from minionbase.
Enum.MinionType minionType = Enum.MinionType.ContractToMinionMap.get(guardCaptain.contract.getContractID());
@ -686,8 +681,16 @@ public class Mob extends AbstractIntelligenceAgent { @@ -686,8 +681,16 @@ public class Mob extends AbstractIntelligenceAgent {
rank = MBServerStatics.ELITE;
minionMobile.lastName = rank + " " + minionType.getRace() + " " + minionType.getName();
}
// Configure and spawn minion
minionMobile.runAfterLoad();
minionMobile.despawned = true;
minionMobile.setLoc(minionMobile.bindLoc);
minionMobile.despawn();
DbManager.addToCache(minionMobile);
int slot = guardCaptain.siegeMinionMap.size() + 1;

Loading…
Cancel
Save