|
|
|
@ -12,13 +12,13 @@ module Charred |
|
|
|
|
verbose_merge data[:traits], json_get(file) |
|
|
|
|
when ".stock" |
|
|
|
|
stock = Stock.new(json_get(file)) |
|
|
|
|
put_or_merge data[:stocks], stock.key, stock |
|
|
|
|
data[:stocks].deep_merge!({ stock.key => stock }) |
|
|
|
|
when ".lifepaths" |
|
|
|
|
contents = json_get(file) |
|
|
|
|
put_or_merge data[:lifepaths], contents["stock"], contents["settings"] |
|
|
|
|
data[:lifepaths].deep_merge!({ contents["stock"] => contents["settings"]}) |
|
|
|
|
when ".resources" |
|
|
|
|
contents = json_get(file) |
|
|
|
|
put_or_merge data[:resources], contents["stock"], contents["resources"] |
|
|
|
|
data[:resources].deep_merge!({ contents["stock"] => contents["resources"]}) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
} |
|
|
|
|