Translation fixes

This commit is contained in:
Yair Morgenstern
2018-11-14 21:08:43 +02:00
parent 646d831035
commit b01ed7541e
5 changed files with 19 additions and 14 deletions

View File

@ -68,7 +68,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
if (cityInfo.getBuildingUniques().contains("25% of food is 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)

View File

@ -53,7 +53,7 @@ class Building : NamedStats(), IConstruction{
if(str.isNotEmpty()) infoList += str
if(percentStatBonus!=null){
for(stat in percentStatBonus!!.toHashMap())
if(stat.value!=0f) infoList+="+${stat.value.toInt()}% ${stat.key}"
if(stat.value!=0f) infoList+="+${stat.value.toInt()}% ${stat.key.toString().tr()}"
}
val improvedResources = GameBasics.TileResources.values.filter { it.building==name }.map { it.name.tr() }
if(improvedResources.isNotEmpty()){