mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-28 21:58:54 +07:00
Merge pull request #308 from ninjatao/fix_free_building
Free culture building now generates culture. Add map size option.
This commit is contained in:
@ -188,9 +188,11 @@ class CityConstructions {
|
||||
fun addCultureBuilding() {
|
||||
val cultureBuildingToBuild = listOf("Monument", "Temple", "Opera House", "Museum").firstOrNull { !builtBuildings.contains(it) }
|
||||
if (cultureBuildingToBuild == null) return
|
||||
builtBuildings.add(cultureBuildingToBuild)
|
||||
if (currentConstruction == cultureBuildingToBuild)
|
||||
addBuilding(cultureBuildingToBuild)
|
||||
if (currentConstruction == cultureBuildingToBuild) {
|
||||
currentConstruction=""
|
||||
Automation().chooseNextConstruction(this)
|
||||
}
|
||||
}
|
||||
|
||||
fun chooseNextConstruction() {
|
||||
|
@ -112,7 +112,8 @@ class NewGameScreen: PickerScreen(){
|
||||
|
||||
newGameOptionsTable.add("{World size}:".tr())
|
||||
val worldSizeToRadius = LinkedHashMap<String, Int>()
|
||||
worldSizeToRadius["Small"] = 10
|
||||
worldSizeToRadius["Tiny"] = 10
|
||||
worldSizeToRadius["Small"] = 15
|
||||
worldSizeToRadius["Medium"] = 20
|
||||
worldSizeToRadius["Large"] = 30
|
||||
worldSizeToRadius["Huge"] = 40
|
||||
|
Reference in New Issue
Block a user