mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 07:16:54 +07:00
Culture no longer displays 214... turns to next policy when no cities are built
This commit is contained in:
parent
7503c67f18
commit
53ff1290e8
@ -134,8 +134,10 @@ class WorldScreenTopBar(val screen: WorldScreen) : Table() {
|
||||
}
|
||||
|
||||
private fun getCultureText(civInfo: CivilizationInfo, nextTurnStats: Stats): String {
|
||||
val turnsToNextPolicy = (civInfo.policies.getCultureNeededForNextPolicy() - civInfo.policies.storedCulture) / nextTurnStats.culture
|
||||
var cultureString = "+" + Math.round(nextTurnStats.culture)
|
||||
if(nextTurnStats.culture==0f) return cultureString // when you start the game, you're not producing any culture
|
||||
|
||||
val turnsToNextPolicy = (civInfo.policies.getCultureNeededForNextPolicy() - civInfo.policies.storedCulture) / nextTurnStats.culture
|
||||
if (turnsToNextPolicy > 0) cultureString += " (" + ceil(turnsToNextPolicy).toInt() + ")"
|
||||
else cultureString += " (!)"
|
||||
return cultureString
|
||||
|
Loading…
Reference in New Issue
Block a user