Skip to content

Commit

Permalink
[TLOZ]: Dark Rooms and Level 8 Logic Fixes
Browse files Browse the repository at this point in the history
Properly name the Book to Book of Magic in Rules.py so you can actually possibly be expected to use Magical Rod plus Book of Magic to get through dark rooms. No wonder we tend to see candles so early oops.

Also adding a rule that you need candles for access to Level 8 so you aren't required to time a Rod+Book shot against a moblin to burn the bush. Might make this a logic trick or something later.
  • Loading branch information
t3hf1gm3nt committed Apr 27, 2024
1 parent a06bca9 commit b4dcdee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion worlds/tloz/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def set_rules(tloz_world: "TLoZWorld"):
for location in level.locations:
add_rule(world.get_location(location.name, player),
lambda state: state.has_group("candles", player)
or (state.has("Magical Rod", player) and state.has("Book", player)))
or (state.has("Magical Rod", player) and state.has("Book of Magic", player)))

# Everything from 5 on up has gaps
for level in tloz_world.levels[5:]:
Expand Down Expand Up @@ -84,6 +84,11 @@ def set_rules(tloz_world: "TLoZWorld"):
add_rule(world.get_location(location, player),
lambda state: state.has_group("swords", player) or state.has("Magical Rod", player))

# Candle access for Level 8
for location in tloz_world.levels[8].locations:
add_rule(world.get_location(location.name, player),
lambda state: state.has_group("candles", player))

add_rule(world.get_location("Level 8 Item (Magical Key)", player),
lambda state: state.has("Bow", player) and state.has_group("arrows", player))
if options.ExpandedPool:
Expand Down

0 comments on commit b4dcdee

Please sign in to comment.