Skip to content

Commit

Permalink
Merge pull request #189 from NumberPigeon/Observer-url
Browse files Browse the repository at this point in the history
Feat: allow Observer.url
  • Loading branch information
StoicLoofah authored Sep 1, 2023
2 parents a68dc10 + f967828 commit f3744fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sc2reader/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ def __init__(self, sid, slot_data):
toon_handle = self.toon_handle or "0-S2-0-0"
parts = toon_handle.split("-")

#: The Battle.net region id the entity is registered to
self.region_id = int(parts[0])

#: The Battle.net region the entity is registered to
self.region = GATEWAY_LOOKUP[int(parts[0])]
self.region = GATEWAY_LOOKUP[self.region_id]

#: The Battle.net subregion the entity is registered to
self.subregion = int(parts[2])
Expand Down

0 comments on commit f3744fe

Please sign in to comment.