|
|
@ -292,10 +292,10 @@ function BurningDataService($http) { |
|
|
|
|
|
|
|
|
|
|
|
var myself = this; |
|
|
|
var myself = this; |
|
|
|
var stocks; |
|
|
|
var stocks; |
|
|
|
$http.get("/stock_objs", {'timeout': 3000}). |
|
|
|
$http.get("/stocks", {'timeout': 3000}). |
|
|
|
success(function(data,status,headers,config){ |
|
|
|
success(function(data,status,headers,config){ |
|
|
|
console.log(data); |
|
|
|
console.log(data); |
|
|
|
myself.stock_objs = data; |
|
|
|
myself.stocks = data; |
|
|
|
stocks = Object.keys(data); |
|
|
|
stocks = Object.keys(data); |
|
|
|
for (var i = 0; i < stocks.length; i++) { |
|
|
|
for (var i = 0; i < stocks.length; i++) { |
|
|
|
loadLifepathsForStock(stocks[i]); |
|
|
|
loadLifepathsForStock(stocks[i]); |
|
|
@ -334,7 +334,7 @@ function BurningDataService($http) { |
|
|
|
console.log("Loading starting stat points failed: asked to load pts for invalid stock " + stock); |
|
|
|
console.log("Loading starting stat points failed: asked to load pts for invalid stock " + stock); |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
myself.startingStatPts[stock] = new StartingStatPoints(myself.stock_objs[stock].starting_stats); |
|
|
|
myself.startingStatPts[stock] = new StartingStatPoints(myself.stocks[stock].starting_stats); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Load resources from server */ |
|
|
|
/* Load resources from server */ |
|
|
|