Beispiel #1
0
 internal List <Gw2Skill> GetBuffs(Gw2Character player)
 {
     if (player != null)
     {
         return(player.Buffs.ToList());
     }
     return(null);
 }
Beispiel #2
0
        public static double CalculateFriendlyWeight(Gw2Character character)
        {
            double weight = 1;
            double healthpct = character.Health.Current / character.Health.Maximum;
            if (BuddyGw.Me.IsFightingForLife)
            {
                weight += healthpct;
            }

            weight += CharactersAround(character) * 5;
            weight *= character.InCombat ? 5 : 1;
            return weight;
        }
Beispiel #3
0
        public static double CalculateFriendlyWeight(Gw2Character character)
        {
            double weight    = 1;
            double healthpct = character.Health.Current / character.Health.Maximum;

            if (BuddyGw.Me.IsFightingForLife)
            {
                weight += healthpct;
            }

            weight += CharactersAround(character) * 5;
            weight *= character.InCombat ? 5 : 1;
            return(weight);
        }
Beispiel #4
0
        public static double CalculateEnemyWeight(Gw2Character character)
        {
            double weight = 1;
            double healthpct = character.Health.Current / character.Health.Maximum;
            if (BuddyGw.Me.IsFightingForLife)
            {
                weight -= healthpct;
            }
            else
            {
                weight += healthpct;
            }

            weight -= character.Distance;
            weight -= character.IsVisible ? 0 : 1;
            weight *= character.IsPlayer ? 5 : 1;
            weight *= character.InCombat ? 5 : 1;
            return weight;
        }
Beispiel #5
0
        public static double CalculateEnemyWeight(Gw2Character character)
        {
            double weight    = 1;
            double healthpct = character.Health.Current / character.Health.Maximum;

            if (BuddyGw.Me.IsFightingForLife)
            {
                weight -= healthpct;
            }
            else
            {
                weight += healthpct;
            }

            weight -= character.Distance;
            weight -= character.IsVisible ? 0 : 1;
            weight *= character.IsPlayer ? 5 : 1;
            weight *= character.InCombat ? 5 : 1;
            return(weight);
        }
Beispiel #6
0
 internal CreateInteractiveSpellBehavior(string spellName, Gw2Character Object, Func <RoutineContext, bool> condition = null)
 {
     SpellName   = spellName;
     Condition   = condition;
     this.Object = Object;
 }
 internal CreateInteractiveSpellBehavior(string spellName, Gw2Character Object, Func<RoutineContext, bool> condition = null)
 {
     SpellName = spellName;
     Condition = condition;
     this.Object = Object;
 }
Beispiel #8
0
 public static int CharactersAround(Gw2Character character)
 {
     return(Game.GetSurrounding(character.Position, 10).Count());
 }
Beispiel #9
0
 public static int CharactersAround(Gw2Character character)
 {
     return Game.GetSurrounding(character.Position, 10).Count();
 }
Beispiel #10
0
 internal List<Gw2Skill> GetBuffs(Gw2Character player)
 {
     if (player != null)
     {
         return player.Buffs.ToList();
     }
     return null;
 }