mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-23 06:08:46 +07:00
Fixed archaeological dig being built by workers in Civ V expansion mod
This commit is contained in:
@ -186,12 +186,14 @@ class WorkerAutomation(val unit: MapUnit) {
|
||||
else -> tile.getTileResource().improvement
|
||||
}
|
||||
|
||||
val uniqueImprovement = civInfo.gameInfo.ruleSet.tileImprovements.values
|
||||
val tileImprovements = civInfo.gameInfo.ruleSet.tileImprovements
|
||||
val uniqueImprovement = tileImprovements.values
|
||||
.firstOrNull { it.uniqueTo==civInfo.civName}
|
||||
|
||||
val improvementString = when {
|
||||
tile.improvementInProgress != null -> tile.improvementInProgress
|
||||
improvementStringForResource != null -> improvementStringForResource
|
||||
improvementStringForResource != null && tileImprovements.containsKey(improvementStringForResource)
|
||||
&& tileImprovements[improvementStringForResource]!!.turnsToBuild!=0 -> improvementStringForResource
|
||||
tile.containsGreatImprovement() -> null
|
||||
tile.containsUnfinishedGreatImprovement() -> null
|
||||
|
||||
|
@ -33,10 +33,8 @@ class MapEditorMenuPopup(var mapEditorScreen: MapEditorScreen): Popup(mapEditorS
|
||||
addSaveMapButton()
|
||||
addCopyMapAsTextButton()
|
||||
addLoadMapButton()
|
||||
addUploadMapButton()
|
||||
if (UncivGame.Current.settings.extendedMapEditor) {
|
||||
addScenarioButton()
|
||||
}
|
||||
// addUploadMapButton()
|
||||
if (UncivGame.Current.settings.extendedMapEditor) addScenarioButton()
|
||||
addExitMapEditorButton()
|
||||
addCloseOptionsButton()
|
||||
}
|
||||
|
Reference in New Issue
Block a user