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

@ -75,6 +75,7 @@ object Constants {
const val rising = "Rising"
const val lowering = "Lowering"
const val remove = "Remove "
const val repair = "Repair"
const val uniqueOrDelimiter = "\" OR \""