about summary refs log tree commit diff stats
path: root/src/ap_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ap_state.cpp')
-rw-r--r--src/ap_state.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ap_state.cpp b/src/ap_state.cpp index 5b02ba6..efa94bf 100644 --- a/src/ap_state.cpp +++ b/src/ap_state.cpp
@@ -60,6 +60,7 @@ struct APState {
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 bool early_color_hallways = false;
63 SunwarpAccess sunwarp_access = kSUNWARP_ACCESS_NORMAL;
63 64
64 std::map<std::string, std::string> painting_mapping; 65 std::map<std::string, std::string> painting_mapping;
65 66
@@ -128,6 +129,7 @@ struct APState {
128 location_checks = kNORMAL_LOCATIONS; 129 location_checks = kNORMAL_LOCATIONS;
129 victory_condition = kTHE_END; 130 victory_condition = kTHE_END;
130 early_color_hallways = false; 131 early_color_hallways = false;
132 sunwarp_access = kSUNWARP_ACCESS_NORMAL;
131 133
132 connected = false; 134 connected = false;
133 has_connection_result = false; 135 has_connection_result = false;
@@ -222,6 +224,7 @@ struct APState {
222 slot_data["victory_condition"].get<VictoryCondition>(); 224 slot_data["victory_condition"].get<VictoryCondition>();
223 early_color_hallways = slot_data.contains("early_color_hallways") && 225 early_color_hallways = slot_data.contains("early_color_hallways") &&
224 slot_data["early_color_hallways"].get<int>() == 1; 226 slot_data["early_color_hallways"].get<int>() == 1;
227 sunwarp_access = slot_data["sunwarp_access"].get<SunwarpAccess>();
225 228
226 if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) { 229 if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) {
227 painting_mapping.clear(); 230 painting_mapping.clear();
@@ -417,3 +420,5 @@ bool AP_HasAchievement(const std::string& achievement_name) {
417} 420}
418 421
419bool AP_HasEarlyColorHallways() { return GetState().early_color_hallways; } 422bool AP_HasEarlyColorHallways() { return GetState().early_color_hallways; }
423
424SunwarpAccess AP_GetSunwarpAccess() { return GetState().sunwarp_access; }