slight text adjustment
This commit is contained in:
@@ -158,7 +158,7 @@ namespace Content.IntegrationTests.Tests
|
|||||||
|
|
||||||
Assert.That(postMapInit, Is.False, $"Map {map.Filename} was saved postmapinit");
|
Assert.That(postMapInit, Is.False, $"Map {map.Filename} was saved postmapinit");
|
||||||
|
|
||||||
// testing that maps have nothing with the "DO NOT MAP" suffix
|
// testing that maps have nothing with the DoNotMap entity category
|
||||||
// I do it here because it's basically copy-paste code for the most part
|
// I do it here because it's basically copy-paste code for the most part
|
||||||
var yamlEntities = root["entities"];
|
var yamlEntities = root["entities"];
|
||||||
if (!protoManager.TryIndex<EntityCategoryPrototype>("DoNotMap", out var dnmCategory))
|
if (!protoManager.TryIndex<EntityCategoryPrototype>("DoNotMap", out var dnmCategory))
|
||||||
@@ -171,7 +171,7 @@ namespace Content.IntegrationTests.Tests
|
|||||||
continue;
|
continue;
|
||||||
if (proto.Categories.Contains(dnmCategory) && !DoNotMapWhitelist.Contains(map.ToString()))
|
if (proto.Categories.Contains(dnmCategory) && !DoNotMapWhitelist.Contains(map.ToString()))
|
||||||
{
|
{
|
||||||
Assert.Fail($"\nMap {map} has the DO NOT MAP prototype {proto.Name}");
|
Assert.Fail($"\nMap {map} has the DO NOT MAP category in prototype {proto.Name}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user