// TODO: formalize construction tick public void UpdateConstruction(GameMaster game) { if (selectedProjectID != null) { UpdateConstructionProgressCost(game); constructionProgress += constructionDev; //FOR TESTING--------------------------------------- //constructionProgress = requiredConstructionProgress; //-------------------------------------------------- //Project is completed if (constructionProgress >= requiredConstructionProgress) { project.Complete(city, game.World); int pop = GlobalProjectDictionary.GetProjectData(selectedProjectID).Employment; city.idlePop -= pop; city.workingPop += pop; CloseProject(); } } }