mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
parent
7fb5648aa1
commit
a5e6622414
@ -28,7 +28,7 @@ object UseGoldAutomation {
|
|||||||
if (construction !is INonPerpetualConstruction) continue
|
if (construction !is INonPerpetualConstruction) continue
|
||||||
val statBuyCost = construction.getStatBuyCost(city, Stat.Gold) ?: continue
|
val statBuyCost = construction.getStatBuyCost(city, Stat.Gold) ?: continue
|
||||||
if (!city.cityConstructions.isConstructionPurchaseAllowed(construction, Stat.Gold, statBuyCost)) 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)
|
city.cityConstructions.purchaseConstruction(construction, 0, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user