Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Jul 28, 2024
1 parent 4bf419a commit 5ed4880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/sc2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -555,7 +555,7 @@ def _handle_item_name(self, node: JSONMessagePart):
desc = item_descriptions[item_name].replace(". \n", ".<br>").replace(". ", ".<br>").replace("\n", "<br>")
ref = "Item Class: " + ", ".join(item_types) + "<br><br>" + desc
node.setdefault("refs", []).append(ref)
return super(KivyJSONtoTextParser, self)._handle_item_name(node)
return super()._handle_item_name(node)


class SC2Context(CommonContext):
Expand Down

0 comments on commit 5ed4880

Please sign in to comment.