Skip to content

Commit

Permalink
Merge pull request ArchipelagoMW#19 from gaithernOrg/dev
Browse files Browse the repository at this point in the history
Added OC Checks
  • Loading branch information
gaithern authored Jan 20, 2024
2 parents 47302fd + 3033d78 commit 754568c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
21 changes: 18 additions & 3 deletions worlds/kh1/Locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,24 @@ def get_locations_by_category(category: str) -> Dict[str, KH1LocationData]:
"Level 099": KH1LocationData("Levels", 265_8099),
"Level 100": KH1LocationData("Levels", 265_8100),
"Complete Phil Cup": KH1LocationData("Cups", 265_9001),
"Complete Pegasus Cup": KH1LocationData("Cups", 265_9002),
"Complete Hercules Cup": KH1LocationData("Cups", 265_9003),
"Complete Hades Cup": KH1LocationData("Cups", 265_9004),
"Complete Phil Cup Solo": KH1LocationData("Cups", 265_9002),
"Complete Phil Cup Time Trial": KH1LocationData("Cups", 265_9003),
"Complete Pegasus Cup": KH1LocationData("Cups", 265_9004),
"Complete Pegasus Cup Solo": KH1LocationData("Cups", 265_9005),
"Complete Pegasus Cup Time Trial": KH1LocationData("Cups", 265_9006),
"Complete Hercules Cup": KH1LocationData("Cups", 265_9007),
"Complete Hercules Cup Solo": KH1LocationData("Cups", 265_9008),
"Complete Hercules Cup Time Trial": KH1LocationData("Cups", 265_9009),
"Complete Hades Cup": KH1LocationData("Cups", 265_9010),
"Complete Hades Cup Solo": KH1LocationData("Cups", 265_9011),
"Complete Hades Cup Time Trial": KH1LocationData("Cups", 265_9012),
"Hades Cup Defeat Cloud and Leon Event": KH1LocationData("Cups", 265_9013),
"Hades Cup Defeat Yuffie Event": KH1LocationData("Cups", 265_9014),
"Hades Cup Defeat Cerberus Event": KH1LocationData("Cups", 265_9015),
"Hades Cup Defeat Behemoth Event": KH1LocationData("Cups", 265_9016),
"Hades Cup Defeat Hades Event": KH1LocationData("Cups", 265_9017),
"Pegasus Cup Defeat Cloud Event": KH1LocationData("Cups", 265_9018),
"Pegasus Cup Yellow Trinity Event": KH1LocationData("Cups", 265_9019)
}

