|
|
|
@ -13,11 +13,11 @@ module Charred |
|
|
|
|
lifepaths = {} |
|
|
|
|
resources = {} |
|
|
|
|
stat_pts = {} |
|
|
|
|
stock_objs = {} |
|
|
|
|
stocks = {} |
|
|
|
|
|
|
|
|
|
stocks = ['dwarf', 'elf', 'man', 'orc', 'roden', 'wolf'] |
|
|
|
|
gold_stocks = ['dwarf', 'elf', 'man', 'orc', 'roden', 'wolf'] |
|
|
|
|
|
|
|
|
|
stocks.each do |stock| |
|
|
|
|
gold_stocks.each do |stock| |
|
|
|
|
file = File.read("data/gold/lifepaths/#{stock}.json") |
|
|
|
|
lifepaths[stock] = JSON.parse(file) |
|
|
|
|
|
|
|
|
@ -25,7 +25,7 @@ module Charred |
|
|
|
|
resources[stock] = JSON.parse(file) |
|
|
|
|
|
|
|
|
|
file = File.read("data/gold/stocks/#{stock}.json") |
|
|
|
|
stock_objs[stock] = Stock.new(JSON.parse(file)) |
|
|
|
|
stocks[stock] = Stock.new(JSON.parse(file)) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
data.merge!({ |
|
|
|
@ -34,7 +34,7 @@ module Charred |
|
|
|
|
:lifepaths => lifepaths, |
|
|
|
|
:resources => resources, |
|
|
|
|
:stat_pts => stat_pts, |
|
|
|
|
:stock_objs => stock_objs |
|
|
|
|
:stocks => stocks |
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|