From 60195e2842ea4ccdb664d5372ad21653afed9441 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 1 Jan 2021 23:29:33 +0000 Subject: [PATCH] Prevent Health: 100 from being added to actors. --- OpenRA.Mods.Common/Traits/World/EditorActorPreview.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenRA.Mods.Common/Traits/World/EditorActorPreview.cs b/OpenRA.Mods.Common/Traits/World/EditorActorPreview.cs index 2cad5cf300..1d682d8f08 100644 --- a/OpenRA.Mods.Common/Traits/World/EditorActorPreview.cs +++ b/OpenRA.Mods.Common/Traits/World/EditorActorPreview.cs @@ -214,6 +214,10 @@ namespace OpenRA.Mods.Common.Traits if (factionInit != null && factionInit.Value == Owner.Faction) return false; + var healthInit = init as HealthInit; + if (healthInit != null && healthInit.Value == 100) + return false; + // TODO: Other default values will need to be filtered // here after we have built a properties panel return true;