GK Version 1.0.0 (#1)
Establish GK as its own fork with versioning, starting with v1.0.0 - bosshunt mode - dungeon maps are useful - ensure there's always a bee for sale in shop shuffle Reviewed-on: #1 Co-authored-by: Kara Alexandra <ardnaxelarak@gmail.com> Co-committed-by: Kara Alexandra <ardnaxelarak@gmail.com>
This commit was merged in pull request #1.
This commit is contained in:
9
Rules.py
9
Rules.py
@@ -90,6 +90,15 @@ def set_rules(world, player):
|
||||
add_rule(world.get_location('Ganon', player), lambda state: state.has_crystals(world.crystals_needed_for_ganon[player], player))
|
||||
elif world.goal[player] == 'ganonhunt':
|
||||
add_rule(world.get_location('Ganon', player), lambda state: state.item_count('Triforce Piece', player) + state.item_count('Power Star', player) >= int(state.world.treasure_hunt_count[player]))
|
||||
elif world.goal[player] == 'bosshunt':
|
||||
if world.bosshunt_include_agas[player]:
|
||||
add_rule(world.get_location('Ganon', player), lambda state:
|
||||
state.item_count('Beat Agahnim 1', player) +
|
||||
state.item_count('Beat Agahnim 2', player) +
|
||||
state.item_count('Beat Boss', player) >= world.bosses_ganon[player])
|
||||
else:
|
||||
add_rule(world.get_location('Ganon', player), lambda state:
|
||||
state.item_count('Beat Boss', player) >= world.bosses_ganon[player])
|
||||
elif world.goal[player] == 'completionist':
|
||||
add_rule(world.get_location('Ganon', player), lambda state: state.everything(player))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user