Skip to content

Commit

Permalink
DOOM 1993: Dont give map to unselected episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daivuk committed Aug 20, 2023
1 parent 1ff88a3 commit 01cd239
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions worlds/doom_1993/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,10 @@ def create_items(self):
# Give Computer area maps if option selected
if getattr(self.multiworld, "start_with_computer_area_maps")[self.player].value:
for item_id, item_dict in Items.item_table.items():
if item_dict["doom_type"] == DOOM_TYPE_COMPUTER_AREA_MAP:
self.multiworld.push_precollected(self.create_item(item_dict["name"]))
item_episode = item_dict["episode"]
if item_episode > 0:
if item_dict["doom_type"] == DOOM_TYPE_COMPUTER_AREA_MAP and self.included_episodes[item_episode - 1]:
self.multiworld.push_precollected(self.create_item(item_dict["name"]))

# Fill the rest starting with powerups, then fillers
self.create_ratioed_items("Armor", itempool)
Expand Down

0 comments on commit 01cd239

Please sign in to comment.