diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-07-19 03:51:23 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-07-19 03:51:23 -0400 |
commit | 8c5b719469bc61e33a451d9b3aeb66c7b0a6d68e (patch) | |
tree | 1f452dc8a601630a1fd50f4ee3f8ea25aed7b315 /src/game_data.cpp | |
parent | b80e1b888a7203312119e5bfad9e26c2c17d9b9f (diff) | |
download | lingo-ap-tracker-8c5b719469bc61e33a451d9b3aeb66c7b0a6d68e.tar.gz lingo-ap-tracker-8c5b719469bc61e33a451d9b3aeb66c7b0a6d68e.tar.bz2 lingo-ap-tracker-8c5b719469bc61e33a451d9b3aeb66c7b0a6d68e.zip |
Added savedata analyzer
Diffstat (limited to 'src/game_data.cpp')
-rw-r--r-- | src/game_data.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index 4c0104f..b8e1386 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp | |||
@@ -265,6 +265,11 @@ struct GameData { | |||
265 | panel_it.second["location_name"].as<std::string>(); | 265 | panel_it.second["location_name"].as<std::string>(); |
266 | } | 266 | } |
267 | 267 | ||
268 | if (panel_it.second["id"]) { | ||
269 | panels_[panel_id].nodepath = | ||
270 | panel_it.second["id"].as<std::string>(); | ||
271 | } | ||
272 | |||
268 | if (panel_it.second["hunt"]) { | 273 | if (panel_it.second["hunt"]) { |
269 | panels_[panel_id].hunt = panel_it.second["hunt"].as<bool>(); | 274 | panels_[panel_id].hunt = panel_it.second["hunt"].as<bool>(); |
270 | } | 275 | } |
@@ -564,7 +569,8 @@ struct GameData { | |||
564 | .room = panel.room, | 569 | .room = panel.room, |
565 | .panels = {panel.id}, | 570 | .panels = {panel.id}, |
566 | .classification = classification, | 571 | .classification = classification, |
567 | .hunt = panel.hunt}); | 572 | .hunt = panel.hunt, |
573 | .panel = true}); | ||
568 | locations_by_name[location_name] = {area_id, | 574 | locations_by_name[location_name] = {area_id, |
569 | map_area.locations.size() - 1}; | 575 | map_area.locations.size() - 1}; |
570 | } | 576 | } |
@@ -617,6 +623,7 @@ struct GameData { | |||
617 | for (const Location &location : map_area.locations) { | 623 | for (const Location &location : map_area.locations) { |
618 | map_area.classification |= location.classification; | 624 | map_area.classification |= location.classification; |
619 | map_area.hunt |= location.hunt; | 625 | map_area.hunt |= location.hunt; |
626 | map_area.panel |= location.panel; | ||
620 | } | 627 | } |
621 | } | 628 | } |
622 | 629 | ||