make cloak palette configurable

This commit is contained in:
Chris Forbes
2012-04-25 21:45:38 +12:00
parent dadc496c19
commit 87271a0a56

View File

@@ -22,6 +22,7 @@ namespace OpenRA.Mods.RA
public int CloakDelay = 30; // Ticks
public string CloakSound = "subshow1.aud";
public string UncloakSound = "subshow1.aud";
public readonly string Palette = "shadow";
public object Create(ActorInitializer init) { return new Cloak(init.self, this); }
}
@@ -70,7 +71,7 @@ namespace OpenRA.Mods.RA
return rs;
if (Cloaked && IsVisible(self))
return rs.Select(a => a.WithPalette("shadow"));
return rs.Select(a => a.WithPalette(info.Palette));
else
return Nothing;
}