@ -24,9 +24,6 @@ module Charred
file = File.read("data/gold/resources/#{stock}.json")
resources[stock] = JSON.parse(file)
file = File.read("data/gold/starting_stat_pts/#{stock}.json")
stat_pts[stock] = JSON.parse(file)
file = File.read("data/gold/stocks/#{stock}.json")
stock_objs[stock] = Stock.new(JSON.parse(file))
end
@ -22,10 +22,6 @@ module Charred
resources = JSON.parse(file)
data[:resources]['troll'] = resources
file = File.read("data/troll/starting_stat_pts.json")
stats = JSON.parse(file)
data[:stat_pts]['troll'] = stats
file = File.read("data/troll/stock.json")
stock = JSON.parse(file)
data[:stock_objs]['troll'] = Stock.new(stock)
@ -334,7 +334,7 @@ function BurningDataService($http) {
console.log("Loading starting stat points failed: asked to load pts for invalid stock " + stock);
return
}
myself.startingStatPts[stock] = new StartingStatPoints(myself.stock_objs[stock]);
myself.startingStatPts[stock] = new StartingStatPoints(myself.stock_objs[stock].starting_stats);
/* Load resources from server */