From 53a2ec277f20a7c260e80af527659e769f6d2ac6 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 9 May 2023 11:14:10 -0400 Subject: Support reduce_checks --- src/ap_state.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ap_state.cpp') diff --git a/src/ap_state.cpp b/src/ap_state.cpp index efbca8c..a0d0f66 100644 --- a/src/ap_state.cpp +++ b/src/ap_state.cpp @@ -56,6 +56,7 @@ struct APState { bool color_shuffle = false; bool painting_shuffle = false; int mastery_requirement = 21; + bool reduce_checks = false; std::map painting_mapping; @@ -102,6 +103,7 @@ struct APState { painting_shuffle = false; painting_mapping.clear(); mastery_requirement = 21; + reduce_checks = false; connected = false; has_connection_result = false; @@ -154,6 +156,8 @@ struct APState { color_shuffle = slot_data["shuffle_colors"].get(); painting_shuffle = slot_data["shuffle_paintings"].get(); mastery_requirement = slot_data["mastery_achievements"].get(); + reduce_checks = (door_shuffle_mode == kNO_DOORS) && + slot_data["reduce_checks"].get(); if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) { painting_mapping.clear(); @@ -361,3 +365,5 @@ const std::map AP_GetPaintingMapping() { } int AP_GetMasteryRequirement() { return GetState().mastery_requirement; } + +bool AP_IsReduceChecks() { return GetState().reduce_checks; } -- cgit 1.4.1