about summary refs log tree commit diff stats
path: root/src/game_data.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 11:43:13 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 11:43:13 -0500
commit4adfe42a300a597cf8e7036cd189d197b08a7f01 (patch)
tree684a9f825bc1ae919ea68049a941f6190b8b4f96 /src/game_data.cpp
parenta9bc708c7eeeada4c59952ce71aa071175f8f27d (diff)
downloadlingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.tar.gz
lingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.tar.bz2
lingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.zip
Show hunt panels option
Diffstat (limited to 'src/game_data.cpp')
-rw-r--r--src/game_data.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index f51d7ac..2022097 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp
@@ -247,6 +247,10 @@ struct GameData {
247 achievement_panels_.push_back(panel_id); 247 achievement_panels_.push_back(panel_id);
248 } 248 }
249 249
250 if (panel_it.second["hunt"]) {
251 panel_obj.hunt = panel_it.second["hunt"].as<bool>();
252 }
253
250 if (panel_it.second["exclude_reduce"]) { 254 if (panel_it.second["exclude_reduce"]) {
251 panel_obj.exclude_reduce = 255 panel_obj.exclude_reduce =
252 panel_it.second["exclude_reduce"].as<bool>(); 256 panel_it.second["exclude_reduce"].as<bool>();
@@ -493,7 +497,8 @@ struct GameData {
493 .ap_location_id = panel.ap_location_id, 497 .ap_location_id = panel.ap_location_id,
494 .room = panel.room, 498 .room = panel.room,
495 .panels = {panel.id}, 499 .panels = {panel.id},
496 .classification = classification}); 500 .classification = classification,
501 .hunt = panel.hunt});
497 locations_by_name[map_area.locations.back().ap_location_name] = { 502 locations_by_name[map_area.locations.back().ap_location_name] = {
498 area_id, map_area.locations.size() - 1}; 503 area_id, map_area.locations.size() - 1};
499 } 504 }