System actors can have no traits
This commit is contained in:
committed by
Matthias Mailänder
parent
f0ec8105b3
commit
a66feafa3f
@@ -34,7 +34,7 @@ namespace OpenRA.Mods.Common.Lint
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var hasTraits = actorInfo.Value.TraitsInConstructOrder().Any();
|
var hasTraits = actorInfo.Value.TraitsInConstructOrder().Any();
|
||||||
if (!hasTraits)
|
if (!hasTraits && !Enum.TryParse<SystemActors>(actorInfo.Key, true, out _))
|
||||||
emitWarning($"Actor `{actorInfo.Key}` has no traits. Is this intended?");
|
emitWarning($"Actor `{actorInfo.Key}` has no traits. Is this intended?");
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
Reference in New Issue
Block a user