Skip to content

Commit

Permalink
use base collect/remove for item link groups
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint authored Sep 25, 2024
1 parent f06d450 commit 5aad9d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BaseClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ def add_group(self, name: str, game: str, players: AbstractSet[int] = frozenset(
world_type = AutoWorld.AutoWorldRegister.world_types[game]
self.worlds[new_id] = world_type.create_group(self, new_id, players)
self.worlds[new_id].collect_item = classmethod(AutoWorld.World.collect_item).__get__(self.worlds[new_id])
self.worlds[new_id].collect = classmethod(AutoWorld.World.collect).__get__(self.worlds[new_id])
self.worlds[new_id].remove = classmethod(AutoWorld.World.remove).__get__(self.worlds[new_id])
self.player_name[new_id] = name

new_group = self.groups[new_id] = Group(name=name, game=game, players=players,
Expand Down

0 comments on commit 5aad9d9

Please sign in to comment.