mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-24 18:06:04 +07:00
Defeat improvements (#1654)
* Fix: civilization not being destroyed when disbanding the initial settler * Fix: destroyed unit providing visibility until the end of the turn
This commit is contained in:
parent
fd5d38fb01
commit
c37ea14df5
@ -416,6 +416,7 @@ class MapUnit {
|
||||
fun destroy(){
|
||||
removeFromTile()
|
||||
civInfo.removeUnit(this)
|
||||
civInfo.updateViewableTiles()
|
||||
}
|
||||
|
||||
fun removeFromTile(){
|
||||
@ -470,6 +471,7 @@ class MapUnit {
|
||||
destroy()
|
||||
if(currentTile.getOwner()==civInfo)
|
||||
civInfo.gold += baseUnit.getDisbandGold()
|
||||
if (civInfo.isDefeated()) civInfo.destroy()
|
||||
}
|
||||
|
||||
private fun getAncientRuinBonus(tile: TileInfo) {
|
||||
|
Loading…
Reference in New Issue
Block a user