about summary refs log tree commit diff stats
path: root/src/tracker_state.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-07-16 00:37:58 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-07-16 00:37:58 -0400
commitbbf47da879b816167c8f3bed716570effa4b52bb (patch)
treeb57ae9121f350b8771c37297420f52463500df23 /src/tracker_state.cpp
parentba352dbe181987e7749e9115a18a431d54fa1922 (diff)
downloadlingo-ap-tracker-bbf47da879b816167c8f3bed716570effa4b52bb.tar.gz
lingo-ap-tracker-bbf47da879b816167c8f3bed716570effa4b52bb.tar.bz2
lingo-ap-tracker-bbf47da879b816167c8f3bed716570effa4b52bb.zip
Fix start of pilgrimage on sunwarp shuffle
Diffstat (limited to 'src/tracker_state.cpp')
-rw-r--r--src/tracker_state.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/tracker_state.cpp b/src/tracker_state.cpp index fd5ff4b..da8f426 100644 --- a/src/tracker_state.cpp +++ b/src/tracker_state.cpp
@@ -288,7 +288,17 @@ class StateCalculator {
288 } 288 }
289 289
290 if (AP_IsPilgrimageEnabled()) { 290 if (AP_IsPilgrimageEnabled()) {
291 if (room_obj.name == "Hub Room") { 291 int pilgrimage_start_id = GD_GetRoomByName("Hub Room");
292 if (AP_IsSunwarpShuffle()) {
293 for (const auto& [start_index, mapping] :
294 AP_GetSunwarpMapping()) {
295 if (mapping.dots == 1) {
296 pilgrimage_start_id = GD_GetRoomForSunwarp(start_index);
297 }
298 }
299 }
300
301 if (room_exit.destination_room == pilgrimage_start_id) {
292 new_boundary.push_back( 302 new_boundary.push_back(
293 {.destination_room = GD_GetRoomByName("Pilgrim Antechamber"), 303 {.destination_room = GD_GetRoomByName("Pilgrim Antechamber"),
294 .type = EntranceType::kPilgrimage}); 304 .type = EntranceType::kPilgrimage});