allow the cloak palette to stay empty and use it for mines

This commit is contained in:
Matthias Mailänder
2013-04-08 19:14:31 +02:00
parent 5ba899088c
commit e7e74aac3c
2 changed files with 7 additions and 2 deletions

View File

@@ -74,7 +74,10 @@ namespace OpenRA.Mods.RA
return r;
if (Cloaked && IsVisible(self.World.RenderedShroud, self))
return r.Select(a => a.WithPalette(wr.Palette(info.Palette)));
if (string.IsNullOrEmpty(info.Palette))
return r;
else
return r.Select(a => a.WithPalette(wr.Palette(info.Palette)));
else
return Nothing;
}

View File

@@ -640,6 +640,7 @@ MINP:
Cloak:
CloakSound:
UncloakSound:
Palette:
Tooltip:
Name: Anti-Personnel Mine
Icon: jmin
@@ -659,6 +660,7 @@ MINV:
Cloak:
CloakSound:
UncloakSound:
Palette:
Tooltip:
Name: Anti-Tank Mine
Icon: jmin
@@ -732,7 +734,7 @@ CAMERA:
Health:
HP:1000
RevealsShroud:
Range: 10
Range: 10
ProximityCaptor:
Types:Camera