@@ -2090,15 +2090,20 @@ def _cmd_hint_location(self, player_name: str, *location_name: str) -> bool:
2090
2090
2091
2091
if full_name .isnumeric ():
2092
2092
location , usable , response = int (full_name ), True , None
2093
- elif self .ctx .location_names_for_game ( game ) is not None :
2094
- location , usable , response = get_intended_text (full_name , self .ctx .location_names_for_game ( game ) )
2093
+ elif game in self .ctx .all_location_and_group_names :
2094
+ location , usable , response = get_intended_text (full_name , self .ctx .all_location_and_group_names [ game ] )
2095
2095
else :
2096
2096
self .output ("Can't look up location for unknown game. Hint for ID instead." )
2097
2097
return False
2098
2098
2099
2099
if usable :
2100
2100
if isinstance (location , int ):
2101
2101
hints = collect_hint_location_id (self .ctx , team , slot , location )
2102
+ elif game in self .ctx .location_name_groups and location in self .ctx .location_name_groups [game ]:
2103
+ hints = []
2104
+ for loc_name_from_group in self .ctx .location_name_groups [game ][location ]:
2105
+ if loc_name_from_group in self .ctx .location_names_for_game (game ):
2106
+ hints .extend (collect_hint_location_name (self .ctx , team , slot , loc_name_from_group ))
2102
2107
else :
2103
2108
hints = collect_hint_location_name (self .ctx , team , slot , location )
2104
2109
if hints :
0 commit comments