Apply the Medical Lab effect to the city food supply

This commit is contained in:
Bryan W. Weber 2018-10-14 11:19:20 -04:00
parent edc3e730b9
commit f90f2026ec
No known key found for this signature in database
GPG Key ID: 3A93E209C87E1FE7

View File

@ -66,6 +66,7 @@ class PopulationManager {
{
foodStored -= getFoodToNextPopulation()
if (cityInfo.getBuildingUniques().contains("40% of food is carried over after a new citizen is born")) foodStored += (0.4f * getFoodToNextPopulation()).toInt() // Aqueduct special
if (cityInfo.getBuildingUniques().contains("25% of food carried over after a new citizen is born")) foodStored += (0.25f * getFoodToNextPopulation()).toInt() // Medical Lab special
population++
autoAssignPopulation()
cityInfo.civInfo.addNotification(cityInfo.name + " {has grown}!", cityInfo.location, Color.GREEN)