Don't check modulare actor templates
as the inherited combinations of the actors are of concern.
This commit is contained in:
@@ -31,6 +31,9 @@ namespace OpenRA.Mods.Common.Lint
|
||||
|
||||
foreach (var actorInfo in rules.Actors)
|
||||
{
|
||||
if (actorInfo.Key.StartsWith("^"))
|
||||
continue;
|
||||
|
||||
foreach (var trait in actorInfo.Value.TraitInfos<ITraitInfo>())
|
||||
{
|
||||
var fields = trait.GetType().GetFields();
|
||||
@@ -51,6 +54,9 @@ namespace OpenRA.Mods.Common.Lint
|
||||
// Check all upgrades granted by traits.
|
||||
foreach (var actorInfo in rules.Actors)
|
||||
{
|
||||
if (actorInfo.Key.StartsWith("^"))
|
||||
continue;
|
||||
|
||||
foreach (var trait in actorInfo.Value.TraitInfos<ITraitInfo>())
|
||||
{
|
||||
var fields = trait.GetType().GetFields();
|
||||
|
||||
Reference in New Issue
Block a user