mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
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:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user