From 8c5b719469bc61e33a451d9b3aeb66c7b0a6d68e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 19 Jul 2024 03:51:23 -0400 Subject: Added savedata analyzer --- src/game_data.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/game_data.cpp') 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 { panel_it.second["location_name"].as(); } + if (panel_it.second["id"]) { + panels_[panel_id].nodepath = + panel_it.second["id"].as(); + } + if (panel_it.second["hunt"]) { panels_[panel_id].hunt = panel_it.second["hunt"].as(); } @@ -564,7 +569,8 @@ struct GameData { .room = panel.room, .panels = {panel.id}, .classification = classification, - .hunt = panel.hunt}); + .hunt = panel.hunt, + .panel = true}); locations_by_name[location_name] = {area_id, map_area.locations.size() - 1}; } @@ -617,6 +623,7 @@ struct GameData { for (const Location &location : map_area.locations) { map_area.classification |= location.classification; map_area.hunt |= location.hunt; + map_area.panel |= location.panel; } } -- cgit 1.4.1