Skip to content

Commit d103de4

Browse files
authored
Merge pull request ArchipelagoMW#2 from gaithernOrg/dev
Add options for starting worlds, renamed locations
2 parents 3497e47 + 540fc2d commit d103de4

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

worlds/khrecom/Locations.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ def get_locations_by_category(category: str) -> Dict[str, KHRECOMLocationData]:
284284
"Olympus Coliseum Room of Truth (Sleight Cross-slash)": KHRECOMLocationData("Progression", 269_2062),
285285
"Olympus Coliseum Room of Truth (Sleight Omnislash)": KHRECOMLocationData("Progression", 269_2063),
286286
"100 Acre Wood Veggie Panic (Sleight Cross-slash+)": KHRECOMLocationData("Progression", 269_2064),
287-
"Starting Checks (Sleight Magic LV2)": KHRECOMLocationData("Progression", 269_2065),
288-
"Starting Checks (Sleight Magic LV3)": KHRECOMLocationData("Progression", 269_2066),
287+
"Pick Up Donald In Battle (Sleight Magic LV2)": KHRECOMLocationData("Progression", 269_2065),
288+
"Pick Up Donald In Battle (Sleight Magic LV3)": KHRECOMLocationData("Progression", 269_2066),
289289
"Twilight Town Room of Rewards (Sleight Stardust Blitz)": KHRECOMLocationData("Progression", 269_2067),
290-
"Starting Checks (Sleight Goofy Tornado LV2)": KHRECOMLocationData("Progression", 269_2068),
291-
"Starting Checks (Sleight Goofy Tornado LV3)": KHRECOMLocationData("Progression", 269_2069),
292-
"Starting Checks (Sleight Goofy Smash)": KHRECOMLocationData("Progression", 269_2070),
293-
"Starting Checks (Sleight Wild Crush)": KHRECOMLocationData("Progression", 269_2071),
290+
"Pick Up Goofy In Battle (Sleight Goofy Tornado LV2)": KHRECOMLocationData("Progression", 269_2068),
291+
"Pick Up Goofy In Battle (Sleight Goofy Tornado LV3)": KHRECOMLocationData("Progression", 269_2069),
292+
"Pick Up Goofy In Battle (Sleight Goofy Smash)": KHRECOMLocationData("Progression", 269_2070),
293+
"Pick Up Goofy In Battle (Sleight Wild Crush)": KHRECOMLocationData("Progression", 269_2071),
294294
"Agrabah Ally (Sleight Sandstorm LV2)": KHRECOMLocationData("Progression", 269_2072),
295295
"Agrabah Ally (Sleight Sandstorm LV3)": KHRECOMLocationData("Progression", 269_2073),
296296
"Halloween Town Ally (Sleight Surprise! LV2)": KHRECOMLocationData("Progression", 269_2074),
@@ -301,8 +301,8 @@ def get_locations_by_category(category: str) -> Dict[str, KHRECOMLocationData]:
301301
"Neverland Ally (Sleight Hummingbird LV3)": KHRECOMLocationData("Progression", 269_2079),
302302
"Hollow Bastion Ally (Sleight Furious Volley LV2)": KHRECOMLocationData("Progression", 269_2080),
303303
"Hollow Bastion Ally (Sleight Furious Volley LV3)": KHRECOMLocationData("Progression", 269_2081),
304-
"Traverse Town Room of Beginnings (Sleight Lucky Bounty LV2)": KHRECOMLocationData("Progression", 269_2082),
305-
"Traverse Town Room of Beginnings (Sleight Lucky Bounty LV3)": KHRECOMLocationData("Progression", 269_2083),
304+
"Pick Up Pluto In Battle (Sleight Lucky Bounty LV2)": KHRECOMLocationData("Progression", 269_2082),
305+
"Pick Up Pluto In Battle (Sleight Lucky Bounty LV3)": KHRECOMLocationData("Progression", 269_2083),
306306

307307
"Final Marluxia": KHRECOMLocationData("Progression", 269_9999),
308308
}

worlds/khrecom/Options.py

+7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ class DaysLocations(Toggle):
3535
"""
3636
display_name = "Days Locations"
3737

38+
class StartingWorlds(Toggle):
39+
"""
40+
Toggle whether 3 world cards are guaranteed as part of your starting checks.
41+
"""
42+
display_name = "Starting Worlds"
43+
3844
class ChecksBehindLeon(Toggle):
3945
"""
4046
Toggle whether to include checks behind the Leon sleight tutorial. If left off, the player can safely skip that room.
@@ -73,3 +79,4 @@ class KHRECOMOptions(PerGameCommonOptions):
7379
levels: ChecksBehindSleightsLevels
7480
zeroes: Zeroes
7581
attack_power: AttackPower
82+
starting_worlds: StartingWorlds

worlds/khrecom/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def create_items(self):
6060
starting_worlds = self.random.sample(list(starting_worlds.keys()),3)
6161
i = 0
6262
while i < 4:
63-
if i < 3:
63+
if i < 3 and self.options.starting_worlds:
6464
self.multiworld.get_location(starting_locations[i], self.player).place_locked_item(self.create_item(starting_worlds[i]))
6565
elif i == 3 and self.options.early_cure:
6666
self.multiworld.get_location(starting_locations[i], self.player).place_locked_item(self.create_item("Card Set Cure"))
@@ -72,7 +72,7 @@ def create_items(self):
7272
# Ignore filler, it will be added in a later stage.
7373
if data.category not in ["World Unlocks", "Gold Map Cards", "Friend Cards", "Enemy Cards", "Sleights"]:
7474
continue
75-
if name not in starting_worlds:
75+
if not self.options.starting_worlds or name not in starting_worlds:
7676
item_pool += [self.create_item(name) for _ in range(0, quantity)]
7777

7878
# Fill any empty locations with filler items.

0 commit comments

Comments
 (0)