From 8db3e400942d1d4dd0b59095a57b8eeed9930d2b Mon Sep 17 00:00:00 2001 From: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com> Date: Fri, 10 May 2024 10:29:07 -0400 Subject: [PATCH] Removing old option getters (#3285) --- worlds/doom_1993/__init__.py | 2 +- worlds/doom_ii/__init__.py | 2 +- worlds/heretic/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/worlds/doom_1993/__init__.py b/worlds/doom_1993/__init__.py index 828563150fed..ace33f994c33 100644 --- a/worlds/doom_1993/__init__.py +++ b/worlds/doom_1993/__init__.py @@ -181,7 +181,7 @@ def set_rules(self): # platform) Unless the user allows for it. if not allow_death_logic: for death_logic_location in Locations.death_logic_locations: - self.multiworld.exclude_locations[self.player].value.add(death_logic_location) + self.options.exclude_locations.value.add(death_logic_location) def create_item(self, name: str) -> DOOM1993Item: item_id: int = self.item_name_to_id[name] diff --git a/worlds/doom_ii/__init__.py b/worlds/doom_ii/__init__.py index 591c472e4005..daad94553517 100644 --- a/worlds/doom_ii/__init__.py +++ b/worlds/doom_ii/__init__.py @@ -172,7 +172,7 @@ def set_rules(self): # platform) Unless the user allows for it. if not allow_death_logic: for death_logic_location in Locations.death_logic_locations: - self.multiworld.exclude_locations[self.player].value.add(death_logic_location) + self.options.exclude_locations.value.add(death_logic_location) def create_item(self, name: str) -> DOOM2Item: item_id: int = self.item_name_to_id[name] diff --git a/worlds/heretic/__init__.py b/worlds/heretic/__init__.py index a0ceed4facb7..c83cdb9477b2 100644 --- a/worlds/heretic/__init__.py +++ b/worlds/heretic/__init__.py @@ -182,7 +182,7 @@ def set_rules(self): # platform) Unless the user allows for it. if not allow_death_logic: for death_logic_location in Locations.death_logic_locations: - self.multiworld.exclude_locations[self.player].value.add(death_logic_location) + self.options.exclude_locations.value.add(death_logic_location) def create_item(self, name: str) -> HereticItem: item_id: int = self.item_name_to_id[name]