diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-17 11:44:08 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-17 11:44:08 -0500 |
commit | e0ffa141c91e40171c367a2aca777d22be824c98 (patch) | |
tree | 1c889df4a49b250a05d40f9abc51d7d5054a2700 /util/generate_gamedata.rb | |
parent | 9c263e6a40fbd9a19eb7bf1f2490e5b8b99ccd0c (diff) | |
download | lingo-archipelago-e0ffa141c91e40171c367a2aca777d22be824c98.tar.gz lingo-archipelago-e0ffa141c91e40171c367a2aca777d22be824c98.tar.bz2 lingo-archipelago-e0ffa141c91e40171c367a2aca777d22be824c98.zip |
Track hunt panels
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"]] |