mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 02:40:41 +07:00
Game speed now affects golden age turns
This commit is contained in:
@ -28,6 +28,7 @@ class GoldenAgeManager{
|
|||||||
var turnsToGoldenAge = 10.0
|
var turnsToGoldenAge = 10.0
|
||||||
if (civInfo.containsBuildingUnique("Golden Age length increases +50%")) turnsToGoldenAge *= 1.5
|
if (civInfo.containsBuildingUnique("Golden Age length increases +50%")) turnsToGoldenAge *= 1.5
|
||||||
if (civInfo.policies.isAdopted("Freedom Complete")) turnsToGoldenAge *= 1.5
|
if (civInfo.policies.isAdopted("Freedom Complete")) turnsToGoldenAge *= 1.5
|
||||||
|
turnsToGoldenAge *= civInfo.gameInfo.gameParameters.gameSpeed.getModifier()
|
||||||
turnsLeftForCurrentGoldenAge += turnsToGoldenAge.toInt()
|
turnsLeftForCurrentGoldenAge += turnsToGoldenAge.toInt()
|
||||||
civInfo.addNotification("You have entered a golden age!", null, Color.GOLD)
|
civInfo.addNotification("You have entered a golden age!", null, Color.GOLD)
|
||||||
}
|
}
|
||||||
|
@ -221,7 +221,7 @@ class DiplomacyScreen:CameraStageBaseScreen() {
|
|||||||
|
|
||||||
val demandsButton = TextButton("Demands".tr(),skin)
|
val demandsButton = TextButton("Demands".tr(),skin)
|
||||||
demandsButton.onClick {
|
demandsButton.onClick {
|
||||||
rightSideTable.clear();
|
rightSideTable.clear()
|
||||||
rightSideTable.add(getDemandsTable(currentPlayerCiv,otherCiv))
|
rightSideTable.add(getDemandsTable(currentPlayerCiv,otherCiv))
|
||||||
}
|
}
|
||||||
diplomacyTable.add(demandsButton).row()
|
diplomacyTable.add(demandsButton).row()
|
||||||
|
Reference in New Issue
Block a user