mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 11:34:54 -04:00
parent
7fb5648aa1
commit
a5e6622414
@ -28,7 +28,7 @@ object UseGoldAutomation {
|
||||
if (construction !is INonPerpetualConstruction) continue
|
||||
val statBuyCost = construction.getStatBuyCost(city, Stat.Gold) ?: continue
|
||||
if (!city.cityConstructions.isConstructionPurchaseAllowed(construction, Stat.Gold, statBuyCost)) continue
|
||||
if (civ.gold < statBuyCost / 3) continue
|
||||
if (civ.gold < statBuyCost * 3) continue
|
||||
city.cityConstructions.purchaseConstruction(construction, 0, true)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user