Convert AffectedByPowerOutage from disabler to conditional condition granter.

This commit is contained in:
atlimit8
2017-03-16 16:16:23 -05:00
parent 61b84e0c5a
commit 0dfdea1826
7 changed files with 65 additions and 25 deletions

View File

@@ -933,3 +933,12 @@
Palette: disabled
GrantConditionOnDisabled@IDISABLE:
Condition: disabled
^DisabledByPowerOutage:
AffectedByPowerOutage:
Condition: power-outage
InfiltrateForPowerOutage:
DisableOnCondition@POWER_OUTAGE:
RequiresCondition: power-outage
Power:
RequiresCondition: !power-outage

View File

@@ -1304,6 +1304,7 @@ AFLD:
POWR:
Inherits: ^Building
Inherits@IDISABLE: ^DisabledOverlay
Inherits@POWER_OUTAGE: ^DisabledByPowerOutage
Buildable:
Queue: Building
BuildPaletteOrder: 10
@@ -1327,8 +1328,6 @@ POWR:
Bib:
Power:
Amount: 100
InfiltrateForPowerOutage:
AffectedByPowerOutage:
Targetable:
TargetTypes: Ground, Structure, C4, DetonateAttack, SpyInfiltrate
ScalePowerWithHealth:
@@ -1339,6 +1338,7 @@ POWR:
APWR:
Inherits: ^Building
Inherits@IDISABLE: ^DisabledOverlay
Inherits@POWER_OUTAGE: ^DisabledByPowerOutage
Buildable:
Queue: Building
BuildPaletteOrder: 110
@@ -1366,8 +1366,6 @@ APWR:
Bib:
Power:
Amount: 200
InfiltrateForPowerOutage:
AffectedByPowerOutage:
Targetable:
TargetTypes: Ground, Structure, C4, DetonateAttack, SpyInfiltrate
ScalePowerWithHealth: