Skip to content

Commit 8db3e40

Browse files
authored
Removing old option getters (#3285)
1 parent d48f2ab commit 8db3e40

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

worlds/doom_1993/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def set_rules(self):
181181
# platform) Unless the user allows for it.
182182
if not allow_death_logic:
183183
for death_logic_location in Locations.death_logic_locations:
184-
self.multiworld.exclude_locations[self.player].value.add(death_logic_location)
184+
self.options.exclude_locations.value.add(death_logic_location)
185185

186186
def create_item(self, name: str) -> DOOM1993Item:
187187
item_id: int = self.item_name_to_id[name]

worlds/doom_ii/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def set_rules(self):
172172
# platform) Unless the user allows for it.
173173
if not allow_death_logic:
174174
for death_logic_location in Locations.death_logic_locations:
175-
self.multiworld.exclude_locations[self.player].value.add(death_logic_location)
175+
self.options.exclude_locations.value.add(death_logic_location)
176176

177177
def create_item(self, name: str) -> DOOM2Item:
178178
item_id: int = self.item_name_to_id[name]

worlds/heretic/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def set_rules(self):
182182
# platform) Unless the user allows for it.
183183
if not allow_death_logic:
184184
for death_logic_location in Locations.death_logic_locations:
185-
self.multiworld.exclude_locations[self.player].value.add(death_logic_location)
185+
self.options.exclude_locations.value.add(death_logic_location)
186186

187187
def create_item(self, name: str) -> HereticItem:
188188
item_id: int = self.item_name_to_id[name]

0 commit comments

Comments
 (0)