Added unhappiness tutorial + tutorial text is now a normal size

This commit is contained in:
Yair Morgenstern 2018-06-14 08:42:59 +03:00
parent 0468adc130
commit 5af940858b
3 changed files with 18 additions and 1 deletions

View file

@ -168,4 +168,19 @@
]
],
Unhappiness: [
[
"It seems that your citizens are unhappy!",
"While unhappy, cities will grow at 1/4 the speed,",
" and your units will suffer a 2% penalty for each unhappiness"
],
[
"Unhappiness has two main causes: Population and cities",
" Each city causes 3 unhappiness, and each population, 1",
"There are 2 main ways to combat unhappiness:",
" by building happiness buildings for your population",
" or by having improved luxury resources within your borders"
]
],
}

View file

@ -71,7 +71,6 @@ open class CameraStageBaseScreen : Screen {
tutorialTable.background(ImageGetter.getDrawable(ImageGetter.WhiteDot)
.tint(Color(0x101050cf)))
val label = Label(tutorialTexts[0], skin)
label.setFontScale(1.5f)
label.setAlignment(Align.center)
tutorialTexts.removeAt(0)
tutorialTable.add(label).pad(10f).row()

View file

@ -135,6 +135,9 @@ class WorldScreen : CameraStageBaseScreen() {
}
displayTutorials("NextTurn")
if(civInfo.happiness<0)
displayTutorials("Unhappiness")
if(gameInfo.turns>=100)
displayTutorials("ContactMe")
}