Skip to content

Commit

Permalink
Landstalker: More quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhar committed Nov 23, 2023
1 parent ecdef81 commit e0c5e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/landstalker/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def make_shop_location_requirement_lambda(player: int, location: LandstalkerLoca
other_locations_in_shop = [loc for loc in location.parent_region.locations if loc != location]
return lambda item: \
item.player != player \
or (' Gold' not in item.name
or (" Gold" not in item.name
and item.name not in [loc.item.name for loc in other_locations_in_shop if loc.item is not None])


Expand All @@ -125,7 +125,7 @@ def add_location_rules(world: "LandstalkerWorld"):
location: LandstalkerLocation
for location in world.multiworld.get_locations(world.player):
if location.type_string == "ground":
location.item_rule = lambda item: not (item.player == world.player and ' Gold' in item.name)
location.item_rule = lambda item: not (item.player == world.player and " Gold" in item.name)
elif location.type_string == "shop":
location.item_rule = make_shop_location_requirement_lambda(world.player, location)

Expand Down

0 comments on commit e0c5e53

Please sign in to comment.