コード例 #1
0
        public BehaviorMissionComplete()
            : base()
        {
            if (Character.Player.MinimapZoneText != "Town Hall" || CommandTable == null)
            {
                MovementPoints.Insert(0, MovementCache.GarrisonEntrance);
            }

            Criteria += () => BaseSettings.CurrentSettings.BehaviorMissionComplete && GarrisonManager.CompletedMissions.Count > 0;
        }
コード例 #2
0
        public BehaviorMissionStartup()
            : base()
        {
            if (Character.Player.MinimapZoneText != "Town Hall" || CommandTable == null)
            {
                MovementPoints.Insert(0, MovementCache.GarrisonEntrance);
            }

            Criteria += () =>
                        BaseSettings.CurrentSettings.BehaviorMissionStart &&
                        BaseSettings.CurrentSettings.BehaviorMissionComplete &&
                        GarrisonManager.AvailableMissionIds.Count > 0 &&
                        GarrisonManager.CurrentActiveFollowers <= GarrisonManager.MaxActiveFollowers;
        }