diff --git a/worlds/sc2/client.py b/worlds/sc2/client.py index 28482695d003..4c8cc2578569 100644 --- a/worlds/sc2/client.py +++ b/worlds/sc2/client.py @@ -539,7 +539,7 @@ def _handle_item_name(self, node: JSONMessagePart): item_name = node["text"] if not item_name in item_descriptions: return super()._handle_item_name(node) - + flags = node.get("flags", 0) item_types = [] if flags & ItemClassification.progression: @@ -555,7 +555,7 @@ def _handle_item_name(self, node: JSONMessagePart): desc = item_descriptions[item_name].replace(". \n", ".
").replace(". ", ".
").replace("\n", "
") ref = "Item Class: " + ", ".join(item_types) + "

" + desc node.setdefault("refs", []).append(ref) - return super(KivyJSONtoTextParser, self)._handle_item_name(node) + return super()._handle_item_name(node) class SC2Context(CommonContext):