Removed old todos

This commit is contained in:
Yair Morgenstern
2021-05-11 00:28:49 +03:00
parent 482f9ae9e5
commit 1f50f3e97e
5 changed files with 3 additions and 7 deletions

View File

@ -71,9 +71,6 @@ class PopulationManager {
private fun getStatsOfSpecialist(name: String) = cityInfo.cityStats.getStatsOfSpecialist(name)
// todo - change tile choice according to city!
// if small city, favor production above all, ignore gold!
// if larger city, food should be worth less!
internal fun autoAssignPopulation(foodWeight: Float = 1f) {
for (i in 1..getFreePopulation()) {
//evaluate tiles

View File

@ -128,7 +128,6 @@ class CivInfoStats(val civInfo: CivilizationInfo) {
val statMap = HashMap<String, Float>()
statMap["Base happiness"] = civInfo.getDifficulty().baseHappiness.toFloat()
// TODO - happinessPerUnique should be difficulty-dependent, 5 on Settler and Chieftian and 4 on other difficulties (should be parameter, not in code)
var happinessPerUniqueLuxury = 4f + civInfo.getDifficulty().extraHappinessPerLuxury
for (unique in civInfo.getMatchingUniques("+1 happiness from each type of luxury resource"))
happinessPerUniqueLuxury += 1

View File

@ -34,7 +34,7 @@ class TradeTable(val otherCivilization: CivilizationInfo, stage: DiplomacyScreen
offerColumnsTable.update()
}
if(isTradeOffered()) offerButton.setText("Retract offer".tr()) // todo translation
if(isTradeOffered()) offerButton.setText("Retract offer".tr())
else offerButton.setText("Offer trade".tr())
offerButton.onClick {

View File

@ -56,7 +56,7 @@ class VictoryScreen(val worldScreen: WorldScreen) : PickerScreen() {
someoneHasWon = true
when (playerVictoryType) {
VictoryType.Cultural -> wonOrLost("You have won a cultural victory!")
VictoryType.Domination -> wonOrLost("You have won a domination victory!") // todo change translation
VictoryType.Domination -> wonOrLost("You have won a domination victory!")
VictoryType.Scientific -> wonOrLost("You have won a scientific victory!")
VictoryType.Neutral -> wonOrLost("You have won!")
}

View File

@ -49,7 +49,7 @@ import kotlin.concurrent.timer
class WorldScreen(val gameInfo: GameInfo, val viewingCiv:CivilizationInfo) : CameraStageBaseScreen() {
var isPlayersTurn = viewingCiv == gameInfo.currentPlayerCiv // todo this should be updated when passing turns
var isPlayersTurn = viewingCiv == gameInfo.currentPlayerCiv
var selectedCiv = viewingCiv // Selected civilization, used in spectator and replay mode, equals viewingCiv in ordinary games
private var fogOfWar = true
val canChangeState = isPlayersTurn && !viewingCiv.isSpectator()