mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -04:00
console: Can set game turn
This commit is contained in:
parent
a82906bc5f
commit
a0a6fc670d
@ -9,5 +9,12 @@ internal class ConsoleGameCommands : ConsoleCommandNode {
|
||||
console.gameInfo.setTransients()
|
||||
DevConsoleResponse.OK
|
||||
},
|
||||
|
||||
"setturn" to ConsoleAction("game setturn <nonNegativeAmount>") { console, params ->
|
||||
val turn = params[0].toInt()
|
||||
console.gameInfo.turns = turn
|
||||
console.gameInfo.setTransients()
|
||||
DevConsoleResponse.OK
|
||||
},
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user