Use typed item category tokens
This commit is contained in:
parent
07528a7d17
commit
2de9a0f93b
156 changed files with 320 additions and 283 deletions
|
|
@ -102,12 +102,23 @@ var dockingBayMaxSizeItems = items.Count(item =>
|
|||
var describedCorporations = corporations.Count(corporation => !string.IsNullOrWhiteSpace(corporation.Description));
|
||||
var corporationNameLinks = corporations.Count(corporation => !string.IsNullOrWhiteSpace(corporation.GeonameFileLegacyId));
|
||||
var corporationAllegianceEdges = corporations.Sum(corporation => corporation.Allegiances.Length);
|
||||
var legacyDtoCategories = items
|
||||
.Where(item => item.Category.EndsWith("Data", StringComparison.Ordinal))
|
||||
.Select(item => $"{item.Name}:{item.Category}")
|
||||
.ToArray();
|
||||
|
||||
if (pricedItems == 0)
|
||||
{
|
||||
throw new InvalidOperationException("Typed item definitions did not import any prices.");
|
||||
}
|
||||
|
||||
if (legacyDtoCategories.Length > 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Typed item categories still contain legacy DTO class names: " +
|
||||
string.Join(", ", legacyDtoCategories.Take(5)));
|
||||
}
|
||||
|
||||
if (manufacturedItems == 0)
|
||||
{
|
||||
throw new InvalidOperationException("Typed item definitions did not import any manufacturer legacy IDs.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue