Exemplo n.º 1
0
 public static World GetBestDuelArena(Player player)
 {
     // Partner's level must be +/- (5 + 10%) of player and partner must have same max
     // A 5/8 level 40 could only join a 5/8 player between levels 31 - 49
     foreach (var i in QueuedPlayers)
     {
         if (i.Key.Level >= (player.Level - 5) - Math.Floor(player.Level*.1) &&
             i.Key.Level <= (player.Level + 5) + Math.Floor(player.Level*.1) &&
             i.Key.GetMaxed().Count == player.GetMaxed().Count)
             return i.Value;
     }
     return player.Manager.AddWorld(new DuelArena());
 }