From 0b03aca10425ee1628001bdc9690deec562aa1f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 12 Jul 2020 13:54:45 +0200 Subject: [PATCH] Fix linter for player palettes. --- OpenRA.Mods.Common/Projectiles/Bullet.cs | 2 +- OpenRA.Mods.Common/Projectiles/Missile.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Projectiles/Bullet.cs b/OpenRA.Mods.Common/Projectiles/Bullet.cs index 0470215d8e..de905bcbc9 100644 --- a/OpenRA.Mods.Common/Projectiles/Bullet.cs +++ b/OpenRA.Mods.Common/Projectiles/Bullet.cs @@ -40,7 +40,7 @@ namespace OpenRA.Mods.Common.Projectiles [Desc("Loop a randomly chosen sequence of Image from this list while this projectile is moving.")] public readonly string[] Sequences = { "idle" }; - [PaletteReference] + [PaletteReference("IsPlayerPalette")] [Desc("The palette used to draw this projectile.")] public readonly string Palette = "effect"; diff --git a/OpenRA.Mods.Common/Projectiles/Missile.cs b/OpenRA.Mods.Common/Projectiles/Missile.cs index eefb52e99e..bea2daa42c 100644 --- a/OpenRA.Mods.Common/Projectiles/Missile.cs +++ b/OpenRA.Mods.Common/Projectiles/Missile.cs @@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Projectiles [Desc("Loop a randomly chosen sequence of Image from this list while this projectile is moving.")] public readonly string[] Sequences = { "idle" }; - [PaletteReference] + [PaletteReference("IsPlayerPalette")] [Desc("Palette used to render the projectile sequence.")] public readonly string Palette = "effect";