Skip to content

Commit

Permalink
Resolved #2137 - Fixed worker automation for snow tiles, AND settler …
Browse files Browse the repository at this point in the history
…automation fix
  • Loading branch information
yairm210 committed Mar 12, 2020
1 parent c64b359 commit d8d74b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ allprojects {
version = '1.0.1'
ext {
appName = "Unciv"
appCodeNumber = 393
appVersion = "3.6.7"
appCodeNumber = 394
appVersion = "3.6.7-patch1"

gdxVersion = '1.9.10'
roboVMVersion = '2.3.1'
Expand Down
2 changes: 1 addition & 1 deletion core/src/com/unciv/logic/automation/WorkerAutomation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class WorkerAutomation(val unit: MapUnit) {
tile.baseTerrain == Constants.hill -> "Mine"
tile.baseTerrain in listOf(Constants.grassland,Constants.desert,Constants.plains) -> "Farm"
tile.baseTerrain == Constants.tundra -> "Trading post"
else -> throw Exception("No improvement found for "+tile.baseTerrain)
else -> null
}
if (improvementString == null) return null
return unit.civInfo.gameInfo.ruleSet.tileImprovements[improvementString]!!
Expand Down
2 changes: 1 addition & 1 deletion core/src/com/unciv/ui/worldscreen/unit/UnitActions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ object UnitActions {
}

fun getFoundCityAction(unit:MapUnit, tile: TileInfo): UnitAction? {
if (!unit.hasUnique("Founds a new city") || unit.isEmbarked()) return null
if (!unit.hasUnique("Founds a new city") || tile.isWater) return null
return UnitAction(
type = UnitActionType.FoundCity,
uncivSound = UncivSound.Chimes,
Expand Down

0 comments on commit d8d74b6

Please sign in to comment.