Updates for blueprints

This commit is contained in:
Cmdr McDonald
2017-01-21 23:32:48 +00:00
parent 454fa30884
commit 16266fec29
4 changed files with 7724 additions and 144 deletions

1760
dist/index.js vendored

File diff suppressed because it is too large Load Diff

4517
dist/index.json vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -174,6 +174,17 @@ describe('JSON Data', function() {
const blueprint = Modifications.blueprints[k];
expect(ids[blueprint.id]).toBeFalsy('ID already exists: ' + blueprint.id);
expect(blueprint.name).toBeDefined('Blueprint has no name, ID:' + blueprint.id);
for (var x in blueprint.features) {
var b = blueprint.features[x];
var bfs = {};
for (var bf in b) {
expect(bfs[bf]).toBeFalsy(`Blueprint feature [${bf}] already exists: ${blueprint.name}`);
expect(Modifications.modifications[bf]).toBeDefined(`Blueprint feature [${bf}] uknown: ${blueprint.name}`);
bfs[bf] = true;
}
}
ids[blueprint.id] = true;
}
});
@@ -189,6 +200,7 @@ describe('JSON Data', function() {
expect(modification.method).toBeDefined('Modification has no method, ID:' + modification.id);
ids[modification.id] = true;
}
});
it('has valid specials', function() {