Browse Source

Minions inherit patrol points form barracks.

mobile-class-refactor
MagicBot 1 year ago
parent
commit
8dd25ac315
  1. 1
      src/engine/objects/Mob.java

1
src/engine/objects/Mob.java

@ -624,6 +624,7 @@ public class Mob extends AbstractIntelligenceAgent {
minionMobile.behaviourType = Enum.MobBehaviourType.GuardMinion; minionMobile.behaviourType = Enum.MobBehaviourType.GuardMinion;
minionMobile.isPlayerGuard = true; minionMobile.isPlayerGuard = true;
minionMobile.guardedCity = guardCaptain.guardedCity; minionMobile.guardedCity = guardCaptain.guardedCity;
minionMobile.patrolPoints = guardCaptain.building.patrolPoints;
minionMobile.parentZoneUUID = guardCaptain.parentZoneUUID; minionMobile.parentZoneUUID = guardCaptain.parentZoneUUID;
minionMobile.bindLoc = Vector3fImmutable.ZERO; minionMobile.bindLoc = Vector3fImmutable.ZERO;

Loading…
Cancel
Save