Skip to content

Commit

Permalink
Fixed generation issue with 7-S
Browse files Browse the repository at this point in the history
  • Loading branch information
TRPG0 committed May 1, 2024
1 parent 08c4770 commit 407d51a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apworld/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -2522,8 +2522,9 @@ def rules(ultrakillworld):


# 7-S
set_rule(multiworld.get_location("Cleared 7-S", player),
lambda state: grab_item(state, player, arm))
if secretcompletion:
set_rule(multiworld.get_location("Cleared 7-S", player),
lambda state: grab_item(state, player, arm))

if clean:
set_rule(multiworld.get_location("7-S: Cleaned Courtyard", player),
Expand All @@ -2538,8 +2539,9 @@ def rules(ultrakillworld):
lambda state: grab_item(state, player, arm))

if skulls:
add_rule(multiworld.get_location("Cleared 7-S", player),
lambda state: state.has_all({"Red Skull (7-S)", "Blue Skull (7-S)"}, player))
if secretcompletion:
add_rule(multiworld.get_location("Cleared 7-S", player),
lambda state: state.has_all({"Red Skull (7-S)", "Blue Skull (7-S)"}, player))

if clean:
add_rule(multiworld.get_location("7-S: Cleaned Courtyard", player),
Expand Down
2 changes: 2 additions & 0 deletions apworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ def create_regions(self):
continue
elif "fish" in loc["game_id"] and not self.options.fish_rewards:
continue
elif "clean" in loc["game_id"] and not self.options.cleaning_rewards:
continue
elif loc["name"] in limbo_switches and not self.options.randomize_limbo_switches:
continue
elif loc["name"] in violence_switches and not self.options.randomize_violence_switches:
Expand Down

0 comments on commit 407d51a

Please sign in to comment.