diff --git a/desktop/src/com/unciv/app/desktop/ConsoleLauncher.kt b/desktop/src/com/unciv/app/desktop/ConsoleLauncher.kt index 0ea2383d0e..52969fd390 100644 --- a/desktop/src/com/unciv/app/desktop/ConsoleLauncher.kt +++ b/desktop/src/com/unciv/app/desktop/ConsoleLauncher.kt @@ -71,15 +71,14 @@ internal object ConsoleLauncher { } } - private fun getGameParameters(civilization1: String, civilization2: String): GameParameters { + private fun getGameParameters(vararg civilizations: String): GameParameters { return GameParameters().apply { difficulty = "Prince" numberOfCityStates = 0 speed = Speed.DEFAULT noBarbarians = true players = ArrayList().apply { - add(Player(civilization1)) - add(Player(civilization2)) + civilizations.forEach { add(Player(it)) } add(Player(Constants.spectator, PlayerType.Human)) } }