mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-13 12:27:40 +07:00
Resolved #1256 - Puppeted cities no longer autobuild units or wonders
This commit is contained in:
parent
1f8db38ea2
commit
f4c20792ae
@ -57,11 +57,14 @@ class ConstructionAutomation(val cityConstructions: CityConstructions){
|
||||
addHappinessBuildingChoice()
|
||||
addDefenceBuildingChoice()
|
||||
addUnitTrainingBuildingChoice()
|
||||
addWondersChoice()
|
||||
addCultureBuildingChoice()
|
||||
addWorkerChoice()
|
||||
addWorkBoatChoice()
|
||||
addMilitaryUnitChoice()
|
||||
|
||||
if(!cityInfo.isPuppet) {
|
||||
addWondersChoice()
|
||||
addWorkerChoice()
|
||||
addWorkBoatChoice()
|
||||
addMilitaryUnitChoice()
|
||||
}
|
||||
|
||||
val production = cityInfo.cityStats.currentCityStats.production
|
||||
|
||||
|
@ -327,6 +327,7 @@ class CityInfo {
|
||||
isPuppet = true
|
||||
health = getMaxHealth() / 2 // I think that cities recover to half health when conquered?
|
||||
cityStats.update()
|
||||
cityConstructions.chooseNextConstruction() // The city could be producing something that puppets shouldn't, like units
|
||||
}
|
||||
|
||||
private fun diplomaticRepercussionsForConqueringCity(oldCiv: CivilizationInfo, conqueringCiv: CivilizationInfo) {
|
||||
|
Loading…
Reference in New Issue
Block a user