mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 00:09:23 +07:00
–final
This commit is contained in:
@ -156,9 +156,9 @@ internal class WorldScreenTopBarStats(topbar: WorldScreenTopBar) : ScalingTableW
|
|||||||
// kotlin Float division by Zero produces `Float.POSITIVE_INFINITY`, not an exception
|
// kotlin Float division by Zero produces `Float.POSITIVE_INFINITY`, not an exception
|
||||||
val turnsToNextPolicy = (civInfo.policies.getCultureNeededForNextPolicy() - civInfo.policies.storedCulture) / nextTurnStats.culture
|
val turnsToNextPolicy = (civInfo.policies.getCultureNeededForNextPolicy() - civInfo.policies.storedCulture) / nextTurnStats.culture
|
||||||
cultureString += when {
|
cultureString += when {
|
||||||
turnsToNextPolicy <= 0f -> " (!)" // Can choose policy right now
|
turnsToNextPolicy <= 0f -> " (!)" // Can choose policy right now
|
||||||
nextTurnStats.culture <= 0 -> " (${Fonts.infinity})" // when you start the game, you're not producing any culture
|
nextTurnStats.culture <= 0 -> " (${Fonts.infinity})" // when you start the game, you're not producing any culture
|
||||||
else -> " (" + ceil(turnsToNextPolicy).toInt().tr() + ")"
|
else -> " (" + Fonts.turn + " " + ceil(turnsToNextPolicy).toInt().tr() + ")"
|
||||||
}
|
}
|
||||||
return cultureString
|
return cultureString
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user