mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 23:40:01 +07:00
Fixed bug where you could buy the same buildings multiple times - thanks vita10g!
This commit is contained in:
@ -21,8 +21,8 @@ android {
|
||||
applicationId "com.unciv.game"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 26
|
||||
versionCode 116
|
||||
versionName "2.7.4"
|
||||
versionCode 117
|
||||
versionName "2.7.5"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
|
@ -146,7 +146,10 @@ class CityConstructions {
|
||||
fun purchaseBuilding(buildingName: String) {
|
||||
cityInfo.civInfo.gold -= getConstruction(buildingName).getGoldCost(cityInfo.civInfo.policies.adoptedPolicies)
|
||||
getConstruction(buildingName).postBuildEvent(this)
|
||||
if (currentConstruction == buildingName) Automation().chooseNextConstruction(this)
|
||||
if (currentConstruction == buildingName) {
|
||||
currentConstruction=""
|
||||
Automation().chooseNextConstruction(this)
|
||||
}
|
||||
cityInfo.cityStats.update()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user