mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04:00
Golden age now also provides +20% to culture; added Golden Age tutorial
This commit is contained in:
parent
e808885e0d
commit
03f5f32f36
@ -21,7 +21,7 @@
|
||||
CityEntered: [
|
||||
[
|
||||
"Welcome to your first city!",
|
||||
"As on now, you only have 1 population,",
|
||||
"As of now, you only have 1 population,",
|
||||
" but this will grow when you amass enough surplus food"
|
||||
],
|
||||
[
|
||||
@ -176,11 +176,23 @@
|
||||
],
|
||||
[
|
||||
"Unhappiness has two main causes: Population and cities",
|
||||
" Each city causes 3 unhappiness, and each population, 1",
|
||||
" 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"
|
||||
]
|
||||
],
|
||||
|
||||
GoldenAge: [
|
||||
[
|
||||
"You have entered a golden age!",
|
||||
"Golden age points are accumulated each turn by the total happiness ",
|
||||
" of your civilization",
|
||||
"When in a golden age, culture and production generation increases +20%,",
|
||||
" and every tile already providing at least one gold will provide an extra gold."
|
||||
]
|
||||
],
|
||||
|
||||
}
|
||||
|
@ -21,8 +21,8 @@ android {
|
||||
applicationId "com.unciv.game"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 26
|
||||
versionCode 82
|
||||
versionName "2.4.11.2"
|
||||
versionCode 83
|
||||
versionName "2.4.12"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
|
@ -167,7 +167,10 @@ class CityStats {
|
||||
|
||||
private fun getStatPercentBonusesFromGoldenAge(isGoldenAge: Boolean): Stats {
|
||||
val stats = Stats()
|
||||
if (isGoldenAge) stats.production += 20f
|
||||
if (isGoldenAge){
|
||||
stats.production += 20f
|
||||
stats.culture += 20f
|
||||
}
|
||||
return stats
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,7 @@ import com.unciv.models.stats.Stats
|
||||
import com.unciv.ui.utils.CameraStageBaseScreen
|
||||
import com.unciv.ui.utils.ImageGetter.getImage
|
||||
import com.unciv.ui.utils.addClickListener
|
||||
import com.unciv.ui.utils.setFont
|
||||
|
||||
|
||||
class BuildingsTable(private val cityScreen: CityScreen) : Table() {
|
||||
@ -32,7 +33,7 @@ class BuildingsTable(private val cityScreen: CityScreen) : Table() {
|
||||
|
||||
fun createLabel(text:String): Label {
|
||||
val label = Label(text, skin)
|
||||
label.setFontScale(1.5f)
|
||||
label.setFont(20)
|
||||
label.color = Color.GREEN
|
||||
return label
|
||||
}
|
||||
|
@ -248,11 +248,6 @@ class CityScreen(internal val city: CityInfo) : CameraStageBaseScreen() {
|
||||
tileTable.pad(20f)
|
||||
tileTable.columnDefaults(0).padRight(10f)
|
||||
|
||||
val cityStatsHeader = Label("Tile Stats", CameraStageBaseScreen.skin)
|
||||
cityStatsHeader.setFont(25)
|
||||
tileTable.add(cityStatsHeader).colspan(2).pad(10f)
|
||||
tileTable.row()
|
||||
|
||||
tileTable.add(Label(selectedTile!!.toString(), CameraStageBaseScreen.skin)).colspan(2)
|
||||
tileTable.row()
|
||||
|
||||
|
@ -138,6 +138,9 @@ class WorldScreen : CameraStageBaseScreen() {
|
||||
if(civInfo.happiness<0)
|
||||
displayTutorials("Unhappiness")
|
||||
|
||||
if(civInfo.goldenAges.isGoldenAge())
|
||||
displayTutorials("GoldenAge")
|
||||
|
||||
if(gameInfo.turns>=100)
|
||||
displayTutorials("ContactMe")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user