Ejemplo n.º 1
0
        protected virtual void CalculateAssignPriority(PvPTeam team, out double weight)
        {
            if (team == null || team.Deleted)
            {
                weight = Double.MaxValue;
                return;
            }

            if (team.Count <= 0)
            {
                weight = Double.MinValue;
                return;
            }

            weight = team.Sum(
                m =>
            {
                unchecked
                {
                    return((double)(m.SkillsTotal + m.Str + m.Dex + m.Int + m.HitsMax + m.StamMax + m.ManaMax));
                }
            });
        }