mirror of
https://github.com/RussellChamp/GrimoireJS.git
synced 2026-10-27 22:42:32 +00:00
Changed spec, fixed price in crb wondrous
This commit is contained in:
1 parent
ad5c5d98b4
commit
9dc29c865c
3 files changed
+7
-4
No files matched your search
+5
-2
@@ -74,14 +74,17 @@ WEIGHTS[QUALITIES.MAJOR] = {
|
||||
//Contains all the source info
|
||||
var Grimoire = function(config) { // jshint ignore:line
|
||||
var self = this;
|
||||
config = config || {};
|
||||
this.chance = (config && config.chance ? config.chance : config && config.seed ? new Chance(config.seed) : new Chance());
|
||||
|
||||
this.SOURCES = [];
|
||||
$.ajaxSetup({
|
||||
async: false //A project that works now is better than one that doesn't exist.
|
||||
async: (config.async !== undefined) ? config.async : true
|
||||
//A project that works now is better than one that doesn't exist.
|
||||
//I MUST come back and revisit this with promises later
|
||||
});
|
||||
$.getJSON('./data/sources.json', function(sources) {
|
||||
var baseDir = config.baseDir ? config.baseDir : './sources/';
|
||||
$.getJSON(baseDir + 'sources.json', function(sources) {
|
||||
sources.sources.forEach(function(url) {
|
||||
$.getJSON(url, function(source) {
|
||||
console.log('loaded '+ url);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
'use strict';
|
||||
|
||||
describe('Sources', function() {
|
||||
var grimoire = new Grimoire();
|
||||
var grimoire = new Grimoire({async: false, baseDir: './sources/'});
|
||||
it('should load sources', function() {
|
||||
expect(grimoire.SOURCES).toBeTruthy();
|
||||
});
|
||||
|
||||
@@ -250,7 +250,7 @@
|
||||
{ "name" : "Tome of clear thought +1", "cost" : 27500, "url" : "" },
|
||||
{ "name" : "Tome of leadership and influence +1", "cost" : 27500,
|
||||
"url" : "" },
|
||||
{ "name" : "Tome of understanding +1", "cost" : 2750, "url" : "" }],
|
||||
{ "name" : "Tome of understanding +1", "cost" : 27500, "url" : "" }],
|
||||
"major": [
|
||||
{ "name" : "Dimensional shackles", "cost" : 28000,
|
||||
"url" : "#dimensional-shackles" },
|
||||
|
||||
Reference in new issue
Block a user