Make Guided Missile Free (and Maintenance overhaul) (#5698)

* Add new UniqueType.NoMaintenance to support Guided Missile

* revert gradle
Add UnitMaintenanceDiscount
Rename UnitMaintenanceDiscount->UnitMaintenanceDiscountGlobal
Rework maintenance equation to account for overlapping reductions
Add maintenance variable to MapUnit

* Add square brackets in string (apparently didn't check in?)
More robust uniques check code so not assuming only one matching unique
Use toPercent()

* Proper toPercent() math

Co-authored-by: temurakami <spellman23@gmail.com>
This commit is contained in:
itanasi
2021-11-22 08:21:34 -08:00
committed by GitHub
parent 14c4f2d570
commit b72a2c3ebb
5 changed files with 28 additions and 11 deletions

View File

@ -1474,6 +1474,7 @@
"range": 8,
"cost": 150,
"requiredTech": "Advanced Ballistics",
"uniques": ["[-100]% maintenance costs"],
"attackSound": "missile"
},
{

View File

@ -1147,6 +1147,7 @@
"range": 8,
"cost": 150,
"requiredTech": "Satellites",
"uniques": ["[-100]% maintenance costs"],
"attackSound": "missile"
},
{