public static void CreateRandomPopulation() { foreach (Province province in allLandProvinces) { if (province.Country == UncolonizedLand) { //1500-2000 //new Tribesmen(PopUnit.getRandomPopulationAmount(300, 400), province.Country.Culture, province); //new Aristocrats(PopUnit.getRandomPopulationAmount(300, 400), province.Country.Culture, province); new Tribesmen(PopUnit.getRandomPopulationAmount(1500, 2000), province.Country.Culture, province); //new Tribesmen(PopUnit.getRandomPopulationAmount(2000, 2500), province.Country.Culture, province); } else { PopUnit pop; //if (Game.devMode) // pop = new Tribesmen(2000, province.Country.Culture, province); //else //new Tribesmen(PopUnit.getRandomPopulationAmount(11000, 12000), province.Country.Culture, province); //new Tribesmen(PopUnit.getRandomPopulationAmount(3100, 3200), province.Country.Culture, province); new Tribesmen(PopUnit.getRandomPopulationAmount(200, 300), province.Country.Culture, province); //if (Game.devMode) // pop = new Aristocrats(1000, province.Country.Culture, province); //else pop = new Aristocrats(PopUnit.getRandomPopulationAmount(500, 1000), province.Country.Culture, province); pop.GiveMoneyFromNoWhere(900m); pop.storage.add(new Storage(Product.Grain, 60f)); //if (!Game.devMode) //{ //pop = new Capitalists(PopUnit.getRandomPopulationAmount(500, 800), Country.Culture, province); //pop.Cash.set(9000); pop = new Artisans(PopUnit.getRandomPopulationAmount(400, 500), province.Country.Culture, province); pop.GiveMoneyFromNoWhere(900m); pop = new Farmers(PopUnit.getRandomPopulationAmount(8200, 9000), province.Country.Culture, province); pop.GiveMoneyFromNoWhere(20m); if (Game.IndustrialStart) { new Workers(PopUnit.getRandomPopulationAmount(4500, 5000), province.Country.Culture, province); pop = new Capitalists(PopUnit.getRandomPopulationAmount(500, 800), province.Country.Culture, province); pop.GiveMoneyFromNoWhere(9000); } else { new Workers(PopUnit.getRandomPopulationAmount(500, 800), province.Country.Culture, province); } //} //province.allPopUnits.Add(new Workers(600, PopType.workers, Game.player.culture, province)); //break; } } }
static void сreateRandomPopulation() { foreach (Province province in Province.allProvinces) { if (province.GetCountry() == Country.NullCountry) { Tribesmen f = new Tribesmen(PopUnit.getRandomPopulationAmount(500, 1000), province.GetCountry().getCulture(), province); } else { PopUnit pop; //if (Game.devMode) // pop = new Tribesmen(2000, province.getCountry().getCulture(), province); //else pop = new Tribesmen(PopUnit.getRandomPopulationAmount(1800, 2000), province.GetCountry().getCulture(), province); if (province.GetCountry() == Game.Player) { //pop = new Tribesmen(20900, PopType.tribeMen, province.getOwner().culture, province); //province.allPopUnits.Add(pop); } //if (Game.devMode) // pop = new Aristocrats(1000, province.getCountry().getCulture(), province); //else pop = new Aristocrats(PopUnit.getRandomPopulationAmount(800, 1000), province.GetCountry().getCulture(), province); pop.cash.set(9000); pop.storage.add(new Storage(Product.Grain, 60f)); //if (!Game.devMode) //{ //pop = new Capitalists(PopUnit.getRandomPopulationAmount(500, 800), getCountry().getCulture(), province); //pop.cash.set(9000); pop = new Artisans(PopUnit.getRandomPopulationAmount(500, 800), province.GetCountry().getCulture(), province); pop.cash.set(900); pop = new Farmers(PopUnit.getRandomPopulationAmount(10000, 12000), province.GetCountry().getCulture(), province); pop.cash.set(20); //} //province.allPopUnits.Add(new Workers(600, PopType.workers, Game.player.culture, province)); } } }