diff options
Diffstat (limited to 'src/ap_state.cpp')
-rw-r--r-- | src/ap_state.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 { | |||
56 | bool color_shuffle = false; | 56 | bool color_shuffle = false; |
57 | bool painting_shuffle = false; | 57 | bool painting_shuffle = false; |
58 | int mastery_requirement = 21; | 58 | int mastery_requirement = 21; |
59 | bool reduce_checks = false; | ||
59 | 60 | ||
60 | std::map<std::string, std::string> painting_mapping; | 61 | std::map<std::string, std::string> painting_mapping; |
61 | 62 | ||
@@ -102,6 +103,7 @@ struct APState { | |||
102 | painting_shuffle = false; | 103 | painting_shuffle = false; |
103 | painting_mapping.clear(); | 104 | painting_mapping.clear(); |
104 | mastery_requirement = 21; | 105 | mastery_requirement = 21; |
106 | reduce_checks = false; | ||
105 | 107 | ||
106 | connected = false; | 108 | connected = false; |
107 | has_connection_result = false; | 109 | has_connection_result = false; |
@@ -154,6 +156,8 @@ struct APState { | |||
154 | color_shuffle = slot_data["shuffle_colors"].get<bool>(); | 156 | color_shuffle = slot_data["shuffle_colors"].get<bool>(); |
155 | painting_shuffle = slot_data["shuffle_paintings"].get<bool>(); | 157 | painting_shuffle = slot_data["shuffle_paintings"].get<bool>(); |
156 | mastery_requirement = slot_data["mastery_achievements"].get<int>(); | 158 | mastery_requirement = slot_data["mastery_achievements"].get<int>(); |
159 | reduce_checks = (door_shuffle_mode == kNO_DOORS) && | ||
160 | slot_data["reduce_checks"].get<bool>(); | ||
157 | 161 | ||
158 | if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) { | 162 | if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) { |
159 | painting_mapping.clear(); | 163 | painting_mapping.clear(); |
@@ -361,3 +365,5 @@ const std::map<std::string, std::string> AP_GetPaintingMapping() { | |||
361 | } | 365 | } |
362 | 366 | ||
363 | int AP_GetMasteryRequirement() { return GetState().mastery_requirement; } | 367 | int AP_GetMasteryRequirement() { return GetState().mastery_requirement; } |
368 | |||
369 | bool AP_IsReduceChecks() { return GetState().reduce_checks; } | ||