Example #1
0
        protected virtual void GetAssignPriority(PvPTeam team, out double weight)
        {
            if (team == null || team.Deleted)
            {
                weight = Double.MaxValue;
                return;
            }

            if (team.IsEmpty)
            {
                weight = Double.MinValue;
                return;
            }

            weight = team.Aggregate(0.0, (v, m) => v + (m.SkillsTotal * m.RawStatTotal));
        }