Merge pull request #5012 from Mailaender/cnc-powerdown-regression
Fixed missing disabled overlay for TD defenses
This commit is contained in:
@@ -222,6 +222,16 @@ namespace OpenRA.Utility
|
||||
}
|
||||
}
|
||||
|
||||
// "disabled" palette overlay has been moved into it's own DisabledOverlay trait
|
||||
if (engineVersion < 20140305)
|
||||
{
|
||||
if (node.Value.Nodes.Any(n => n.Key.StartsWith("RequiresPower"))
|
||||
&& !node.Value.Nodes.Any(n => n.Key.StartsWith("DisabledOverlay")))
|
||||
{
|
||||
node.Value.Nodes.Add(new MiniYamlNode("DisabledOverlay", new MiniYaml("")));
|
||||
}
|
||||
}
|
||||
|
||||
// ChronoshiftDeploy was replaced with PortableChrono
|
||||
if (engineVersion < 20140321)
|
||||
{
|
||||
|
||||
@@ -543,7 +543,6 @@ GUN:
|
||||
|
||||
SAM:
|
||||
Inherits: ^Building
|
||||
RequiresPower:
|
||||
Valued:
|
||||
Cost: 750
|
||||
CustomBuildTimeValue:
|
||||
@@ -560,6 +559,8 @@ SAM:
|
||||
Power: -20
|
||||
Footprint: xx
|
||||
Dimensions: 2,1
|
||||
RequiresPower:
|
||||
DisabledOverlay:
|
||||
-GivesBuildableArea:
|
||||
Health:
|
||||
HP: 400
|
||||
@@ -581,7 +582,6 @@ SAM:
|
||||
RenderRangeCircle:
|
||||
|
||||
OBLI:
|
||||
RequiresPower:
|
||||
Inherits: ^Building
|
||||
Valued:
|
||||
Cost: 1500
|
||||
@@ -599,6 +599,8 @@ OBLI:
|
||||
Power: -150
|
||||
Footprint: _ x
|
||||
Dimensions: 1,2
|
||||
RequiresPower:
|
||||
DisabledOverlay:
|
||||
-GivesBuildableArea:
|
||||
Health:
|
||||
HP: 600
|
||||
@@ -666,7 +668,6 @@ GTWR:
|
||||
|
||||
ATWR:
|
||||
Inherits: ^Building
|
||||
RequiresPower:
|
||||
Valued:
|
||||
Cost: 1000
|
||||
CustomBuildTimeValue:
|
||||
@@ -683,6 +684,8 @@ ATWR:
|
||||
Power: -40
|
||||
Footprint: _ x
|
||||
Dimensions: 1,2
|
||||
RequiresPower:
|
||||
DisabledOverlay:
|
||||
-GivesBuildableArea:
|
||||
Health:
|
||||
HP: 600
|
||||
|
||||
Reference in New Issue
Block a user