Exemplo n.º 1
0
        private static void GenerateNewTeam(int index, Models.JsonConverters.Team teamData)
        {
            var divisionId   = ((index - 1) / GameData.TeamsPerDivision) + 1;
            var cashQuotient = 120 - (teamData.InitialRanking * 2);
            var cash         = rnd.Next(1, cashQuotient) * 1000000;
            var formation    = FormationData.GetRandomFormation();

            TeamData.AddNewTeam(teamData.TeamName, teamData.InitialRanking,
                                divisionId, cash, formation);
        }