Browse Source

More minion setup work.

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

Loading…
Cancel
Save