mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 17:28:57 +07:00
Resolved #885 - units disbanding on your tiles yields gold even when not on city center
This commit is contained in:
@ -21,8 +21,8 @@ android {
|
|||||||
applicationId "com.unciv.app"
|
applicationId "com.unciv.app"
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
versionCode 258
|
versionCode 259
|
||||||
versionName "2.17.7"
|
versionName "2.17.8"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Had to add this crap for Travis to build, it wanted to sign the app
|
// Had to add this crap for Travis to build, it wanted to sign the app
|
||||||
|
@ -473,7 +473,7 @@ class MapUnit {
|
|||||||
|
|
||||||
fun disband(){
|
fun disband(){
|
||||||
destroy()
|
destroy()
|
||||||
if(currentTile.isCityCenter() && currentTile.getOwner()==civInfo)
|
if(currentTile.getOwner()==civInfo)
|
||||||
civInfo.gold += baseUnit.getDisbandGold()
|
civInfo.gold += baseUnit.getDisbandGold()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user