Skip to content

Commit

Permalink
comprehend this
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 committed Jun 20, 2024
1 parent f852e64 commit b1e80f8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,15 +331,13 @@ def write_multidata():
for player, world_precollected in multiworld.precollected_items.items():
if not world_precollected:
continue

if player in multiworld.groups:
targets = multiworld.groups[player]["players"]
else:
targets = [player]

current_list = []
for item in world_precollected:
if type(item.code) == int:
current_list.append(item.code)
current_list = [item.code for item in world_precollected if type(item.code) == int]

for target_player in targets:
precollected_items[target_player].extend(current_list)
Expand Down

0 comments on commit b1e80f8

Please sign in to comment.