Skip to content

Commit

Permalink
Death Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbrq committed Jul 26, 2024
1 parent ac7437b commit 0a867dc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions worlds/gl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ def create_items(self) -> None:
for i in range(remaining):
filler_item_name = self.multiworld.random.choice(filler_items)
item = self.create_item(filler_item_name)
if "Death" in filler_item_name:
self.death += [item]
continue
self.multiworld.itempool.append(item)
filler_items.remove(filler_item_name)

Expand All @@ -230,8 +227,9 @@ def set_rules(self) -> None:
def pre_fill(self) -> None:
if len(self.death) != 0:
locations = self.multiworld.get_unfilled_locations(self.player)
items = [item for item in self.multiworld.itempool if item.name == "Death" and item.player == self.player]
self.random.shuffle(locations)
fast_fill(self.multiworld, self.death, locations)
fast_fill(self.multiworld, items, locations)

def create_item(self, name: str) -> GLItem:
item = item_table[name]
Expand Down

0 comments on commit 0a867dc

Please sign in to comment.