From 87271a0a566b18a80b0a45b8bad913594783acca Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 25 Apr 2012 21:45:38 +1200 Subject: [PATCH] make cloak palette configurable --- OpenRA.Mods.RA/Cloak.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Cloak.cs b/OpenRA.Mods.RA/Cloak.cs index a9ebb58cfd..e01933543b 100644 --- a/OpenRA.Mods.RA/Cloak.cs +++ b/OpenRA.Mods.RA/Cloak.cs @@ -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; }