Skip to content

Commit

Permalink
Shop requires sword
Browse files Browse the repository at this point in the history
  • Loading branch information
ScipioWright committed Jul 4, 2024
1 parent 31bd5e3 commit 0507605
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions worlds/tunic/er_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1538,3 +1538,13 @@ def set_er_location_rules(world: "TunicWorld", ability_unlocks: Dict[str, int])
lambda state: has_ability(state, player, prayer, options, ability_unlocks))
set_rule(multiworld.get_location("Library Fuse", player),
lambda state: has_ability(state, player, prayer, options, ability_unlocks))

# Shop
set_rule(multiworld.get_location("Shop - Potion 1", player),
lambda state: has_sword(state, player))
set_rule(multiworld.get_location("Shop - Potion 2", player),
lambda state: has_sword(state, player))
set_rule(multiworld.get_location("Shop - Coin 1", player),
lambda state: has_sword(state, player))
set_rule(multiworld.get_location("Shop - Coin 2", player),
lambda state: has_sword(state, player))
10 changes: 10 additions & 0 deletions worlds/tunic/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,13 @@ def set_location_rules(world: "TunicWorld", ability_unlocks: Dict[str, int]) ->
lambda state: state.has(laurels, player) and has_ability(state, player, prayer, options, ability_unlocks))
set_rule(multiworld.get_location("Hero's Grave - Feathers Relic", player),
lambda state: state.has(laurels, player) and has_ability(state, player, prayer, options, ability_unlocks))

# Shop
set_rule(multiworld.get_location("Shop - Potion 1", player),
lambda state: has_sword(state, player))
set_rule(multiworld.get_location("Shop - Potion 2", player),
lambda state: has_sword(state, player))
set_rule(multiworld.get_location("Shop - Coin 1", player),
lambda state: has_sword(state, player))
set_rule(multiworld.get_location("Shop - Coin 2", player),
lambda state: has_sword(state, player))

0 comments on commit 0507605

Please sign in to comment.