diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 15:51:32 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 15:51:32 -0400 |
commit | 6f5287b3921c843a6b322ccbdfcbef00a8f16980 (patch) | |
tree | e136ec82d71dd6b01accabbe1a4fd522b36c4cbf /src/tracker_state.cpp | |
parent | cb880c618ce031c95009b848cdf62dd61751c858 (diff) | |
download | lingo-ap-tracker-6f5287b3921c843a6b322ccbdfcbef00a8f16980.tar.gz lingo-ap-tracker-6f5287b3921c843a6b322ccbdfcbef00a8f16980.tar.bz2 lingo-ap-tracker-6f5287b3921c843a6b322ccbdfcbef00a8f16980.zip |
Handle special cases (ECH + Sun Painting)
Diffstat (limited to 'src/tracker_state.cpp')
-rw-r--r-- | src/tracker_state.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tracker_state.cpp b/src/tracker_state.cpp index 46bdbec..66e7751 100644 --- a/src/tracker_state.cpp +++ b/src/tracker_state.cpp | |||
@@ -52,9 +52,12 @@ class RequirementCalculator { | |||
52 | Requirements requirements; | 52 | Requirements requirements; |
53 | const Door& door_obj = GD_GetDoor(door_id); | 53 | const Door& door_obj = GD_GetDoor(door_id); |
54 | 54 | ||
55 | if (!AP_IsPilgrimageEnabled() && | 55 | if (door_obj.type == DoorType::kSunPainting) { |
56 | door_obj.type == DoorType::kSunPainting) { | 56 | if (!AP_IsPilgrimageEnabled()) { |
57 | requirements.items.insert(door_obj.ap_item_id); | 57 | requirements.items.insert(door_obj.ap_item_id); |
58 | } else { | ||
59 | requirements.disabled = true; | ||
60 | } | ||
58 | } else if (door_obj.type == DoorType::kSunwarp) { | 61 | } else if (door_obj.type == DoorType::kSunwarp) { |
59 | switch (AP_GetSunwarpAccess()) { | 62 | switch (AP_GetSunwarpAccess()) { |
60 | case kSUNWARP_ACCESS_NORMAL: | 63 | case kSUNWARP_ACCESS_NORMAL: |