Fixed some code referencing starting starts

Daniel Asher Resnick 2 years ago
parent 941e635b84
commit 6e3ba97f57
  1. 3
      src/lib/data/gold.rb
  2. 4
      src/lib/data/troll.rb
  3. 2
      src/public/js/burning-service.js

@ -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 */

Loading…
Cancel
Save