Add Repair and Pillaging Roads (#8015)

* Reapply Changes

* Logic clean up

* Adding getImprovementToPillage() and getRepairableImprovement()

* Cleaning up Unit Actions

* getImprovementToPillage() needs to check for Unpillagable

* Remove redundant logic since canBuildImprovement() returns true if currently repairing

* More redundant logic

* Prevent City Center from being Pillage status
addRepairAction will not show a Repair Action
Adding the improvement to be repaired/pillaged in button text
Utilizing getImprovementToPillage() more

* Some import cleanup
Add Irremovable to blockers
More consolidation of code

* More translation files

* When improvements/roads are built/removed, pillaged flag set to False

* Better and more consistent logic

* Fix dumb logic bug
This commit is contained in:
itanasi
2022-11-27 09:12:26 -08:00
committed by GitHub
parent 51985622f2
commit 16a7eed4ff
54 changed files with 625 additions and 93 deletions

View File

@ -176,6 +176,15 @@
"uniques": ["Can be built outside your borders"],
"shortcutKey": "."
},
// Purely for turnsToBuild and civilopediaText. Unbuildable so it doesn't show in ImprovementPicker
{
"name": "Repair",
"terrainsCanBeBuiltOn": ["Land"],
"turnsToBuild": 2,
"uniques": ["Unbuildable"],
"shortcutKey": "E",
"civilopediaText": [{"text":"Repairs a pillaged Improvement or Route"}]
},
// Great Person improvements
{