mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-24 18:06:04 +07:00
Disallow wonders from being selected in puppets, even when 'just' choosing best stat building
This commit is contained in:
parent
31f16abbae
commit
2193e24364
@ -256,7 +256,8 @@ object Automation {
|
|||||||
city: City,
|
city: City,
|
||||||
construction: INonPerpetualConstruction
|
construction: INonPerpetualConstruction
|
||||||
): Boolean {
|
): Boolean {
|
||||||
return allowCreateImprovementBuildings(civInfo, city, construction)
|
return !(construction is Building && construction.isWonder && city.isPuppet)
|
||||||
|
&& allowCreateImprovementBuildings(civInfo, city, construction)
|
||||||
&& allowSpendingResource(civInfo, construction, city)
|
&& allowSpendingResource(civInfo, construction, city)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user