diff --git a/sc2reader/objects.py b/sc2reader/objects.py index d6c9491d..1488a088 100644 --- a/sc2reader/objects.py +++ b/sc2reader/objects.py @@ -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])