Add --require_ganon_item option

This commit is contained in:
2026-06-08 23:27:18 -05:00
parent 2039159d36
commit 0bc1a5c2ad
6 changed files with 26 additions and 7 deletions

View File

@@ -1026,10 +1026,11 @@ def global_rules(world, player):
world.get_location('Ganon', player),
lambda state: state.has_beam_sword(player)
and state.has_fire_source(player)
and (state.has('Tempered Sword', player) or state.has('Golden Sword', player)
or state.can_hit_stunned_ganon(player)
or state.has('Lamp', player)
or state.can_extend_magic(player, 12))) # need to light torch a sufficient amount of times
and (state.can_hit_stunned_ganon(player) or (
not world.require_ganon_item[player] and (
state.has('Tempered Sword', player) or state.has('Golden Sword', player)
or state.has('Lamp', player)
or state.can_extend_magic(player, 12))))) # need to light torch a sufficient amount of times
set_rule(world.get_entrance('Ganon Drop', player), lambda state: state.has_beam_sword(player)) # need to damage ganon to get tiles to drop