Added tutorials on injured units and workers

This commit is contained in:
Yair Morgenstern 2018-10-31 14:00:49 +02:00
parent 9fe24e2d3d
commit 60b86decfb
2 changed files with 24 additions and 0 deletions

View file

@ -290,4 +290,22 @@
]
]
InjuredUnits:[
[
"One of your units is injured!",
"Injured units deal less damage, but recover after turns that they have been inactive",
"Units heal 5 health per turn in enemy territory, 10 in neutral land,"
" 15 inside your territory and 20 in your cities"
]
]
Worker:[
[
"You have trained a worker!",
"Workers are vital to your cities' growth, since only they can onstruct improvements on tiles",
"Improvements raise the yield of your tiles, allowing your city to produce more and grow faster",
" while working the same amount of tiles!"
]
]
}

View file

@ -120,6 +120,12 @@ class WorldScreen : CameraStageBaseScreen() {
}
}
if(gameClone.getPlayerCivilization().getCivUnits().any { it.health<100 })
displayTutorials("InjuredUnits")
if(gameClone.getPlayerCivilization().getCivUnits().any { it.name=="Worker" })
displayTutorials("WorkerTrained")
updateTechButton(cloneCivilization)
updateDiplomacyButton(cloneCivilization)