mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
Added unhappiness tutorial + tutorial text is now a normal size
This commit is contained in:
@ -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"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,6 @@ open class CameraStageBaseScreen : Screen {
|
|||||||
tutorialTable.background(ImageGetter.getDrawable(ImageGetter.WhiteDot)
|
tutorialTable.background(ImageGetter.getDrawable(ImageGetter.WhiteDot)
|
||||||
.tint(Color(0x101050cf)))
|
.tint(Color(0x101050cf)))
|
||||||
val label = Label(tutorialTexts[0], skin)
|
val label = Label(tutorialTexts[0], skin)
|
||||||
label.setFontScale(1.5f)
|
|
||||||
label.setAlignment(Align.center)
|
label.setAlignment(Align.center)
|
||||||
tutorialTexts.removeAt(0)
|
tutorialTexts.removeAt(0)
|
||||||
tutorialTable.add(label).pad(10f).row()
|
tutorialTable.add(label).pad(10f).row()
|
||||||
|
@ -135,6 +135,9 @@ class WorldScreen : CameraStageBaseScreen() {
|
|||||||
}
|
}
|
||||||
displayTutorials("NextTurn")
|
displayTutorials("NextTurn")
|
||||||
|
|
||||||
|
if(civInfo.happiness<0)
|
||||||
|
displayTutorials("Unhappiness")
|
||||||
|
|
||||||
if(gameInfo.turns>=100)
|
if(gameInfo.turns>=100)
|
||||||
displayTutorials("ContactMe")
|
displayTutorials("ContactMe")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user