From c9a21a387634e8fdd13110906ebe786f055c446d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 3 Aug 2023 11:34:57 -0400 Subject: LEVEL 2 and required_panel support --- src/ap_state.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/ap_state.cpp') diff --git a/src/ap_state.cpp b/src/ap_state.cpp index 6c4e42d..02f1f5a 100644 --- a/src/ap_state.cpp +++ b/src/ap_state.cpp @@ -61,7 +61,9 @@ struct APState { bool color_shuffle = false; bool painting_shuffle = false; int mastery_requirement = 21; + int level_2_requirement = 223; bool reduce_checks = false; + VictoryCondition victory_condition = kTHE_END; std::map painting_mapping; @@ -119,7 +121,9 @@ struct APState { painting_shuffle = false; painting_mapping.clear(); mastery_requirement = 21; + level_2_requirement = 223; reduce_checks = false; + victory_condition = kTHE_END; connected = false; has_connection_result = false; @@ -208,8 +212,11 @@ struct APState { color_shuffle = slot_data["shuffle_colors"].get(); painting_shuffle = slot_data["shuffle_paintings"].get(); mastery_requirement = slot_data["mastery_achievements"].get(); + level_2_requirement = slot_data["level_2_requirement"].get(); reduce_checks = (door_shuffle_mode == kNO_DOORS) && slot_data["reduce_checks"].get(); + victory_condition = + slot_data["victory_condition"].get(); if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) { painting_mapping.clear(); @@ -435,8 +442,14 @@ const std::map AP_GetPaintingMapping() { int AP_GetMasteryRequirement() { return GetState().mastery_requirement; } +int AP_GetLevel2Requirement() { return GetState().level_2_requirement; } + bool AP_IsReduceChecks() { return GetState().reduce_checks; } +VictoryCondition AP_GetVictoryCondition() { + return GetState().victory_condition; +} + bool AP_HasAchievement(const std::string& achievement_name) { return GetState().HasAchievement(achievement_name); } -- cgit 1.4.1