mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 02:40:41 +07:00
debug: More details for destination tile when failing to move to a tile
This commit is contained in:
@ -654,7 +654,7 @@ class MapUnit : IsPartOfGameInfoSerialization {
|
||||
fun putInTile(tile: Tile) {
|
||||
when {
|
||||
!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)
|
||||
isCivilian() -> tile.civilianUnit = this
|
||||
else -> tile.militaryUnit = this
|
||||
|
Reference in New Issue
Block a user