make cloak palette configurable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user