Rename UpgradableTrait to ConditionalTrait.
This commit is contained in:
@@ -15,7 +15,7 @@ using OpenRA.Traits;
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Can be used to make a unit partly uncontrollable by the player.")]
|
||||
public class RejectsOrdersInfo : UpgradableTraitInfo
|
||||
public class RejectsOrdersInfo : ConditionalTraitInfo
|
||||
{
|
||||
[Desc("Possible values include Attack, AttackMove, Guard, Move.")]
|
||||
public readonly HashSet<string> Except = new HashSet<string>();
|
||||
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public override object Create(ActorInitializer init) { return new RejectsOrders(this); }
|
||||
}
|
||||
|
||||
public class RejectsOrders : UpgradableTrait<RejectsOrdersInfo>
|
||||
public class RejectsOrders : ConditionalTrait<RejectsOrdersInfo>
|
||||
{
|
||||
public HashSet<string> Except { get { return Info.Except; } }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user