From 4add686bcd416cae07145f3640a12912df8cb9d8 Mon Sep 17 00:00:00 2001 From: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> Date: Sun, 27 Jun 2021 21:17:05 +0200 Subject: [PATCH] Fixed bug where on quick game speed, educated elite would yield a great person every turn (#4289) --- core/src/com/unciv/logic/civilization/CivilizationInfo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/civilization/CivilizationInfo.kt b/core/src/com/unciv/logic/civilization/CivilizationInfo.kt index 53f1d2edd2..c09e894c33 100644 --- a/core/src/com/unciv/logic/civilization/CivilizationInfo.kt +++ b/core/src/com/unciv/logic/civilization/CivilizationInfo.kt @@ -753,7 +753,7 @@ class CivilizationInfo { addNotification( "[${givingCityState.civName}] gave us a [${giftedUnit.name}] as a gift!", locations, givingCityState.civName, giftedUnit.name) } - fun turnsForGreatPersonFromCityState(): Int = (40 + -2 + Random().nextInt(5)) * gameInfo.gameParameters.gameSpeed.modifier.toInt() + fun turnsForGreatPersonFromCityState(): Int = ((40 + -2 + Random().nextInt(5)) * gameInfo.gameParameters.gameSpeed.modifier).toInt() // There seems to be some randomness in the amount of turns between receiving each great person, // but I have no idea what the actual lower and upper bound are, so this is just an approximation