Remove default building capture type.

This commit is contained in:
Paul Chote
2018-09-29 22:33:13 +01:00
committed by abcdefg30
parent e50b0b193d
commit 132268bc49
2 changed files with 4 additions and 2 deletions

View File

@@ -17,8 +17,9 @@ namespace OpenRA.Mods.Common.Traits
[Desc("This actor can be captured by a unit with Captures: trait.")] [Desc("This actor can be captured by a unit with Captures: trait.")]
public class CapturableInfo : ConditionalTraitInfo, Requires<CaptureManagerInfo> public class CapturableInfo : ConditionalTraitInfo, Requires<CaptureManagerInfo>
{ {
[FieldLoader.Require]
[Desc("CaptureTypes (from the Captures trait) that are able to capture this.")] [Desc("CaptureTypes (from the Captures trait) that are able to capture this.")]
public readonly BitSet<CaptureType> Types = new BitSet<CaptureType>("building"); public readonly BitSet<CaptureType> Types = default(BitSet<CaptureType>);
[Desc("What diplomatic stances can be captured by this actor.")] [Desc("What diplomatic stances can be captured by this actor.")]
public readonly Stance ValidStances = Stance.Neutral | Stance.Enemy; public readonly Stance ValidStances = Stance.Neutral | Stance.Enemy;

View File

@@ -22,8 +22,9 @@ namespace OpenRA.Mods.Common.Traits
[Desc("This actor can capture other actors which have the Capturable: trait.")] [Desc("This actor can capture other actors which have the Capturable: trait.")]
public class CapturesInfo : ConditionalTraitInfo, Requires<CaptureManagerInfo> public class CapturesInfo : ConditionalTraitInfo, Requires<CaptureManagerInfo>
{ {
[FieldLoader.Require]
[Desc("Types of actors that it can capture, as long as the type also exists in the Capturable Type: trait.")] [Desc("Types of actors that it can capture, as long as the type also exists in the Capturable Type: trait.")]
public readonly BitSet<CaptureType> CaptureTypes = new BitSet<CaptureType>("building"); public readonly BitSet<CaptureType> CaptureTypes = default(BitSet<CaptureType>);
[Desc("Targets with health above this percentage will be sabotaged instead of captured.", [Desc("Targets with health above this percentage will be sabotaged instead of captured.",
"Set to 0 to disable sabotaging.")] "Set to 0 to disable sabotaging.")]