Skip to content

Commit

Permalink
use less data
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysintreble committed Nov 13, 2023
1 parent e97f75e commit 72a21ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BaseClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def extend(self, regions: Iterable[Region]):
self.region_cache[region.player][region.name] = region

def add_group(self, new_id: int):
self.region_cache.update({new_id: {}})
self.entrance_cache.update({new_id: {}})
self.location_cache.update({new_id: {}})
self.region_cache[new_id] = {}
self.entrance_cache[new_id] = {}
self.location_cache[new_id] = {}

def __iter__(self) -> Iterator[Region]:
for regions in self.region_cache.values():
Expand Down

0 comments on commit 72a21ce

Please sign in to comment.