mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 14:48:56 +07:00
Resolved #1125 - cities can bombard over all tiles in a radius of 2
This commit is contained in:
@ -115,6 +115,7 @@
|
||||
name:"Oasis",
|
||||
type:"TerrainFeature",
|
||||
food:3,
|
||||
gold:1,
|
||||
movementCost:1,
|
||||
unbuildable:true,
|
||||
defenceBonus: -0.1,
|
||||
|
@ -21,7 +21,7 @@ android {
|
||||
applicationId "com.unciv.app"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 29
|
||||
versionCode 301
|
||||
versionCode 302
|
||||
versionName "3.1.0-patch1"
|
||||
}
|
||||
|
||||
|
@ -231,7 +231,8 @@ class UnitAutomation{
|
||||
}
|
||||
|
||||
fun getBombardTargets(city: CityInfo): List<TileInfo> {
|
||||
return city.getCenterTile().getViewableTiles(city.range).filter { containsAttackableEnemy(it, CityCombatant(city)) }
|
||||
return city.getCenterTile().getViewableTiles(city.range,true)
|
||||
.filter { containsAttackableEnemy(it, CityCombatant(city)) }
|
||||
}
|
||||
|
||||
private fun tryAdvanceTowardsCloseEnemy(unit: MapUnit): Boolean {
|
||||
|
Reference in New Issue
Block a user