Skip to content

Commit c56d732

Browse files
PoryGoneEmilyV99
authored andcommitted
DKC3: Fix List Out of Range Error on Level Shuffle Hint extension (ArchipelagoMW#3077)
1 parent bbf9044 commit c56d732

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

worlds/dkc3/Names/LocationName.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
blue_region = "Blue's Beach Hut Region"
295295
blizzard_region = "Bizzard's Basecamp Region"
296296

297-
lake_orangatanga_region = "Lake_Orangatanga"
297+
lake_orangatanga_region = "Lake Orangatanga"
298298
kremwood_forest_region = "Kremwood Forest"
299299
cotton_top_cove_region = "Cotton-Top Cove"
300300
mekanos_region = "Mekanos"

worlds/dkc3/__init__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,12 @@ def extend_hint_information(self, hint_data: typing.Dict[int, typing.Dict[int, s
201201
er_hint_data = {}
202202
for world_index in range(len(world_names)):
203203
for level_index in range(5):
204-
level_region = self.multiworld.get_region(self.active_level_list[world_index * 5 + level_index], self.player)
204+
level_id: int = world_index * 5 + level_index
205+
206+
if level_id >= len(self.active_level_list):
207+
break
208+
209+
level_region = self.multiworld.get_region(self.active_level_list[level_id], self.player)
205210
for location in level_region.locations:
206211
er_hint_data[location.address] = world_names[world_index]
207212

0 commit comments

Comments
 (0)