Removed Hydro Plant, since it requires rivers to be useful, and we don't yet have rivers.

This commit is contained in:
Yair Morgenstern
2018-10-28 16:16:47 +02:00
parent 52dc1931cc
commit f86736db6d
3 changed files with 5 additions and 8 deletions

View File

@ -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)