Convert AffectedByPowerOutage from disabler to conditional condition granter.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -954,3 +954,12 @@
|
||||
Palette: disabled
|
||||
GrantConditionOnDisabled@IDISABLE:
|
||||
Condition: disabled
|
||||
|
||||
^DisabledByPowerOutage:
|
||||
AffectedByPowerOutage:
|
||||
Condition: power-outage
|
||||
InfiltrateForPowerOutage:
|
||||
DisableOnCondition@POWER_OUTAGE:
|
||||
RequiresCondition: power-outage
|
||||
Power:
|
||||
RequiresCondition: !power-outage
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
GAPOWR:
|
||||
Inherits: ^Building
|
||||
Inherits@IDISABLE: ^DisabledOverlay
|
||||
Inherits@POWER_OUTAGE: ^DisabledByPowerOutage
|
||||
Buildable:
|
||||
Queue: Building
|
||||
BuildPaletteOrder: 10
|
||||
@@ -32,8 +33,6 @@ GAPOWR:
|
||||
Bounds: 90, 48, 0, -6
|
||||
Power:
|
||||
Amount: 100
|
||||
InfiltrateForPowerOutage:
|
||||
AffectedByPowerOutage:
|
||||
PowerTooltip:
|
||||
Targetable:
|
||||
TargetTypes: Ground, C4, DetonateAttack, SpyInfiltrate
|
||||
@@ -43,7 +42,7 @@ GAPOWR:
|
||||
Conditions:
|
||||
powrup: powrup.a
|
||||
Power@pluga:
|
||||
RequiresCondition: powrup.a
|
||||
RequiresCondition: powrup.a && !power-outage
|
||||
Amount: 50
|
||||
WithIdleOverlay@pluga:
|
||||
RequiresCondition: powrup.a
|
||||
@@ -58,7 +57,7 @@ GAPOWR:
|
||||
PauseOnCondition: disabled
|
||||
Sequence: idle-powrupb
|
||||
Power@plugb:
|
||||
RequiresCondition: powrup.b
|
||||
RequiresCondition: powrup.b && !power-outage
|
||||
Amount: 50
|
||||
ProvidesPrerequisite@buildingname:
|
||||
SelectionDecorations:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
NAPOWR:
|
||||
Inherits: ^Building
|
||||
Inherits@IDISABLE: ^DisabledOverlay
|
||||
Inherits@POWER_OUTAGE: ^DisabledByPowerOutage
|
||||
Buildable:
|
||||
Queue: Building
|
||||
BuildPaletteOrder: 20
|
||||
@@ -29,8 +30,6 @@ NAPOWR:
|
||||
Sequence: idle-lights
|
||||
Power:
|
||||
Amount: 100
|
||||
InfiltrateForPowerOutage:
|
||||
AffectedByPowerOutage:
|
||||
Targetable:
|
||||
TargetTypes: Ground, C4, DetonateAttack, SpyInfiltrate
|
||||
ScalePowerWithHealth:
|
||||
@@ -41,6 +40,7 @@ NAPOWR:
|
||||
NAAPWR:
|
||||
Inherits: ^Building
|
||||
Inherits@IDISABLE: ^DisabledOverlay
|
||||
Inherits@POWER_OUTAGE: ^DisabledByPowerOutage
|
||||
Buildable:
|
||||
Queue: Building
|
||||
BuildPaletteOrder: 120
|
||||
@@ -69,8 +69,6 @@ NAAPWR:
|
||||
Sequence: idle-lights
|
||||
Power:
|
||||
Amount: 200
|
||||
InfiltrateForPowerOutage:
|
||||
AffectedByPowerOutage:
|
||||
Targetable:
|
||||
TargetTypes: Ground, C4, DetonateAttack, SpyInfiltrate
|
||||
ScalePowerWithHealth:
|
||||
|
||||
Reference in New Issue
Block a user