mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 03:18:18 +07:00
Resolved #410 - land units on lake aren't shown as embarked
This commit is contained in:
parent
eeb494364b
commit
c282ffb423
Binary file not shown.
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 3.3 KiB |
@ -503,6 +503,8 @@
|
||||
Simplified_Chinese:"社会政策"
|
||||
Portuguese:"Políticas sociais"
|
||||
}
|
||||
|
||||
"Options":{}
|
||||
|
||||
"Display options":{
|
||||
Italian:"Opzioni"
|
||||
|
@ -7,6 +7,7 @@ import com.unciv.logic.automation.WorkerAutomation
|
||||
import com.unciv.logic.civilization.CivilizationInfo
|
||||
import com.unciv.models.gamebasics.GameBasics
|
||||
import com.unciv.models.gamebasics.tech.TechEra
|
||||
import com.unciv.models.gamebasics.tile.TerrainType
|
||||
import com.unciv.models.gamebasics.unit.BaseUnit
|
||||
import com.unciv.models.gamebasics.unit.UnitType
|
||||
import com.unciv.ui.utils.getRandom
|
||||
@ -189,7 +190,7 @@ class MapUnit {
|
||||
|
||||
fun isEmbarked(): Boolean {
|
||||
if(!type.isLandUnit()) return false
|
||||
return currentTile.baseTerrain=="Ocean"||currentTile.baseTerrain=="Coast"
|
||||
return currentTile.getBaseTerrain().type==TerrainType.Water
|
||||
}
|
||||
|
||||
fun isInvisible(): Boolean {
|
||||
|
Loading…
Reference in New Issue
Block a user