mirror of
				https://github.com/MarioSpore/Grinch-AP.git
				synced 2025-10-21 20:21:32 -06:00 
			
		
		
		
	Core: Remove Universally Unique ID Requirements (Per-Game Data Packages) (#1933)
This commit is contained in:
		| @@ -244,10 +244,10 @@ class StarcraftClientProcessor(ClientCommandProcessor): | ||||
|                     self.formatted_print(f" [u]{faction.name}[/u] ") | ||||
|              | ||||
|             for item_id in categorized_items[faction]: | ||||
|                 item_name = self.ctx.item_names[item_id] | ||||
|                 item_name = self.ctx.item_names.lookup_in_slot(item_id) | ||||
|                 received_child_items = items_received_set.intersection(parent_to_child.get(item_id, [])) | ||||
|                 matching_children = [child for child in received_child_items | ||||
|                                     if item_matches_filter(self.ctx.item_names[child])] | ||||
|                                      if item_matches_filter(self.ctx.item_names.lookup_in_slot(child))] | ||||
|                 received_items_of_this_type = items_received.get(item_id, []) | ||||
|                 item_is_match = item_matches_filter(item_name) | ||||
|                 if item_is_match or len(matching_children) > 0: | ||||
| @@ -1165,7 +1165,7 @@ def request_unfinished_missions(ctx: SC2Context) -> None: | ||||
|             objectives = set(ctx.locations_for_mission(mission)) | ||||
|             if objectives: | ||||
|                 remaining_objectives = objectives.difference(ctx.checked_locations) | ||||
|                 unfinished_locations[mission] = [ctx.location_names[location_id] for location_id in remaining_objectives] | ||||
|                 unfinished_locations[mission] = [ctx.location_names.lookup_in_slot(location_id) for location_id in remaining_objectives] | ||||
|             else: | ||||
|                 unfinished_locations[mission] = [] | ||||
|  | ||||
|   | ||||
| @@ -269,7 +269,7 @@ class SC2Manager(GameManager): | ||||
|         for loc in self.ctx.locations_for_mission(mission_name): | ||||
|             if loc in self.ctx.missing_locations: | ||||
|                 count += 1 | ||||
|                 locations[lookup_location_id_to_type[loc]].append(self.ctx.location_names[loc]) | ||||
|                 locations[lookup_location_id_to_type[loc]].append(self.ctx.location_names.lookup_in_slot(loc)) | ||||
|  | ||||
|         plando_locations = [] | ||||
|         for plando_loc in self.ctx.plando_locations: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zach Parks
					Zach Parks