From aa061a5bc6a10f2b23c4a55d3f1d9a73b35077f2 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 9 Apr 2016 13:41:08 -0400 Subject: [PATCH] Whitelist lighting and weather traits. --- .../Traits/PaletteEffects/GlobalLightingPaletteEffect.cs | 2 +- OpenRA.Mods.Common/Traits/World/WeatherOverlay.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/PaletteEffects/GlobalLightingPaletteEffect.cs b/OpenRA.Mods.Common/Traits/PaletteEffects/GlobalLightingPaletteEffect.cs index cf8edeed0d..6c8c2fffb4 100644 --- a/OpenRA.Mods.Common/Traits/PaletteEffects/GlobalLightingPaletteEffect.cs +++ b/OpenRA.Mods.Common/Traits/PaletteEffects/GlobalLightingPaletteEffect.cs @@ -17,7 +17,7 @@ using OpenRA.Traits; namespace OpenRA.Mods.Common.Traits { [Desc("Used for day/night effects.")] - class GlobalLightingPaletteEffectInfo : ITraitInfo + class GlobalLightingPaletteEffectInfo : ITraitInfo, ILobbyCustomRulesIgnore { [Desc("Do not modify graphics that use any palette in this list.")] public readonly HashSet ExcludePalettes = new HashSet { "cursor", "chrome", "colorpicker", "fog", "shroud", "alpha" }; diff --git a/OpenRA.Mods.Common/Traits/World/WeatherOverlay.cs b/OpenRA.Mods.Common/Traits/World/WeatherOverlay.cs index 7f96d1e383..88d8c99db8 100644 --- a/OpenRA.Mods.Common/Traits/World/WeatherOverlay.cs +++ b/OpenRA.Mods.Common/Traits/World/WeatherOverlay.cs @@ -17,7 +17,7 @@ using OpenRA.Traits; namespace OpenRA.Mods.Common.Traits { [Desc("Adds a particle-based overlay.")] - public class WeatherOverlayInfo : ITraitInfo + public class WeatherOverlayInfo : ITraitInfo, ILobbyCustomRulesIgnore { [Desc("Factor for particle density. As higher as more particles will get spawned.")] public readonly float ParticleDensityFactor = 0.0007625f;