Skip to content

Commit

Permalink
romk logic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvris committed Feb 6, 2025
1 parent 4d88636 commit f7eff74
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions worlds/kss/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,26 @@ def set_rules(world: "KSSWorld"):

if "Revenge of Meta Knight" in world.options.included_subgames:
# Revenge of Meta Knight
set_rule(world.get_location(location_names.romk_chapter_3),
lambda state: state.has(item_names.fire, world.player))
set_rule(world.get_entrance("RoMK - Chapter 3 -> RoMK - Chapter 4"),
lambda state: state.has(item_names.fire, world.player))
set_rule(world.get_location(location_names.romk_chapter_4),
lambda state: state.has_any([item_names.beam,
item_names.yoyo,
item_names.jet,
item_names.bomb],
world.player))
set_rule(world.get_entrance("RoMK - Chapter 4 -> RoMK - Chapter 5"),
lambda state: state.has_any([item_names.beam,
item_names.yoyo,
item_names.jet,
item_names.bomb],
world.player))
set_rule(world.get_location(location_names.romk_chapter_5),
lambda state: state.has_any([item_names.wing,
item_names.suplex],
world.player))
set_rule(world.get_entrance("RoMK - Chapter 5 -> RoMK - Chapter 6"),
lambda state: state.has_any([item_names.wing,
item_names.suplex],
Expand Down

0 comments on commit f7eff74

Please sign in to comment.