diff --git a/android/assets/jsons/Translations.json b/android/assets/jsons/Translations.json index e0e0436302..5ce62300c0 100644 --- a/android/assets/jsons/Translations.json +++ b/android/assets/jsons/Translations.json @@ -341,6 +341,9 @@ Romanian:"Alege o tehnologie" German:"Technologie auswählen" } + + "Pick a free tech":{ + } "Research [technology]":{ // eg "Research Pottery" Italian:"Ricerca [technology]" @@ -349,6 +352,10 @@ Romanian:"Exploreaza [technology]" German:"[technology] Erforschen" } + + + "Pick [technology] as free tech":{ + } "Units enabled":{ Italian:"Unità abilitate" diff --git a/core/src/com/unciv/logic/city/PopulationManager.kt b/core/src/com/unciv/logic/city/PopulationManager.kt index 1f0f7b1717..c3c1d0b13a 100644 --- a/core/src/com/unciv/logic/city/PopulationManager.kt +++ b/core/src/com/unciv/logic/city/PopulationManager.kt @@ -69,6 +69,10 @@ class PopulationManager { } fun unassignExtraPopulation() { + for(tile in cityInfo.workedTiles.map { cityInfo.tileMap[it] }) + if(tile.getOwner()!=cityInfo.civInfo) + cityInfo.workedTiles.remove(tile.position) + while (cityInfo.workedTiles.size > population) { val lowestRankedWorkedTile = cityInfo.workedTiles .map { cityInfo.tileMap[it] } diff --git a/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt b/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt index 6052f7b5e9..9b2522f13c 100644 --- a/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt +++ b/core/src/com/unciv/ui/pickerscreens/TechPickerScreen.kt @@ -138,15 +138,15 @@ class TechPickerScreen(internal val civInfo: CivilizationInfo) : PickerScreen() while (!prerequisites.isEmpty()) techsToResearch.add(prerequisites.pop()) } - pick("Research [${techsToResearch[0].tr()}]") + pick("Research [${techsToResearch[0]}]".tr()) setButtonsInfo() } private fun selectTechnologyForFreeTech(tech: Technology) { if (researchableTechs.contains(tech.name)) { - pick("Pick [${selectedTech!!.name.tr()}] as free tech") + pick("Pick [${selectedTech!!.name}] as free tech".tr()) } else { - rightSideButton.setText("Pick a free tech") + rightSideButton.setText("Pick a free tech".tr()) rightSideButton.disable() } }