diff options
Diffstat (limited to 'util/generate_gamedata.rb')
-rw-r--r-- | util/generate_gamedata.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/generate_gamedata.rb b/util/generate_gamedata.rb index e130572..5e03655 100644 --- a/util/generate_gamedata.rb +++ b/util/generate_gamedata.rb | |||
@@ -34,6 +34,7 @@ config.each do |room_name, room_data| | |||
34 | 34 | ||
35 | ret = {} | 35 | ret = {} |
36 | ret["id"] = "\"#{panel["id"]}\"" | 36 | ret["id"] = "\"#{panel["id"]}\"" |
37 | ret["loc"] = location_id | ||
37 | if panel.include? "colors" | 38 | if panel.include? "colors" |
38 | if panel["colors"].kind_of? String | 39 | if panel["colors"].kind_of? String |
39 | ret["color"] = "[\"#{panel["colors"]}\"]" | 40 | ret["color"] = "[\"#{panel["colors"]}\"]" |
@@ -62,6 +63,9 @@ config.each do |room_name, room_data| | |||
62 | if panel.include? "achievement" | 63 | if panel.include? "achievement" |
63 | ret["achievement"] = "\"#{panel["achievement"]}\"" | 64 | ret["achievement"] = "\"#{panel["achievement"]}\"" |
64 | end | 65 | end |
66 | if panel.include? "hunt" and panel["hunt"] | ||
67 | ret["hunt"] = "true" | ||
68 | end | ||
65 | panel_output << ret | 69 | panel_output << ret |
66 | 70 | ||
67 | panel_ids_by_location_id[location_id] = [panel["id"]] | 71 | panel_ids_by_location_id[location_id] = [panel["id"]] |