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.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ap_state.cpp b/src/ap_state.cpp index fdc0219..1937597 100644 --- a/src/ap_state.cpp +++ b/src/ap_state.cpp
@@ -63,6 +63,8 @@ struct APState {
63 LocationChecks location_checks = kNORMAL_LOCATIONS; 63 LocationChecks location_checks = kNORMAL_LOCATIONS;
64 VictoryCondition victory_condition = kTHE_END; 64 VictoryCondition victory_condition = kTHE_END;
65 bool early_color_hallways = false; 65 bool early_color_hallways = false;
66 bool pilgrimage_enabled = false;
67 SunwarpAccess sunwarp_access = kSUNWARP_ACCESS_NORMAL;
66 68
67 std::map<std::string, std::string> painting_mapping; 69 std::map<std::string, std::string> painting_mapping;
68 70
@@ -132,6 +134,8 @@ struct APState {
132 location_checks = kNORMAL_LOCATIONS; 134 location_checks = kNORMAL_LOCATIONS;
133 victory_condition = kTHE_END; 135 victory_condition = kTHE_END;
134 early_color_hallways = false; 136 early_color_hallways = false;
137 pilgrimage_enabled = false;
138 sunwarp_access = kSUNWARP_ACCESS_NORMAL;
135 139
136 connected = false; 140 connected = false;
137 has_connection_result = false; 141 has_connection_result = false;
@@ -234,6 +238,9 @@ struct APState {
234 slot_data["victory_condition"].get<VictoryCondition>(); 238 slot_data["victory_condition"].get<VictoryCondition>();
235 early_color_hallways = slot_data.contains("early_color_hallways") && 239 early_color_hallways = slot_data.contains("early_color_hallways") &&
236 slot_data["early_color_hallways"].get<int>() == 1; 240 slot_data["early_color_hallways"].get<int>() == 1;
241 pilgrimage_enabled = slot_data.contains("enable_pilgrimage") &&
242 slot_data["enable_pilgrimage"].get<int>() == 1;
243 sunwarp_access = slot_data["sunwarp_access"].get<SunwarpAccess>();
237 244
238 if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) { 245 if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) {
239 painting_mapping.clear(); 246 painting_mapping.clear();
@@ -445,4 +452,8 @@ bool AP_HasAchievement(const std::string& achievement_name) {
445 452
446bool AP_HasEarlyColorHallways() { return GetState().early_color_hallways; } 453bool AP_HasEarlyColorHallways() { return GetState().early_color_hallways; }
447 454
455bool AP_IsPilgrimageEnabled() { return GetState().pilgrimage_enabled; }
456
457SunwarpAccess AP_GetSunwarpAccess() { return GetState().sunwarp_access; }
458
448bool AP_HasReachedGoal() { return GetState().HasReachedGoal(); } 459bool AP_HasReachedGoal() { return GetState().HasReachedGoal(); }