Skip to content

Commit 704fbc4

Browse files
committed
Restore SMMapRandoWorld.extend_hint_information
1 parent f4063d1 commit 704fbc4

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

worlds/sm_map_rando/__init__.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -827,12 +827,13 @@ def fill_slot_data(self):
827827

828828
return slot_data
829829

830-
# def extend_hint_information(self, hint_data: Dict[int, Dict[int, str]]):
831-
# player_hint_data = {}
832-
# for (loc_name, location) in self.locations.items():
833-
# if not loc_name.startswith("f_"):
834-
# player_hint_data[location.address] = self.region_area_name[location.parent_region.index]
835-
# hint_data[self.player] = player_hint_data
830+
def extend_hint_information(self, hint_data: Dict[int, Dict[int, str]]):
831+
player_hint_data = {}
832+
for spoilerSummary in self.randomizer_ap.spoiler_log.summary:
833+
for spoilerItemSummary in spoilerSummary.items:
834+
loc_name = f"{spoilerItemSummary.location.room} {spoilerItemSummary.location.node}"
835+
player_hint_data[self.location_name_to_id[loc_name]] = spoilerItemSummary.location.area
836+
hint_data[self.player] = player_hint_data
836837

837838

838839
class SMMRLocation(Location):
@@ -847,4 +848,4 @@ class SMMRItem(Item):
847848

848849
def __init__(self, name, classification, code, player: int, step: int):
849850
super(SMMRItem, self).__init__(name, classification, code, player)
850-
self.step = step
851+
self.step = step

0 commit comments

Comments
 (0)