mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-23 06:08:46 +07:00
Removed Hydro Plant, since it requires rivers to be useful, and we don't yet have rivers.
This commit is contained in:
@ -37,6 +37,10 @@ class UnCivGame : Game() {
|
||||
}
|
||||
|
||||
fun loadGame(gameInfo:GameInfo){
|
||||
// As of 2.9.6, removed hydro plat, since it requires rivers, which we do not yet have
|
||||
gameInfo.civilizations.flatMap { it.cities }.map { it.cityConstructions }
|
||||
.forEach{if("Hydro Plant" in it.builtBuildings) it.builtBuildings.remove("Hydro Plant")}
|
||||
|
||||
this.gameInfo = gameInfo
|
||||
if(settings.tutorialsShown.isEmpty() && this.gameInfo.tutorial.isNotEmpty())
|
||||
settings.tutorialsShown.addAll(this.gameInfo.tutorial)
|
||||
|
Reference in New Issue
Block a user