about summary refs log tree commit diff stats
path: root/src/game_data.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-07-24 09:40:22 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-07-24 09:40:22 -0400
commitc443acfd0b25b3e4f3446f795777b8dd18b00e2b (patch)
tree86340c00f1723310cbab02f0ebc496b25a780278 /src/game_data.cpp
parent378766bcee3cad04256ada937f96b232aba85cf3 (diff)
parentab5206255603f6401d9c216ffce26607da16ad33 (diff)
downloadlingo-ap-tracker-c443acfd0b25b3e4f3446f795777b8dd18b00e2b.tar.gz
lingo-ap-tracker-c443acfd0b25b3e4f3446f795777b8dd18b00e2b.tar.bz2
lingo-ap-tracker-c443acfd0b25b3e4f3446f795777b8dd18b00e2b.zip
Merge branch 'main' into panels
Diffstat (limited to 'src/game_data.cpp')
-rw-r--r--src/game_data.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index ec8d8f5..0786edb 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp
@@ -267,6 +267,11 @@ struct GameData {
267 panel_it.second["location_name"].as<std::string>(); 267 panel_it.second["location_name"].as<std::string>();
268 } 268 }
269 269
270 if (panel_it.second["id"]) {
271 panels_[panel_id].nodepath =
272 panel_it.second["id"].as<std::string>();
273 }
274
270 if (panel_it.second["hunt"]) { 275 if (panel_it.second["hunt"]) {
271 panels_[panel_id].hunt = panel_it.second["hunt"].as<bool>(); 276 panels_[panel_id].hunt = panel_it.second["hunt"].as<bool>();
272 } 277 }
@@ -639,7 +644,8 @@ struct GameData {
639 .room = panel.room, 644 .room = panel.room,
640 .panels = {panel.id}, 645 .panels = {panel.id},
641 .classification = classification, 646 .classification = classification,
642 .hunt = panel.hunt}); 647 .hunt = panel.hunt,
648 .panel = true});
643 locations_by_name[location_name] = {area_id, 649 locations_by_name[location_name] = {area_id,
644 map_area.locations.size() - 1}; 650 map_area.locations.size() - 1};
645 } 651 }
@@ -692,6 +698,7 @@ struct GameData {
692 for (const Location &location : map_area.locations) { 698 for (const Location &location : map_area.locations) {
693 map_area.classification |= location.classification; 699 map_area.classification |= location.classification;
694 map_area.hunt |= location.hunt; 700 map_area.hunt |= location.hunt;
701 map_area.panel |= location.panel;
695 } 702 }
696 } 703 }
697 704