From 132268bc496c5b7d1dcb22297d070fd7dbec335b Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 29 Sep 2018 22:33:13 +0100 Subject: [PATCH] Remove default building capture type. --- OpenRA.Mods.Common/Traits/Capturable.cs | 3 ++- OpenRA.Mods.Common/Traits/Captures.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Capturable.cs b/OpenRA.Mods.Common/Traits/Capturable.cs index 27b4be205e..5108627d1b 100644 --- a/OpenRA.Mods.Common/Traits/Capturable.cs +++ b/OpenRA.Mods.Common/Traits/Capturable.cs @@ -17,8 +17,9 @@ namespace OpenRA.Mods.Common.Traits [Desc("This actor can be captured by a unit with Captures: trait.")] public class CapturableInfo : ConditionalTraitInfo, Requires { + [FieldLoader.Require] [Desc("CaptureTypes (from the Captures trait) that are able to capture this.")] - public readonly BitSet Types = new BitSet("building"); + public readonly BitSet Types = default(BitSet); [Desc("What diplomatic stances can be captured by this actor.")] public readonly Stance ValidStances = Stance.Neutral | Stance.Enemy; diff --git a/OpenRA.Mods.Common/Traits/Captures.cs b/OpenRA.Mods.Common/Traits/Captures.cs index 40d13fde67..8950eddc63 100644 --- a/OpenRA.Mods.Common/Traits/Captures.cs +++ b/OpenRA.Mods.Common/Traits/Captures.cs @@ -22,8 +22,9 @@ namespace OpenRA.Mods.Common.Traits [Desc("This actor can capture other actors which have the Capturable: trait.")] public class CapturesInfo : ConditionalTraitInfo, Requires { + [FieldLoader.Require] [Desc("Types of actors that it can capture, as long as the type also exists in the Capturable Type: trait.")] - public readonly BitSet CaptureTypes = new BitSet("building"); + public readonly BitSet CaptureTypes = default(BitSet); [Desc("Targets with health above this percentage will be sabotaged instead of captured.", "Set to 0 to disable sabotaging.")]