diff options
Diffstat (limited to 'src/global.cpp')
-rw-r--r-- | src/global.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/global.cpp b/src/global.cpp index 1eb3f8d..63f4a19 100644 --- a/src/global.cpp +++ b/src/global.cpp | |||
@@ -26,17 +26,19 @@ std::string GetAbsolutePath(std::string_view path) { | |||
26 | return (GetExecutableDirectory() / path).string(); | 26 | return (GetExecutableDirectory() / path).string(); |
27 | } | 27 | } |
28 | 28 | ||
29 | bool IsLocationWinCondition(const Location& location) { | 29 | std::string GetWinCondition() { |
30 | switch (AP_GetVictoryCondition()) { | 30 | switch (AP_GetVictoryCondition()) { |
31 | case kTHE_END: | 31 | case kTHE_END: |
32 | return location.ap_location_name == | 32 | return "Orange Tower Seventh Floor - THE END"; |
33 | "Orange Tower Seventh Floor - THE END"; | ||
34 | case kTHE_MASTER: | 33 | case kTHE_MASTER: |
35 | return location.ap_location_name == | 34 | return "Orange Tower Seventh Floor - THE MASTER"; |
36 | "Orange Tower Seventh Floor - THE MASTER"; | ||
37 | case kLEVEL_2: | 35 | case kLEVEL_2: |
38 | return location.ap_location_name == "Second Room - LEVEL 2"; | 36 | return "Second Room - LEVEL 2"; |
39 | case kPILGRIMAGE: | 37 | case kPILGRIMAGE: |
40 | return location.ap_location_name == "Pilgrim Antechamber - PILGRIM"; | 38 | return "Pilgrim Antechamber - PILGRIM"; |
41 | } | 39 | } |
42 | } | 40 | } |
41 | |||
42 | bool IsLocationWinCondition(const Location& location) { | ||
43 | return location.ap_location_name == GetWinCondition(); | ||
44 | } | ||