Fix ralint

This commit is contained in:
Paul Chote
2010-08-26 19:24:45 +12:00
parent 8b98448090
commit 3b59afcd4f

View File

@@ -44,7 +44,7 @@ namespace RALint
Rules.LoadRules(Game.modData.Manifest, new Map());
// all the @something names which actually EXIST.
var psuedoPrereqs = Rules.Info.Values.Select(a => a.Traits.GetOrDefault<BuildableInfo>()).Where(b => b != null)
var psuedoPrereqs = Rules.Info.Values.Select(a => a.Traits.GetOrDefault<TooltipInfo>()).Where(b => b != null)
.Select(b => b.AlternateName).Where(n => n != null).SelectMany(a => a).Select(a => a.ToLowerInvariant()).Distinct();
ValidPrereqs = Rules.Info.Keys.Concat(psuedoPrereqs).ToDictionary(a => a, a => 0);