Beispiel #1
0
        public void SmokeScreenTargetListUpdate()
        {
            if (smokeScreenTargetCollection != null && smokeScreenTargetCollection?.Count != 0)
            {
                foreach (var pm in smokeScreenTargetCollection?.Where(x => !x.AllyIsValid()))
                {
                    Logger.ShadowLog("{0} is no longer a valid target. Removing them from the SmokeScreen Target List.", pm.SafeName());
                    smokeScreenTargetCollection?.Remove(pm);
                }
            }

            foreach (var pm in PartyManager.VisibleMembers.Select(x => x.GameObject as BattleCharacter).Where(x => x != null &&
                                                                                                              x.AllyIsValid() &&
                                                                                                              x.Type == GameObjectType.Pc &&
                                                                                                              x.IsTank() &&
                                                                                                              !x.IsMe))
            {
                if (smokeScreenTargetCollection != null)
                {
                    if (!smokeScreenTargetCollection.Contains(pm))
                    {
                        Logger.ShadowLog("Adding {0} to the SmokeScreen Target List.", pm.SafeName());
                    }
                    if (!smokeScreenTargetCollection.Contains(pm))
                    {
                        smokeScreenTargetCollection?.Add(pm);
                    }
                }
            }
        }
Beispiel #2
0
        public void CoverTargetListUpdate()
        {
            if (coverTargetCollection != null && coverTargetCollection?.Count != 0)
            {
                foreach (var pm in coverTargetCollection?.Where(x => !x.AllyIsValid()))
                {
                    Logger.BeatrixLog("{0} is no longer a valid target. Removing them from the Cover Target List.", pm.SafeName());
                    coverTargetCollection?.Remove(pm);
                }
            }

            foreach (var pm in PartyManager.VisibleMembers.Select(x => x.GameObject as BattleCharacter).Where(x => x != null &&
                                                                                                              x.AllyIsValid() &&
                                                                                                              !x.IsMe))
            {
                if (coverTargetCollection != null)
                {
                    if (!coverTargetCollection.Contains(pm))
                    {
                        Logger.BeatrixLog("Adding {0} to the Cover Target List.", pm.SafeName());
                    }
                    if (!coverTargetCollection.Contains(pm))
                    {
                        coverTargetCollection?.Add(pm);
                    }
                }
            }
        }
Beispiel #3
0
        public void NaturesMinneTargetListUpdate()
        {
            if (naturesMinneTargetCollection != null && naturesMinneTargetCollection?.Count != 0)
            {
                foreach (var pm in naturesMinneTargetCollection?.Where(x => !x.AllyIsValid()))
                {
                    Logger.EdwardLog("{0} is no longer a valid target. Removing them from the NaturesMinne Target List.", pm.SafeName());
                    naturesMinneTargetCollection?.Remove(pm);
                }
            }

            foreach (var pm in PartyManager.VisibleMembers.Select(x => x.GameObject as BattleCharacter).Where(x => x != null &&
                                                                                                              x.AllyIsValid() &&
                                                                                                              x.Type == GameObjectType.Pc &&
                                                                                                              !x.IsMe))
            {
                if (naturesMinneTargetCollection != null)
                {
                    if (!naturesMinneTargetCollection.Contains(pm))
                    {
                        Logger.EdwardLog("Adding {0} to the NaturesMinne Target List.", pm.SafeName());
                    }
                    if (!naturesMinneTargetCollection.Contains(pm))
                    {
                        naturesMinneTargetCollection?.Add(pm);
                    }
                }
            }
        }
Beispiel #4
0
        public void GoadTargetListUpdate()
        {
            if (goadTargetCollection != null && goadTargetCollection?.Count != 0)
            {
                foreach (var pm in goadTargetCollection?.Where(x => !x.AllyIsValid()))
                {
                    Logger.KefkaLog("{0} is no longer a valid target. Removing them from the Goad Target List.", pm.SafeName());
                    goadTargetCollection?.Remove(pm);
                }
            }

            foreach (var pm in PartyManager.VisibleMembers.Select(x => x.GameObject as BattleCharacter).Where(x => x != null &&
                                                                                                              x.AllyIsValid() &&
                                                                                                              x.Type == GameObjectType.Pc &&
                                                                                                              (x.CurrentJob == ClassJobType.Marauder || x.CurrentJob == ClassJobType.Warrior ||
                                                                                                               x.CurrentJob == ClassJobType.Gladiator || x.CurrentJob == ClassJobType.Paladin ||
                                                                                                               x.CurrentJob == ClassJobType.Archer || x.CurrentJob == ClassJobType.Bard ||
                                                                                                               x.CurrentJob == ClassJobType.Lancer || x.CurrentJob == ClassJobType.Dragoon ||
                                                                                                               x.CurrentJob == ClassJobType.Pugilist || x.CurrentJob == ClassJobType.Monk ||
                                                                                                               x.CurrentJob == ClassJobType.Rogue || x.CurrentJob == ClassJobType.Ninja ||
                                                                                                               x.CurrentJob == ClassJobType.Machinist || x.CurrentJob == ClassJobType.DarkKnight) &&
                                                                                                              !x.IsMe))
            {
                if (goadTargetCollection != null)
                {
                    if (!goadTargetCollection.Contains(pm))
                    {
                        Logger.KefkaLog("Adding {0} to the Goad Target List.", pm.SafeName());
                    }
                    if (!goadTargetCollection.Contains(pm))
                    {
                        goadTargetCollection?.Add(pm);
                    }
                }
            }
        }