mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:51:30 -04:00
debug: More details for destination tile when failing to move to a tile
This commit is contained in:
parent
26bae52508
commit
ebfdbb8c4a
@ -654,7 +654,7 @@ class MapUnit : IsPartOfGameInfoSerialization {
|
|||||||
fun putInTile(tile: Tile) {
|
fun putInTile(tile: Tile) {
|
||||||
when {
|
when {
|
||||||
!movement.canMoveTo(tile) ->
|
!movement.canMoveTo(tile) ->
|
||||||
throw Exception("Unit $name at $currentTile can't be put in tile ${tile.position}!")
|
throw Exception("Unit $name of ${civ.civName} at $currentTile can't be put in tile $tile!")
|
||||||
baseUnit.movesLikeAirUnits() -> tile.airUnits.add(this)
|
baseUnit.movesLikeAirUnits() -> tile.airUnits.add(this)
|
||||||
isCivilian() -> tile.civilianUnit = this
|
isCivilian() -> tile.civilianUnit = this
|
||||||
else -> tile.militaryUnit = this
|
else -> tile.militaryUnit = this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user