Easy mode lamp update

You can find all 3 lamps before dark rooms for easy mode.
This commit is contained in:
Kevin Cathcart
2018-02-24 16:16:50 -05:00
parent eb8cff4d5a
commit 5989718586
4 changed files with 21 additions and 10 deletions

View File

@@ -53,7 +53,7 @@ def add_rule(spot, rule, combine='and'):
def add_lamp_requirement(spot):
add_rule(spot, lambda state: state.has('Lamp'))
add_rule(spot, lambda state: state.has('Lamp', state.world.lamps_needed_for_dark_rooms))
def forbid_item(location, item):
@@ -437,9 +437,9 @@ def no_glitches_rules(world):
add_conditional_lamp('Eastern Palace - Prize', 'Eastern Palace', 'Location')
if not world.sewer_light_cone:
add_rule(world.get_location('Sewers - Dark Cross'), lambda state: state.has('Lamp'))
add_rule(world.get_entrance('Sewers Back Door'), lambda state: state.has('Lamp'))
add_rule(world.get_entrance('Throne Room'), lambda state: state.has('Lamp'))
add_lamp_requirement(world.get_location('Sewers - Dark Cross'))
add_lamp_requirement(world.get_entrance('Sewers Back Door'))
add_lamp_requirement(world.get_entrance('Throne Room'))
def open_rules(world):