Skip to content

Commit

Permalink
Small style/efficiency changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jul 6, 2024
1 parent 71fdc65 commit 6ed17b8
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions worlds/dark_souls_3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,15 +1221,16 @@ def _add_unnecessary_location_rules(self) -> None:
all_locations = self.multiworld.get_locations(self.player)

unnecessary_locations = (
{
location.name
for location in all_locations
if location.name in self.all_excluded_locations
and not (
location.data.missable
and self.options.excluded_location_behavior < self.options.missable_location_behavior
)
}
(
{
location.name
for location in all_locations
if location.name in self.all_excluded_locations
and not location.data.missable
}
if self.options.excluded_location_behavior < self.options.missable_location_behavior
else self.all_excluded_locations
)
if self.options.excluded_location_behavior == "unnecessary"
else set()
).union(
Expand All @@ -1239,7 +1240,8 @@ def _add_unnecessary_location_rules(self) -> None:
if location.data.missable
and not (
location.name in self.all_excluded_locations
and self.options.missable_location_behavior < self.options.excluded_location_behavior
and self.options.missable_location_behavior <
self.options.excluded_location_behavior
)
}
if self.options.missable_location_behavior == "unnecessary"
Expand Down

0 comments on commit 6ed17b8

Please sign in to comment.