event_location_table: Dict[str, KH1LocationData] = {
Expand Down
15 changes: 15 additions & 0 deletions worlds/kh1/Regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,24 @@ def create_regions(multiworld: MultiWorld, player: int, goal: str, atlantica: bo


regions["Olympus Coliseum"].locations.append("Complete Phil Cup")
regions["Olympus Coliseum"].locations.append("Complete Phil Cup Solo")
regions["Olympus Coliseum"].locations.append("Complete Phil Cup Time Trial")
regions["Olympus Coliseum"].locations.append("Complete Pegasus Cup")
regions["Olympus Coliseum"].locations.append("Complete Pegasus Cup Solo")
regions["Olympus Coliseum"].locations.append("Complete Pegasus Cup Time Trial")
regions["Olympus Coliseum"].locations.append("Complete Hercules Cup")
regions["Olympus Coliseum"].locations.append("Complete Hercules Cup Solo")
regions["Olympus Coliseum"].locations.append("Complete Hercules Cup Time Trial")
regions["Olympus Coliseum"].locations.append("Complete Hades Cup")
regions["Olympus Coliseum"].locations.append("Complete Hades Cup Solo")
regions["Olympus Coliseum"].locations.append("Complete Hades Cup Time Trial")
regions["Olympus Coliseum"].locations.append("Hades Cup Defeat Cloud and Leon Event")
regions["Olympus Coliseum"].locations.append("Hades Cup Defeat Yuffie Event")
regions["Olympus Coliseum"].locations.append("Hades Cup Defeat Cerberus Event")
regions["Olympus Coliseum"].locations.append("Hades Cup Defeat Behemoth Event")
regions["Olympus Coliseum"].locations.append("Hades Cup Defeat Hades Event")
regions["Olympus Coliseum"].locations.append("Pegasus Cup Defeat Cloud Event")
regions["Olympus Coliseum"].locations.append("Pegasus Cup Yellow Trinity Event")

# Set up the regions correctly.
for name, data in regions.items():
Expand Down
15 changes: 15 additions & 0 deletions worlds/kh1/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,24 @@ def set_rules(multiworld: MultiWorld, player: int, goal: str, atlantica: bool):
multiworld.get_location("Ansem's Secret Report 13" , player).access_rule = lambda state: has_emblems(state, player)

multiworld.get_location("Complete Phil Cup" , player).access_rule = lambda state: has_item(state, player, "Phil Cup")
multiworld.get_location("Complete Phil Cup Solo" , player).access_rule = lambda state: has_item(state, player, "Phil Cup")
multiworld.get_location("Complete Phil Cup Time Trial" , player).access_rule = lambda state: has_item(state, player, "Phil Cup")
multiworld.get_location("Complete Pegasus Cup" , player).access_rule = lambda state: has_item(state, player, "Pegasus Cup")
multiworld.get_location("Complete Pegasus Cup Solo" , player).access_rule = lambda state: has_item(state, player, "Pegasus Cup")
multiworld.get_location("Complete Pegasus Cup Time Trial" , player).access_rule = lambda state: has_item(state, player, "Pegasus Cup")
multiworld.get_location("Complete Hercules Cup" , player).access_rule = lambda state: has_item(state, player, "Hercules Cup")
multiworld.get_location("Complete Hercules Cup Solo" , player).access_rule = lambda state: has_item(state, player, "Hercules Cup")
multiworld.get_location("Complete Hercules Cup Time Trial" , player).access_rule = lambda state: has_item(state, player, "Hercules Cup")
multiworld.get_location("Complete Hades Cup" , player).access_rule = lambda state: has_item(state, player, "Phil Cup") and has_item(state, player, "Pegasus Cup") and has_item(state, player, "Hercules Cup")
multiworld.get_location("Complete Hades Cup Solo" , player).access_rule = lambda state: has_item(state, player, "Phil Cup") and has_item(state, player, "Pegasus Cup") and has_item(state, player, "Hercules Cup")
multiworld.get_location("Complete Hades Cup Time Trial" , player).access_rule = lambda state: has_item(state, player, "Phil Cup") and has_item(state, player, "Pegasus Cup") and has_item(state, player, "Hercules Cup")
multiworld.get_location("Hades Cup Defeat Cloud and Leon Event" , player).access_rule = lambda state: has_item(state, player, "Phil Cup") and has_item(state, player, "Pegasus Cup") and has_item(state, player, "Hercules Cup")
multiworld.get_location("Hades Cup Defeat Yuffie Event" , player).access_rule = lambda state: has_item(state, player, "Phil Cup") and has_item(state, player, "Pegasus Cup") and has_item(state, player, "Hercules Cup")
multiworld.get_location("Hades Cup Defeat Cerberus Event" , player).access_rule = lambda state: has_item(state, player, "Phil Cup") and has_item(state, player, "Pegasus Cup") and has_item(state, player, "Hercules Cup")
multiworld.get_location("Hades Cup Defeat Behemoth Event" , player).access_rule = lambda state: has_item(state, player, "Phil Cup") and has_item(state, player, "Pegasus Cup") and has_item(state, player, "Hercules Cup")
multiworld.get_location("Hades Cup Defeat Hades Event" , player).access_rule = lambda state: has_item(state, player, "Phil Cup") and has_item(state, player, "Pegasus Cup") and has_item(state, player, "Hercules Cup")
multiworld.get_location("Pegasus Cup Defeat Cloud Event" , player).access_rule = lambda state: has_item(state, player, "Pegasus Cup")
multiworld.get_location("Pegasus Cup Yellow Trinity Event" , player).access_rule = lambda state: has_item(state, player, "Pegasus Cup")

# Region rules.
multiworld.get_entrance("Wonderland" , player).access_rule = lambda state: has_item(state, player,"Wonderland")
Expand Down

0 comments on commit 754568c

Please sign in to comment.