Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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