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