Skip to content

Commit

Permalink
add collectible list
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 24, 2016
1 parent 37de2b4 commit f6d575f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -3,7 +3,8 @@
"version": "0.0.0",
"description": "Maps for IdleLands",
"scripts": {
"test": "npm run verify:all",
"test": "npm run verify:all && npm run list:all",
"list:all": "node test/list/_all",
"verify:all": "node test/verify/_all",
"analysis:all": "node test/analysis/_all"
},
Expand Down
1 change: 1 addition & 0 deletions test/list/_all.js
@@ -0,0 +1 @@
require('./collectible');
15 changes: 15 additions & 0 deletions test/list/collectible.js
@@ -0,0 +1,15 @@

console.log("travis_fold:start:list_collectibles");

const _ = require('lodash');
const dataAggregator = require("../data-aggregator");
const collectibleObjs = dataAggregator.collectibleObjs;

console.log(`Collectible List (${collectibleObjs.length})`);

_.each(_.sortBy(collectibleObjs, 'name'), obj => {
var storyline = obj.properties ? obj.properties.storyline : obj.storyline;
console.log(obj.name, '\t|\t', storyline, '\t|\t', obj.origin);
});

console.log("travis_fold:end:list_collectibles");

0 comments on commit f6d575f

Please sign in to comment.