Merge pull request #5012 from Mailaender/cnc-powerdown-regression

Fixed missing disabled overlay for TD defenses
This commit is contained in:
Paul Chote
2014-04-03 21:31:58 +13:00
2 changed files with 16 additions and 3 deletions

View File

@@ -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)
{

View File

@@ -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