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 8bc7ed0..50601d4 100644 --- a/src/ap_state.cpp +++ b/src/ap_state.cpp | |||
| @@ -59,6 +59,7 @@ struct APState { | |||
| 59 | int level_2_requirement = 223; | 59 | int level_2_requirement = 223; |
| 60 | LocationChecks location_checks = kNORMAL_LOCATIONS; | 60 | LocationChecks location_checks = kNORMAL_LOCATIONS; |
| 61 | VictoryCondition victory_condition = kTHE_END; | 61 | VictoryCondition victory_condition = kTHE_END; |
| 62 | bool early_color_hallways = false; | ||
| 62 | 63 | ||
| 63 | std::map<std::string, std::string> painting_mapping; | 64 | std::map<std::string, std::string> painting_mapping; |
| 64 | 65 | ||
| @@ -119,6 +120,7 @@ struct APState { | |||
| 119 | level_2_requirement = 223; | 120 | level_2_requirement = 223; |
| 120 | location_checks = kNORMAL_LOCATIONS; | 121 | location_checks = kNORMAL_LOCATIONS; |
| 121 | victory_condition = kTHE_END; | 122 | victory_condition = kTHE_END; |
| 123 | early_color_hallways = false; | ||
| 122 | 124 | ||
| 123 | connected = false; | 125 | connected = false; |
| 124 | has_connection_result = false; | 126 | has_connection_result = false; |
| @@ -211,6 +213,8 @@ struct APState { | |||
| 211 | location_checks = slot_data["location_checks"].get<LocationChecks>(); | 213 | location_checks = slot_data["location_checks"].get<LocationChecks>(); |
| 212 | victory_condition = | 214 | victory_condition = |
| 213 | slot_data["victory_condition"].get<VictoryCondition>(); | 215 | slot_data["victory_condition"].get<VictoryCondition>(); |
| 216 | early_color_hallways = slot_data.contains("early_color_hallways") && | ||
| 217 | slot_data["early_color_hallways"].get<int>() == 1; | ||
| 214 | 218 | ||
| 215 | if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) { | 219 | if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) { |
| 216 | painting_mapping.clear(); | 220 | painting_mapping.clear(); |
| @@ -394,3 +398,5 @@ VictoryCondition AP_GetVictoryCondition() { | |||
| 394 | bool AP_HasAchievement(const std::string& achievement_name) { | 398 | bool AP_HasAchievement(const std::string& achievement_name) { |
| 395 | return GetState().HasAchievement(achievement_name); | 399 | return GetState().HasAchievement(achievement_name); |
| 396 | } | 400 | } |
| 401 | |||
| 402 | bool AP_HasEarlyColorHallways() { return GetState().early_color_hallways; } | ||
