mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-10 05:38:12 -07:00
Merge branch 'main' into main
This commit is contained in:
@@ -73,7 +73,12 @@ class WorldSource:
|
||||
else: # TODO: remove with 3.8 support
|
||||
mod = importer.load_module(os.path.basename(self.path).rsplit(".", 1)[0])
|
||||
|
||||
mod.__package__ = f"worlds.{mod.__package__}"
|
||||
if mod.__package__ is not None:
|
||||
mod.__package__ = f"worlds.{mod.__package__}"
|
||||
else:
|
||||
# load_module does not populate package, we'll have to assume mod.__name__ is correct here
|
||||
# probably safe to remove with 3.8 support
|
||||
mod.__package__ = f"worlds.{mod.__name__}"
|
||||
mod.__name__ = f"worlds.{mod.__name__}"
|
||||
sys.modules[mod.__name__] = mod
|
||||
with warnings.catch_warnings():
|
||||
|
||||
@@ -39,7 +39,7 @@ def create_itempool(world: "HatInTimeWorld") -> List[Item]:
|
||||
continue
|
||||
else:
|
||||
if name == "Scooter Badge":
|
||||
if world.options.CTRLogic is CTRLogic.option_scooter or get_difficulty(world) >= Difficulty.MODERATE:
|
||||
if world.options.CTRLogic == CTRLogic.option_scooter or get_difficulty(world) >= Difficulty.MODERATE:
|
||||
item_type = ItemClassification.progression
|
||||
elif name == "No Bonk Badge" and world.is_dw():
|
||||
item_type = ItemClassification.progression
|
||||
|
||||
@@ -292,6 +292,9 @@ blacklisted_combos = {
|
||||
# See above comment
|
||||
"Time Rift - Deep Sea": ["Alpine Free Roam", "Nyakuza Free Roam", "Contractual Obligations",
|
||||
"Murder on the Owl Express"],
|
||||
|
||||
# was causing test failures
|
||||
"Time Rift - Balcony": ["Alpine Free Roam"],
|
||||
}
|
||||
|
||||
|
||||
@@ -656,6 +659,10 @@ def is_valid_act_combo(world: "HatInTimeWorld", entrance_act: Region,
|
||||
if exit_act.name not in chapter_finales:
|
||||
return False
|
||||
|
||||
exit_chapter: str = act_chapters.get(exit_act.name)
|
||||
# make sure that certain time rift combinations never happen
|
||||
always_block: bool = exit_chapter != "Mafia Town" and exit_chapter != "Subcon Forest"
|
||||
if not ignore_certain_rules or always_block:
|
||||
if entrance_act.name in rift_access_regions and exit_act.name in rift_access_regions[entrance_act.name]:
|
||||
return False
|
||||
|
||||
@@ -681,9 +688,12 @@ def is_valid_first_act(world: "HatInTimeWorld", act: Region) -> bool:
|
||||
if act.name not in guaranteed_first_acts:
|
||||
return False
|
||||
|
||||
if world.options.ActRandomizer == ActRandomizer.option_light and "Time Rift" in act.name:
|
||||
return False
|
||||
|
||||
# If there's only a single level in the starting chapter, only allow Mafia Town or Subcon Forest levels
|
||||
start_chapter = world.options.StartingChapter
|
||||
if start_chapter is ChapterIndex.ALPINE or start_chapter is ChapterIndex.SUBCON:
|
||||
if start_chapter == ChapterIndex.ALPINE or start_chapter == ChapterIndex.SUBCON:
|
||||
if "Time Rift" in act.name:
|
||||
return False
|
||||
|
||||
@@ -720,7 +730,8 @@ def is_valid_first_act(world: "HatInTimeWorld", act: Region) -> bool:
|
||||
elif act.name == "Contractual Obligations" and world.options.ShuffleSubconPaintings:
|
||||
return False
|
||||
|
||||
if world.options.ShuffleSubconPaintings and act_chapters.get(act.name, "") == "Subcon Forest":
|
||||
if world.options.ShuffleSubconPaintings and "Time Rift" not in act.name \
|
||||
and act_chapters.get(act.name, "") == "Subcon Forest":
|
||||
# Only allow Subcon levels if painting skips are allowed
|
||||
if diff < Difficulty.MODERATE or world.options.NoPaintingSkips:
|
||||
return False
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from worlds.AutoWorld import CollectionState
|
||||
from worlds.generic.Rules import add_rule, set_rule
|
||||
from .Locations import location_table, zipline_unlocks, is_location_valid, contract_locations, \
|
||||
shop_locations, event_locs
|
||||
from .Locations import location_table, zipline_unlocks, is_location_valid, shop_locations, event_locs
|
||||
from .Types import HatType, ChapterIndex, hat_type_to_item, Difficulty, HitType
|
||||
from BaseClasses import Location, Entrance, Region
|
||||
from typing import TYPE_CHECKING, List, Callable, Union, Dict
|
||||
@@ -148,14 +147,14 @@ def set_rules(world: "HatInTimeWorld"):
|
||||
if world.is_dlc1():
|
||||
chapter_list.append(ChapterIndex.CRUISE)
|
||||
|
||||
if world.is_dlc2() and final_chapter is not ChapterIndex.METRO:
|
||||
if world.is_dlc2() and final_chapter != ChapterIndex.METRO:
|
||||
chapter_list.append(ChapterIndex.METRO)
|
||||
|
||||
chapter_list.remove(starting_chapter)
|
||||
world.random.shuffle(chapter_list)
|
||||
|
||||
# Make sure Alpine is unlocked before any DLC chapters are, as the Alpine door needs to be open to access them
|
||||
if starting_chapter is not ChapterIndex.ALPINE and (world.is_dlc1() or world.is_dlc2()):
|
||||
if starting_chapter != ChapterIndex.ALPINE and (world.is_dlc1() or world.is_dlc2()):
|
||||
index1 = 69
|
||||
index2 = 69
|
||||
pos: int
|
||||
@@ -165,7 +164,7 @@ def set_rules(world: "HatInTimeWorld"):
|
||||
if world.is_dlc1():
|
||||
index1 = chapter_list.index(ChapterIndex.CRUISE)
|
||||
|
||||
if world.is_dlc2() and final_chapter is not ChapterIndex.METRO:
|
||||
if world.is_dlc2() and final_chapter != ChapterIndex.METRO:
|
||||
index2 = chapter_list.index(ChapterIndex.METRO)
|
||||
|
||||
lowest_index = min(index1, index2)
|
||||
@@ -242,9 +241,6 @@ def set_rules(world: "HatInTimeWorld"):
|
||||
if not is_location_valid(world, key):
|
||||
continue
|
||||
|
||||
if key in contract_locations.keys():
|
||||
continue
|
||||
|
||||
loc = world.multiworld.get_location(key, world.player)
|
||||
|
||||
for hat in data.required_hats:
|
||||
@@ -256,7 +252,7 @@ def set_rules(world: "HatInTimeWorld"):
|
||||
if data.paintings > 0 and world.options.ShuffleSubconPaintings:
|
||||
add_rule(loc, lambda state, paintings=data.paintings: has_paintings(state, world, paintings))
|
||||
|
||||
if data.hit_type is not HitType.none and world.options.UmbrellaLogic:
|
||||
if data.hit_type != HitType.none and world.options.UmbrellaLogic:
|
||||
if data.hit_type == HitType.umbrella:
|
||||
add_rule(loc, lambda state: state.has("Umbrella", world.player))
|
||||
|
||||
@@ -518,7 +514,7 @@ def set_hard_rules(world: "HatInTimeWorld"):
|
||||
lambda state: can_use_hat(state, world, HatType.ICE))
|
||||
|
||||
# Hard: clear Rush Hour with Brewing Hat only
|
||||
if world.options.NoTicketSkips is not NoTicketSkips.option_true:
|
||||
if world.options.NoTicketSkips != NoTicketSkips.option_true:
|
||||
set_rule(world.multiworld.get_location("Act Completion (Rush Hour)", world.player),
|
||||
lambda state: can_use_hat(state, world, HatType.BREWING))
|
||||
else:
|
||||
@@ -863,6 +859,8 @@ def set_rift_rules(world: "HatInTimeWorld", regions: Dict[str, Region]):
|
||||
if world.is_dlc1():
|
||||
for entrance in regions["Time Rift - Balcony"].entrances:
|
||||
add_rule(entrance, lambda state: can_clear_required_act(state, world, "The Arctic Cruise - Finale"))
|
||||
reg_act_connection(world, world.multiworld.get_entrance("The Arctic Cruise - Finale",
|
||||
world.player).connected_region, entrance)
|
||||
|
||||
for entrance in regions["Time Rift - Deep Sea"].entrances:
|
||||
add_rule(entrance, lambda state: has_relic_combo(state, world, "Cake"))
|
||||
@@ -939,6 +937,7 @@ def set_default_rift_rules(world: "HatInTimeWorld"):
|
||||
if world.is_dlc1():
|
||||
for entrance in world.multiworld.get_region("Time Rift - Balcony", world.player).entrances:
|
||||
add_rule(entrance, lambda state: can_clear_required_act(state, world, "The Arctic Cruise - Finale"))
|
||||
reg_act_connection(world, "Rock the Boat", entrance.name)
|
||||
|
||||
for entrance in world.multiworld.get_region("Time Rift - Deep Sea", world.player).entrances:
|
||||
add_rule(entrance, lambda state: has_relic_combo(state, world, "Cake"))
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
from BaseClasses import Item, ItemClassification, Tutorial, Location, MultiWorld
|
||||
from .Items import item_table, create_item, relic_groups, act_contracts, create_itempool, get_shop_trap_name, \
|
||||
calculate_yarn_costs
|
||||
calculate_yarn_costs, alps_hooks
|
||||
from .Regions import create_regions, randomize_act_entrances, chapter_act_info, create_events, get_shuffled_region
|
||||
from .Locations import location_table, contract_locations, is_location_valid, get_location_names, TASKSANITY_START_ID, \
|
||||
get_total_locations
|
||||
from .Rules import set_rules
|
||||
from .Rules import set_rules, has_paintings
|
||||
from .Options import AHITOptions, slot_data_options, adjust_options, RandomizeHatOrder, EndGoal, create_option_groups
|
||||
from .Types import HatType, ChapterIndex, HatInTimeItem, hat_type_to_item
|
||||
from .Types import HatType, ChapterIndex, HatInTimeItem, hat_type_to_item, Difficulty
|
||||
from .DeathWishLocations import create_dw_regions, dw_classes, death_wishes
|
||||
from .DeathWishRules import set_dw_rules, create_enemy_events, hit_list, bosses
|
||||
from worlds.AutoWorld import World, WebWorld, CollectionState
|
||||
from worlds.generic.Rules import add_rule
|
||||
from typing import List, Dict, TextIO
|
||||
from worlds.LauncherComponents import Component, components, icon_paths, launch_subprocess, Type
|
||||
from Utils import local_path
|
||||
@@ -86,19 +87,27 @@ class HatInTimeWorld(World):
|
||||
if self.is_dw_only():
|
||||
return
|
||||
|
||||
# If our starting chapter is 4 and act rando isn't on, force hookshot into inventory
|
||||
# If starting chapter is 3 and painting shuffle is enabled, and act rando isn't, give one free painting unlock
|
||||
start_chapter: ChapterIndex = ChapterIndex(self.options.StartingChapter)
|
||||
# Take care of some extremely restrictive starts in other chapters with act shuffle off
|
||||
if not self.options.ActRandomizer:
|
||||
start_chapter = self.options.StartingChapter
|
||||
if start_chapter == ChapterIndex.ALPINE:
|
||||
self.multiworld.push_precollected(self.create_item("Hookshot Badge"))
|
||||
if self.options.UmbrellaLogic:
|
||||
self.multiworld.push_precollected(self.create_item("Umbrella"))
|
||||
|
||||
if start_chapter == ChapterIndex.ALPINE or start_chapter == ChapterIndex.SUBCON:
|
||||
if not self.options.ActRandomizer:
|
||||
if start_chapter == ChapterIndex.ALPINE:
|
||||
self.multiworld.push_precollected(self.create_item("Hookshot Badge"))
|
||||
if self.options.UmbrellaLogic:
|
||||
self.multiworld.push_precollected(self.create_item("Umbrella"))
|
||||
|
||||
if start_chapter == ChapterIndex.SUBCON and self.options.ShuffleSubconPaintings:
|
||||
if self.options.ShuffleAlpineZiplines:
|
||||
ziplines = list(alps_hooks.keys())
|
||||
ziplines.remove("Zipline Unlock - The Twilight Bell Path") # not enough checks from this one
|
||||
self.multiworld.push_precollected(self.create_item(self.random.choice(ziplines)))
|
||||
elif start_chapter == ChapterIndex.SUBCON:
|
||||
if self.options.ShuffleSubconPaintings:
|
||||
self.multiworld.push_precollected(self.create_item("Progressive Painting Unlock"))
|
||||
elif start_chapter == ChapterIndex.BIRDS:
|
||||
if self.options.UmbrellaLogic:
|
||||
if self.options.LogicDifficulty < Difficulty.EXPERT:
|
||||
self.multiworld.push_precollected(self.create_item("Umbrella"))
|
||||
elif self.options.LogicDifficulty < Difficulty.MODERATE:
|
||||
self.multiworld.push_precollected(self.create_item("Umbrella"))
|
||||
|
||||
def create_regions(self):
|
||||
# noinspection PyClassVar
|
||||
@@ -119,7 +128,10 @@ class HatInTimeWorld(World):
|
||||
# place vanilla contract locations if contract shuffle is off
|
||||
if not self.options.ShuffleActContracts:
|
||||
for name in contract_locations.keys():
|
||||
self.multiworld.get_location(name, self.player).place_locked_item(create_item(self, name))
|
||||
loc = self.get_location(name)
|
||||
loc.place_locked_item(create_item(self, name))
|
||||
if self.options.ShuffleSubconPaintings and loc.name != "Snatcher's Contract - The Subcon Well":
|
||||
add_rule(loc, lambda state: has_paintings(state, self, 1))
|
||||
|
||||
def create_items(self):
|
||||
if self.has_yarn():
|
||||
@@ -317,7 +329,7 @@ class HatInTimeWorld(World):
|
||||
|
||||
def remove(self, state: "CollectionState", item: "Item") -> bool:
|
||||
old_count: int = state.count(item.name, self.player)
|
||||
change = super().collect(state, item)
|
||||
change = super().remove(state, item)
|
||||
if change and old_count == 1:
|
||||
if "Stamp" in item.name:
|
||||
if "2 Stamp" in item.name:
|
||||
|
||||
@@ -12,41 +12,29 @@
|
||||
|
||||
## Instructions
|
||||
|
||||
1. Have Steam running. Open the Steam console with this link: [steam://open/console](steam://open/console)
|
||||
This may not work for some browsers. If that's the case, and you're on Windows, open the Run dialog using Win+R,
|
||||
paste the link into the box, and hit Enter.
|
||||
1. **BACK UP YOUR SAVE FILES IN YOUR MAIN INSTALL IF YOU CARE ABOUT THEM!!!**
|
||||
Go to `steamapps/common/HatinTime/HatinTimeGame/SaveData/` and copy everything inside that folder over to a safe place.
|
||||
**This is important! Changing the game version CAN and WILL break your existing save files!!!**
|
||||
|
||||
|
||||
2. In the Steam console, enter the following command:
|
||||
`download_depot 253230 253232 7770543545116491859`. ***Wait for the console to say the download is finished!***
|
||||
This can take a while to finish (30+ minutes) depending on your connection speed, so please be patient. Additionally,
|
||||
**try to prevent your connection from being interrupted or slowed while Steam is downloading the depot,**
|
||||
or else the download may potentially become corrupted (see first FAQ issue below).
|
||||
2. In your Steam library, right-click on **A Hat in Time** in the list of games and click on **Properties**.
|
||||
|
||||
|
||||
3. Once the download finishes, go to `steamapps/content/app_253230` in Steam's program folder.
|
||||
3. Click the **Betas** tab. In the **Beta Participation** dropdown, select `tcplink`.
|
||||
While it downloads, you can subscribe to the [Archipelago workshop mod.]((https://steamcommunity.com/sharedfiles/filedetails/?id=3026842601))
|
||||
|
||||
|
||||
4. There should be a folder named `depot_253232`. Rename it to HatinTime_AP and move it to your `steamapps/common` folder.
|
||||
4. Once the game finishes downloading, start it up.
|
||||
In Game Settings, make sure **Enable Developer Console** is checked.
|
||||
|
||||
|
||||
5. In the HatinTime_AP folder, navigate to `Binaries/Win64` and create a new file: `steam_appid.txt`.
|
||||
In this new text file, input the number **253230** on the first line.
|
||||
|
||||
|
||||
6. Create a shortcut of `HatinTimeGame.exe` from that folder and move it to wherever you'd like.
|
||||
You will use this shortcut to open the Archipelago-compatible version of A Hat in Time.
|
||||
|
||||
|
||||
7. Start up the game using your new shortcut. To confirm if you are on the correct version,
|
||||
go to Settings -> Game Settings. If you don't see an option labelled ***Live Game Events*** you should be running
|
||||
the correct version of the game. In Game Settings, make sure ***Enable Developer Console*** is checked.
|
||||
5. You should now be good to go. See below for more details on how to use the mod and connect to an Archipelago game.
|
||||
|
||||
|
||||
## Connecting to the Archipelago server
|
||||
|
||||
To connect to the multiworld server, simply run the **ArchipelagoAHITClient**
|
||||
(or run it from the Launcher if you have the apworld installed) and connect it to the Archipelago server.
|
||||
To connect to the multiworld server, simply run the **Archipelago AHIT Client** from the Launcher
|
||||
and connect it to the Archipelago server.
|
||||
The game will connect to the client automatically when you create a new save file.
|
||||
|
||||
|
||||
@@ -61,33 +49,8 @@ make sure ***Enable Developer Console*** is checked in Game Settings and press t
|
||||
|
||||
|
||||
## FAQ/Common Issues
|
||||
### I followed the setup, but I receive an odd error message upon starting the game or creating a save file!
|
||||
If you receive an error message such as
|
||||
**"Failed to find default engine .ini to retrieve My Documents subdirectory to use. Force quitting."** or
|
||||
**"Failed to load map "hub_spaceship"** after booting up the game or creating a save file respectively, then the depot
|
||||
download was likely corrupted. The only way to fix this is to start the entire download all over again.
|
||||
Unfortunately, this appears to be an underlying issue with Steam's depot downloader. The only way to really prevent this
|
||||
from happening is to ensure that your connection is not interrupted or slowed while downloading.
|
||||
|
||||
### The game keeps crashing on startup after the splash screen!
|
||||
This issue is unfortunately very hard to fix, and the underlying cause is not known. If it does happen however,
|
||||
try the following:
|
||||
|
||||
- Close Steam **entirely**.
|
||||
- Open the downpatched version of the game (with Steam closed) and allow it to load to the titlescreen.
|
||||
- Close the game, and then open Steam again.
|
||||
- After launching the game, the issue should hopefully disappear. If not, repeat the above steps until it does.
|
||||
|
||||
### I followed the setup, but "Live Game Events" still shows up in the options menu!
|
||||
The most common cause of this is the `steam_appid.txt` file. If you're on Windows 10, file extensions are hidden by
|
||||
default (thanks Microsoft). You likely made the mistake of still naming the file `steam_appid.txt`, which, since file
|
||||
extensions are hidden, would result in the file being named `steam_appid.txt.txt`, which is incorrect.
|
||||
To show file extensions in Windows 10, open any folder, click the View tab at the top, and check
|
||||
"File name extensions". Then you can correct the name of the file. If the name of the file is correct,
|
||||
and you're still running into the issue, re-read the setup guide again in case you missed a step.
|
||||
If you still can't get it to work, ask for help in the Discord thread.
|
||||
|
||||
### The game is running on the older version, but it's not connecting when starting a new save!
|
||||
### The game is not connecting when starting a new save!
|
||||
For unknown reasons, the mod will randomly disable itself in the mod menu. To fix this, go to the Mods menu
|
||||
(rocket icon) in-game, and re-enable the mod.
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import typing
|
||||
|
||||
from BaseClasses import MultiWorld
|
||||
from Options import Choice, Range, Option, Toggle, DefaultOnToggle, DeathLink, \
|
||||
StartInventoryPool, PlandoBosses, PlandoConnections, PlandoTexts, FreeText, Removed
|
||||
from Options import Choice, Range, DeathLink, DefaultOnToggle, FreeText, ItemsAccessibility, Option, \
|
||||
PlandoBosses, PlandoConnections, PlandoTexts, Removed, StartInventoryPool, Toggle
|
||||
from .EntranceShuffle import default_connections, default_dungeon_connections, \
|
||||
inverted_default_connections, inverted_default_dungeon_connections
|
||||
from .Text import TextTable
|
||||
@@ -743,6 +743,7 @@ class ALttPPlandoTexts(PlandoTexts):
|
||||
|
||||
|
||||
alttp_options: typing.Dict[str, type(Option)] = {
|
||||
"accessibility": ItemsAccessibility,
|
||||
"plando_connections": ALttPPlandoConnections,
|
||||
"plando_texts": ALttPPlandoTexts,
|
||||
"start_inventory_from_pool": StartInventoryPool,
|
||||
|
||||
@@ -2,6 +2,7 @@ import collections
|
||||
import logging
|
||||
from typing import Iterator, Set
|
||||
|
||||
from Options import ItemsAccessibility
|
||||
from BaseClasses import Entrance, MultiWorld
|
||||
from worlds.generic.Rules import (add_item_rule, add_rule, forbid_item,
|
||||
item_name_in_location_names, location_item_name, set_rule, allow_self_locking_items)
|
||||
@@ -39,7 +40,7 @@ def set_rules(world):
|
||||
else:
|
||||
# Set access rules according to max glitches for multiworld progression.
|
||||
# Set accessibility to none, and shuffle assuming the no logic players can always win
|
||||
world.accessibility[player] = world.accessibility[player].from_text("minimal")
|
||||
world.accessibility[player].value = ItemsAccessibility.option_minimal
|
||||
world.progression_balancing[player].value = 0
|
||||
|
||||
else:
|
||||
@@ -377,7 +378,7 @@ def global_rules(multiworld: MultiWorld, player: int):
|
||||
or state.has("Cane of Somaria", player)))
|
||||
set_rule(multiworld.get_location('Tower of Hera - Big Chest', player), lambda state: state.has('Big Key (Tower of Hera)', player))
|
||||
set_rule(multiworld.get_location('Tower of Hera - Big Key Chest', player), lambda state: has_fire_source(state, player))
|
||||
if multiworld.accessibility[player] != 'locations':
|
||||
if multiworld.accessibility[player] != 'full':
|
||||
set_always_allow(multiworld.get_location('Tower of Hera - Big Key Chest', player), lambda state, item: item.name == 'Small Key (Tower of Hera)' and item.player == player)
|
||||
|
||||
set_rule(multiworld.get_entrance('Swamp Palace Moat', player), lambda state: state.has('Flippers', player) and state.has('Open Floodgate', player))
|
||||
@@ -393,7 +394,7 @@ def global_rules(multiworld: MultiWorld, player: int):
|
||||
if state.has('Hookshot', player)
|
||||
else state._lttp_has_key('Small Key (Swamp Palace)', player, 4))
|
||||
set_rule(multiworld.get_location('Swamp Palace - Big Chest', player), lambda state: state.has('Big Key (Swamp Palace)', player))
|
||||
if multiworld.accessibility[player] != 'locations':
|
||||
if multiworld.accessibility[player] != 'full':
|
||||
allow_self_locking_items(multiworld.get_location('Swamp Palace - Big Chest', player), 'Big Key (Swamp Palace)')
|
||||
set_rule(multiworld.get_entrance('Swamp Palace (North)', player), lambda state: state.has('Hookshot', player) and state._lttp_has_key('Small Key (Swamp Palace)', player, 5))
|
||||
if not multiworld.small_key_shuffle[player] and multiworld.glitches_required[player] not in ['hybrid_major_glitches', 'no_logic']:
|
||||
@@ -423,7 +424,7 @@ def global_rules(multiworld: MultiWorld, player: int):
|
||||
set_rule(multiworld.get_entrance('Skull Woods First Section West Door', player), lambda state: state._lttp_has_key('Small Key (Skull Woods)', player, 5))
|
||||
set_rule(multiworld.get_entrance('Skull Woods First Section (Left) Door to Exit', player), lambda state: state._lttp_has_key('Small Key (Skull Woods)', player, 5))
|
||||
set_rule(multiworld.get_location('Skull Woods - Big Chest', player), lambda state: state.has('Big Key (Skull Woods)', player) and can_use_bombs(state, player))
|
||||
if multiworld.accessibility[player] != 'locations':
|
||||
if multiworld.accessibility[player] != 'full':
|
||||
allow_self_locking_items(multiworld.get_location('Skull Woods - Big Chest', player), 'Big Key (Skull Woods)')
|
||||
set_rule(multiworld.get_entrance('Skull Woods Torch Room', player), lambda state: state._lttp_has_key('Small Key (Skull Woods)', player, 4) and state.has('Fire Rod', player) and has_sword(state, player)) # sword required for curtain
|
||||
add_rule(multiworld.get_location('Skull Woods - Prize', player), lambda state: state._lttp_has_key('Small Key (Skull Woods)', player, 5))
|
||||
@@ -488,7 +489,7 @@ def global_rules(multiworld: MultiWorld, player: int):
|
||||
set_rule(multiworld.get_location('Turtle Rock - Roller Room - Right', player), lambda state: state.has('Cane of Somaria', player) and state.has('Fire Rod', player))
|
||||
set_rule(multiworld.get_location('Turtle Rock - Big Chest', player), lambda state: state.has('Big Key (Turtle Rock)', player) and (state.has('Cane of Somaria', player) or state.has('Hookshot', player)))
|
||||
set_rule(multiworld.get_entrance('Turtle Rock (Big Chest) (North)', player), lambda state: state.has('Cane of Somaria', player) or state.has('Hookshot', player))
|
||||
set_rule(multiworld.get_entrance('Turtle Rock Big Key Door', player), lambda state: state.has('Big Key (Turtle Rock)', player) and can_kill_most_things(state, player, 10))
|
||||
set_rule(multiworld.get_entrance('Turtle Rock Big Key Door', player), lambda state: state.has('Big Key (Turtle Rock)', player) and can_kill_most_things(state, player, 10) and can_bomb_or_bonk(state, player))
|
||||
set_rule(multiworld.get_location('Turtle Rock - Chain Chomps', player), lambda state: can_use_bombs(state, player) or can_shoot_arrows(state, player)
|
||||
or has_beam_sword(state, player) or state.has_any(["Blue Boomerang", "Red Boomerang", "Hookshot", "Cane of Somaria", "Fire Rod", "Ice Rod"], player))
|
||||
set_rule(multiworld.get_entrance('Turtle Rock (Dark Room) (North)', player), lambda state: state.has('Cane of Somaria', player))
|
||||
@@ -522,12 +523,12 @@ def global_rules(multiworld: MultiWorld, player: int):
|
||||
|
||||
set_rule(multiworld.get_entrance('Palace of Darkness Big Key Chest Staircase', player), lambda state: can_use_bombs(state, player) and (state._lttp_has_key('Small Key (Palace of Darkness)', player, 6) or (
|
||||
location_item_name(state, 'Palace of Darkness - Big Key Chest', player) in [('Small Key (Palace of Darkness)', player)] and state._lttp_has_key('Small Key (Palace of Darkness)', player, 3))))
|
||||
if multiworld.accessibility[player] != 'locations':
|
||||
if multiworld.accessibility[player] != 'full':
|
||||
set_always_allow(multiworld.get_location('Palace of Darkness - Big Key Chest', player), lambda state, item: item.name == 'Small Key (Palace of Darkness)' and item.player == player and state._lttp_has_key('Small Key (Palace of Darkness)', player, 5))
|
||||
|
||||
set_rule(multiworld.get_entrance('Palace of Darkness Spike Statue Room Door', player), lambda state: state._lttp_has_key('Small Key (Palace of Darkness)', player, 6) or (
|
||||
location_item_name(state, 'Palace of Darkness - Harmless Hellway', player) in [('Small Key (Palace of Darkness)', player)] and state._lttp_has_key('Small Key (Palace of Darkness)', player, 4)))
|
||||
if multiworld.accessibility[player] != 'locations':
|
||||
if multiworld.accessibility[player] != 'full':
|
||||
set_always_allow(multiworld.get_location('Palace of Darkness - Harmless Hellway', player), lambda state, item: item.name == 'Small Key (Palace of Darkness)' and item.player == player and state._lttp_has_key('Small Key (Palace of Darkness)', player, 5))
|
||||
|
||||
set_rule(multiworld.get_entrance('Palace of Darkness Maze Door', player), lambda state: state._lttp_has_key('Small Key (Palace of Darkness)', player, 6))
|
||||
@@ -1200,7 +1201,7 @@ def set_trock_key_rules(world, player):
|
||||
# Must not go in the Chain Chomps chest - only 2 other chests available and 3+ keys required for all other chests
|
||||
forbid_item(world.get_location('Turtle Rock - Chain Chomps', player), 'Big Key (Turtle Rock)', player)
|
||||
forbid_item(world.get_location('Turtle Rock - Pokey 2 Key Drop', player), 'Big Key (Turtle Rock)', player)
|
||||
if world.accessibility[player] == 'locations':
|
||||
if world.accessibility[player] == 'full':
|
||||
if world.big_key_shuffle[player] and can_reach_big_chest:
|
||||
# Must not go in the dungeon - all 3 available chests (Chomps, Big Chest, Crystaroller) must be keys to access laser bridge, and the big key is required first
|
||||
for location in ['Turtle Rock - Chain Chomps', 'Turtle Rock - Compass Chest',
|
||||
@@ -1214,7 +1215,7 @@ def set_trock_key_rules(world, player):
|
||||
location.place_locked_item(item)
|
||||
toss_junk_item(world, player)
|
||||
|
||||
if world.accessibility[player] != 'locations':
|
||||
if world.accessibility[player] != 'full':
|
||||
set_always_allow(world.get_location('Turtle Rock - Big Key Chest', player), lambda state, item: item.name == 'Small Key (Turtle Rock)' and item.player == player
|
||||
and state.can_reach(state.multiworld.get_region('Turtle Rock (Second Section)', player)))
|
||||
|
||||
|
||||
@@ -76,10 +76,6 @@ class ALttPItem(Item):
|
||||
if self.type in {"SmallKey", "BigKey", "Map", "Compass"}:
|
||||
return self.type
|
||||
|
||||
@property
|
||||
def locked_dungeon_item(self):
|
||||
return self.location.locked and self.dungeon_item
|
||||
|
||||
|
||||
class LTTPRegionType(IntEnum):
|
||||
LightWorld = 1
|
||||
|
||||
@@ -54,7 +54,7 @@ class TestDungeon(LTTPTestBase):
|
||||
|
||||
for item in items:
|
||||
item.classification = ItemClassification.progression
|
||||
state.collect(item, event=True) # event=True prevents running sweep_for_events() and picking up
|
||||
state.collect(item, prevent_sweep=True) # prevent_sweep=True prevents running sweep_for_events() and picking up
|
||||
state.sweep_for_events() # key drop keys repeatedly
|
||||
|
||||
self.assertEqual(self.multiworld.get_location(location, 1).can_reach(state), access, f"failed {self.multiworld.get_location(location, 1)} with: {item_pool}")
|
||||
self.assertEqual(self.multiworld.get_location(location, 1).can_reach(state), access, f"failed {self.multiworld.get_location(location, 1)} with: {item_pool}")
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
from worlds.alttp.Dungeons import create_dungeons, get_dungeon_item_pool
|
||||
from worlds.alttp.Dungeons import get_dungeon_item_pool
|
||||
from worlds.alttp.EntranceShuffle import link_inverted_entrances
|
||||
from worlds.alttp.InvertedRegions import create_inverted_regions
|
||||
from worlds.alttp.ItemPool import difficulties
|
||||
from worlds.alttp.Items import item_factory
|
||||
from worlds.alttp.Regions import mark_light_world_regions
|
||||
from worlds.alttp.Shops import create_shops
|
||||
from test.TestBase import TestBase
|
||||
from test.bases import TestBase
|
||||
|
||||
from worlds.alttp.test import LTTPTestBase
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ from worlds.alttp.Items import item_factory
|
||||
from worlds.alttp.Options import GlitchesRequired
|
||||
from worlds.alttp.Regions import mark_light_world_regions
|
||||
from worlds.alttp.Shops import create_shops
|
||||
from test.TestBase import TestBase
|
||||
from test.bases import TestBase
|
||||
|
||||
from worlds.alttp.test import LTTPTestBase
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ from worlds.alttp.Items import item_factory
|
||||
from worlds.alttp.Options import GlitchesRequired
|
||||
from worlds.alttp.Regions import mark_light_world_regions
|
||||
from worlds.alttp.Shops import create_shops
|
||||
from test.TestBase import TestBase
|
||||
from test.bases import TestBase
|
||||
|
||||
from worlds.alttp.test import LTTPTestBase
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ item_table = {
|
||||
"Mutant Costume": ItemData(698020, 1, ItemType.JUNK, ItemGroup.COLLECTIBLE), # collectible_mutant_costume
|
||||
"Baby Nautilus": ItemData(698021, 1, ItemType.NORMAL, ItemGroup.UTILITY), # collectible_nautilus
|
||||
"Baby Piranha": ItemData(698022, 1, ItemType.NORMAL, ItemGroup.UTILITY), # collectible_piranha
|
||||
"Arnassi Armor": ItemData(698023, 1, ItemType.NORMAL, ItemGroup.UTILITY), # collectible_seahorse_costume
|
||||
"Arnassi Armor": ItemData(698023, 1, ItemType.PROGRESSION, ItemGroup.UTILITY), # collectible_seahorse_costume
|
||||
"Seed Bag": ItemData(698024, 1, ItemType.JUNK, ItemGroup.COLLECTIBLE), # collectible_seed_bag
|
||||
"King's Skull": ItemData(698025, 1, ItemType.JUNK, ItemGroup.COLLECTIBLE), # collectible_skull
|
||||
"Song Plant Spore": ItemData(698026, 1, ItemType.JUNK, ItemGroup.COLLECTIBLE), # collectible_spore_seed
|
||||
|
||||
@@ -45,7 +45,7 @@ class AquariaLocations:
|
||||
"Home Water, bulb below the grouper fish": 698058,
|
||||
"Home Water, bulb in the path below Nautilus Prime": 698059,
|
||||
"Home Water, bulb in the little room above the grouper fish": 698060,
|
||||
"Home Water, bulb in the end of the left path from the Verse Cave": 698061,
|
||||
"Home Water, bulb in the end of the path close to the Verse Cave": 698061,
|
||||
"Home Water, bulb in the top left path": 698062,
|
||||
"Home Water, bulb in the bottom left room": 698063,
|
||||
"Home Water, bulb close to Naija's Home": 698064,
|
||||
@@ -67,7 +67,7 @@ class AquariaLocations:
|
||||
|
||||
locations_song_cave = {
|
||||
"Song Cave, Erulian spirit": 698206,
|
||||
"Song Cave, bulb in the top left part": 698071,
|
||||
"Song Cave, bulb in the top right part": 698071,
|
||||
"Song Cave, bulb in the big anemone room": 698072,
|
||||
"Song Cave, bulb in the path to the singing statues": 698073,
|
||||
"Song Cave, bulb under the rock in the path to the singing statues": 698074,
|
||||
@@ -152,6 +152,9 @@ class AquariaLocations:
|
||||
|
||||
locations_arnassi_path = {
|
||||
"Arnassi Ruins, Arnassi Statue": 698164,
|
||||
}
|
||||
|
||||
locations_arnassi_cave_transturtle = {
|
||||
"Arnassi Ruins, Transturtle": 698217,
|
||||
}
|
||||
|
||||
@@ -269,9 +272,12 @@ class AquariaLocations:
|
||||
}
|
||||
|
||||
locations_forest_bl = {
|
||||
"Kelp Forest bottom left area, Transturtle": 698212,
|
||||
}
|
||||
|
||||
locations_forest_bl_sc = {
|
||||
"Kelp Forest bottom left area, bulb close to the spirit crystals": 698054,
|
||||
"Kelp Forest bottom left area, Walker Baby": 698186,
|
||||
"Kelp Forest bottom left area, Transturtle": 698212,
|
||||
}
|
||||
|
||||
locations_forest_br = {
|
||||
@@ -370,7 +376,7 @@ class AquariaLocations:
|
||||
|
||||
locations_sun_temple_r = {
|
||||
"Sun Temple, first bulb of the temple": 698091,
|
||||
"Sun Temple, bulb on the left part": 698092,
|
||||
"Sun Temple, bulb on the right part": 698092,
|
||||
"Sun Temple, bulb in the hidden room of the right part": 698093,
|
||||
"Sun Temple, Sun Key": 698182,
|
||||
}
|
||||
@@ -402,6 +408,9 @@ class AquariaLocations:
|
||||
"Abyss right area, bulb in the middle path": 698110,
|
||||
"Abyss right area, bulb behind the rock in the middle path": 698111,
|
||||
"Abyss right area, bulb in the left green room": 698112,
|
||||
}
|
||||
|
||||
locations_abyss_r_transturtle = {
|
||||
"Abyss right area, Transturtle": 698214,
|
||||
}
|
||||
|
||||
@@ -499,6 +508,7 @@ location_table = {
|
||||
**AquariaLocations.locations_skeleton_path_sc,
|
||||
**AquariaLocations.locations_arnassi,
|
||||
**AquariaLocations.locations_arnassi_path,
|
||||
**AquariaLocations.locations_arnassi_cave_transturtle,
|
||||
**AquariaLocations.locations_arnassi_crab_boss,
|
||||
**AquariaLocations.locations_sun_temple_l,
|
||||
**AquariaLocations.locations_sun_temple_r,
|
||||
@@ -509,6 +519,7 @@ location_table = {
|
||||
**AquariaLocations.locations_abyss_l,
|
||||
**AquariaLocations.locations_abyss_lb,
|
||||
**AquariaLocations.locations_abyss_r,
|
||||
**AquariaLocations.locations_abyss_r_transturtle,
|
||||
**AquariaLocations.locations_energy_temple_1,
|
||||
**AquariaLocations.locations_energy_temple_2,
|
||||
**AquariaLocations.locations_energy_temple_3,
|
||||
@@ -530,6 +541,7 @@ location_table = {
|
||||
**AquariaLocations.locations_forest_tr,
|
||||
**AquariaLocations.locations_forest_tr_fp,
|
||||
**AquariaLocations.locations_forest_bl,
|
||||
**AquariaLocations.locations_forest_bl_sc,
|
||||
**AquariaLocations.locations_forest_br,
|
||||
**AquariaLocations.locations_forest_boss,
|
||||
**AquariaLocations.locations_forest_boss_entrance,
|
||||
|
||||
@@ -14,97 +14,112 @@ from worlds.generic.Rules import add_rule, set_rule
|
||||
|
||||
# Every condition to connect regions
|
||||
|
||||
def _has_hot_soup(state:CollectionState, player: int) -> bool:
|
||||
def _has_hot_soup(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the hotsoup item"""
|
||||
return state.has("Hot soup", player)
|
||||
return state.has_any({"Hot soup", "Hot soup x 2"}, player)
|
||||
|
||||
|
||||
def _has_tongue_cleared(state:CollectionState, player: int) -> bool:
|
||||
def _has_tongue_cleared(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the Body tongue cleared item"""
|
||||
return state.has("Body tongue cleared", player)
|
||||
|
||||
|
||||
def _has_sun_crystal(state:CollectionState, player: int) -> bool:
|
||||
def _has_sun_crystal(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the Sun crystal item"""
|
||||
return state.has("Has sun crystal", player) and _has_bind_song(state, player)
|
||||
|
||||
|
||||
def _has_li(state:CollectionState, player: int) -> bool:
|
||||
def _has_li(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has Li in its team"""
|
||||
return state.has("Li and Li song", player)
|
||||
|
||||
|
||||
def _has_damaging_item(state:CollectionState, player: int) -> bool:
|
||||
def _has_damaging_item(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the shield song item"""
|
||||
return state.has_any({"Energy form", "Nature form", "Beast form", "Li and Li song", "Baby Nautilus",
|
||||
"Baby Piranha", "Baby Blaster"}, player)
|
||||
return state.has_any({"Energy form", "Nature form", "Beast form", "Li and Li song", "Baby Nautilus",
|
||||
"Baby Piranha", "Baby Blaster"}, player)
|
||||
|
||||
|
||||
def _has_shield_song(state:CollectionState, player: int) -> bool:
|
||||
def _has_energy_attack_item(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has items that can do a lot of damage (enough to beat bosses)"""
|
||||
return _has_energy_form(state, player) or _has_dual_form(state, player)
|
||||
|
||||
|
||||
def _has_shield_song(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the shield song item"""
|
||||
return state.has("Shield song", player)
|
||||
|
||||
|
||||
def _has_bind_song(state:CollectionState, player: int) -> bool:
|
||||
def _has_bind_song(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the bind song item"""
|
||||
return state.has("Bind song", player)
|
||||
|
||||
|
||||
def _has_energy_form(state:CollectionState, player: int) -> bool:
|
||||
def _has_energy_form(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the energy form item"""
|
||||
return state.has("Energy form", player)
|
||||
|
||||
|
||||
def _has_beast_form(state:CollectionState, player: int) -> bool:
|
||||
def _has_beast_form(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the beast form item"""
|
||||
return state.has("Beast form", player)
|
||||
|
||||
|
||||
def _has_nature_form(state:CollectionState, player: int) -> bool:
|
||||
def _has_beast_and_soup_form(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the beast form item"""
|
||||
return _has_beast_form(state, player) and _has_hot_soup(state, player)
|
||||
|
||||
|
||||
def _has_beast_form_or_arnassi_armor(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the beast form item"""
|
||||
return _has_beast_form(state, player) or state.has("Arnassi Armor", player)
|
||||
|
||||
|
||||
def _has_nature_form(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the nature form item"""
|
||||
return state.has("Nature form", player)
|
||||
|
||||
|
||||
def _has_sun_form(state:CollectionState, player: int) -> bool:
|
||||
def _has_sun_form(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the sun form item"""
|
||||
return state.has("Sun form", player)
|
||||
|
||||
|
||||
def _has_light(state:CollectionState, player: int) -> bool:
|
||||
def _has_light(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the light item"""
|
||||
return state.has("Baby Dumbo", player) or _has_sun_form(state, player)
|
||||
|
||||
|
||||
def _has_dual_form(state:CollectionState, player: int) -> bool:
|
||||
def _has_dual_form(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the dual form item"""
|
||||
return _has_li(state, player) and state.has("Dual form", player)
|
||||
|
||||
|
||||
def _has_fish_form(state:CollectionState, player: int) -> bool:
|
||||
def _has_fish_form(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the fish form item"""
|
||||
return state.has("Fish form", player)
|
||||
|
||||
|
||||
def _has_spirit_form(state:CollectionState, player: int) -> bool:
|
||||
def _has_spirit_form(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has the spirit form item"""
|
||||
return state.has("Spirit form", player)
|
||||
|
||||
|
||||
def _has_big_bosses(state:CollectionState, player: int) -> bool:
|
||||
def _has_big_bosses(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has beated every big bosses"""
|
||||
return state.has_all({"Fallen God beated", "Mithalan God beated", "Drunian God beated",
|
||||
"Sun God beated", "The Golem beated"}, player)
|
||||
"Sun God beated", "The Golem beated"}, player)
|
||||
|
||||
|
||||
def _has_mini_bosses(state:CollectionState, player: int) -> bool:
|
||||
def _has_mini_bosses(state: CollectionState, player: int) -> bool:
|
||||
"""`player` in `state` has beated every big bosses"""
|
||||
return state.has_all({"Nautilus Prime beated", "Blaster Peg Prime beated", "Mergog beated",
|
||||
"Mithalan priests beated", "Octopus Prime beated", "Crabbius Maximus beated",
|
||||
"Mantis Shrimp Prime beated", "King Jellyfish God Prime beated"}, player)
|
||||
"Mithalan priests beated", "Octopus Prime beated", "Crabbius Maximus beated",
|
||||
"Mantis Shrimp Prime beated", "King Jellyfish God Prime beated"}, player)
|
||||
|
||||
|
||||
def _has_secrets(state:CollectionState, player: int) -> bool:
|
||||
return state.has_all({"First secret obtained", "Second secret obtained", "Third secret obtained"},player)
|
||||
def _has_secrets(state: CollectionState, player: int) -> bool:
|
||||
return state.has_all({"First secret obtained", "Second secret obtained", "Third secret obtained"}, player)
|
||||
|
||||
|
||||
class AquariaRegions:
|
||||
@@ -134,6 +149,7 @@ class AquariaRegions:
|
||||
skeleton_path: Region
|
||||
skeleton_path_sc: Region
|
||||
arnassi: Region
|
||||
arnassi_cave_transturtle: Region
|
||||
arnassi_path: Region
|
||||
arnassi_crab_boss: Region
|
||||
simon: Region
|
||||
@@ -152,6 +168,7 @@ class AquariaRegions:
|
||||
forest_tr: Region
|
||||
forest_tr_fp: Region
|
||||
forest_bl: Region
|
||||
forest_bl_sc: Region
|
||||
forest_br: Region
|
||||
forest_boss: Region
|
||||
forest_boss_entrance: Region
|
||||
@@ -179,6 +196,7 @@ class AquariaRegions:
|
||||
abyss_l: Region
|
||||
abyss_lb: Region
|
||||
abyss_r: Region
|
||||
abyss_r_transturtle: Region
|
||||
ice_cave: Region
|
||||
bubble_cave: Region
|
||||
bubble_cave_boss: Region
|
||||
@@ -213,7 +231,7 @@ class AquariaRegions:
|
||||
"""
|
||||
|
||||
def __add_region(self, hint: str,
|
||||
locations: Optional[Dict[str, Optional[int]]]) -> Region:
|
||||
locations: Optional[Dict[str, int]]) -> Region:
|
||||
"""
|
||||
Create a new Region, add it to the `world` regions and return it.
|
||||
Be aware that this function have a side effect on ``world`.`regions`
|
||||
@@ -236,7 +254,7 @@ class AquariaRegions:
|
||||
self.home_water_nautilus = self.__add_region("Home Water, Nautilus nest",
|
||||
AquariaLocations.locations_home_water_nautilus)
|
||||
self.home_water_transturtle = self.__add_region("Home Water, turtle room",
|
||||
AquariaLocations.locations_home_water_transturtle)
|
||||
AquariaLocations.locations_home_water_transturtle)
|
||||
self.naija_home = self.__add_region("Naija's Home", AquariaLocations.locations_naija_home)
|
||||
self.song_cave = self.__add_region("Song Cave", AquariaLocations.locations_song_cave)
|
||||
|
||||
@@ -280,6 +298,8 @@ class AquariaRegions:
|
||||
self.arnassi = self.__add_region("Arnassi Ruins", AquariaLocations.locations_arnassi)
|
||||
self.arnassi_path = self.__add_region("Arnassi Ruins, back entrance path",
|
||||
AquariaLocations.locations_arnassi_path)
|
||||
self.arnassi_cave_transturtle = self.__add_region("Arnassi Ruins, transturtle area",
|
||||
AquariaLocations.locations_arnassi_cave_transturtle)
|
||||
self.arnassi_crab_boss = self.__add_region("Arnassi Ruins, Crabbius Maximus lair",
|
||||
AquariaLocations.locations_arnassi_crab_boss)
|
||||
|
||||
@@ -302,9 +322,9 @@ class AquariaRegions:
|
||||
AquariaLocations.locations_cathedral_r)
|
||||
self.cathedral_underground = self.__add_region("Mithalas Cathedral underground",
|
||||
AquariaLocations.locations_cathedral_underground)
|
||||
self.cathedral_boss_r = self.__add_region("Mithalas Cathedral, Mithalan God room",
|
||||
self.cathedral_boss_r = self.__add_region("Mithalas Cathedral, Mithalan God room", None)
|
||||
self.cathedral_boss_l = self.__add_region("Mithalas Cathedral, after Mithalan God room",
|
||||
AquariaLocations.locations_cathedral_boss)
|
||||
self.cathedral_boss_l = self.__add_region("Mithalas Cathedral, after Mithalan God room", None)
|
||||
|
||||
def __create_forest(self) -> None:
|
||||
"""
|
||||
@@ -320,6 +340,8 @@ class AquariaRegions:
|
||||
AquariaLocations.locations_forest_tr_fp)
|
||||
self.forest_bl = self.__add_region("Kelp Forest bottom left area",
|
||||
AquariaLocations.locations_forest_bl)
|
||||
self.forest_bl_sc = self.__add_region("Kelp Forest bottom left area, spirit crystals",
|
||||
AquariaLocations.locations_forest_bl_sc)
|
||||
self.forest_br = self.__add_region("Kelp Forest bottom right area",
|
||||
AquariaLocations.locations_forest_br)
|
||||
self.forest_sprite_cave = self.__add_region("Kelp Forest spirit cave",
|
||||
@@ -375,9 +397,9 @@ class AquariaRegions:
|
||||
self.sun_temple_r = self.__add_region("Sun Temple right area",
|
||||
AquariaLocations.locations_sun_temple_r)
|
||||
self.sun_temple_boss_path = self.__add_region("Sun Temple before boss area",
|
||||
AquariaLocations.locations_sun_temple_boss_path)
|
||||
AquariaLocations.locations_sun_temple_boss_path)
|
||||
self.sun_temple_boss = self.__add_region("Sun Temple boss area",
|
||||
AquariaLocations.locations_sun_temple_boss)
|
||||
AquariaLocations.locations_sun_temple_boss)
|
||||
|
||||
def __create_abyss(self) -> None:
|
||||
"""
|
||||
@@ -388,6 +410,8 @@ class AquariaRegions:
|
||||
AquariaLocations.locations_abyss_l)
|
||||
self.abyss_lb = self.__add_region("Abyss left bottom area", AquariaLocations.locations_abyss_lb)
|
||||
self.abyss_r = self.__add_region("Abyss right area", AquariaLocations.locations_abyss_r)
|
||||
self.abyss_r_transturtle = self.__add_region("Abyss right area, transturtle",
|
||||
AquariaLocations.locations_abyss_r_transturtle)
|
||||
self.ice_cave = self.__add_region("Ice Cave", AquariaLocations.locations_ice_cave)
|
||||
self.bubble_cave = self.__add_region("Bubble Cave", AquariaLocations.locations_bubble_cave)
|
||||
self.bubble_cave_boss = self.__add_region("Bubble Cave boss area", AquariaLocations.locations_bubble_cave_boss)
|
||||
@@ -407,7 +431,7 @@ class AquariaRegions:
|
||||
self.sunken_city_r = self.__add_region("Sunken City right area",
|
||||
AquariaLocations.locations_sunken_city_r)
|
||||
self.sunken_city_boss = self.__add_region("Sunken City boss area",
|
||||
AquariaLocations.locations_sunken_city_boss)
|
||||
AquariaLocations.locations_sunken_city_boss)
|
||||
|
||||
def __create_body(self) -> None:
|
||||
"""
|
||||
@@ -427,7 +451,7 @@ class AquariaRegions:
|
||||
self.final_boss_tube = self.__add_region("The Body, final boss area turtle room",
|
||||
AquariaLocations.locations_final_boss_tube)
|
||||
self.final_boss = self.__add_region("The Body, final boss",
|
||||
AquariaLocations.locations_final_boss)
|
||||
AquariaLocations.locations_final_boss)
|
||||
self.final_boss_end = self.__add_region("The Body, final boss area", None)
|
||||
|
||||
def __connect_one_way_regions(self, source_name: str, destination_name: str,
|
||||
@@ -455,8 +479,8 @@ class AquariaRegions:
|
||||
"""
|
||||
Connect entrances of the different regions around `home_water`
|
||||
"""
|
||||
self.__connect_regions("Menu", "Verse Cave right area",
|
||||
self.menu, self.verse_cave_r)
|
||||
self.__connect_one_way_regions("Menu", "Verse Cave right area",
|
||||
self.menu, self.verse_cave_r)
|
||||
self.__connect_regions("Verse Cave left area", "Verse Cave right area",
|
||||
self.verse_cave_l, self.verse_cave_r)
|
||||
self.__connect_regions("Verse Cave", "Home Water", self.verse_cave_l, self.home_water)
|
||||
@@ -464,7 +488,8 @@ class AquariaRegions:
|
||||
self.__connect_regions("Home Water", "Song Cave", self.home_water, self.song_cave)
|
||||
self.__connect_regions("Home Water", "Home Water, nautilus nest",
|
||||
self.home_water, self.home_water_nautilus,
|
||||
lambda state: _has_energy_form(state, self.player) and _has_bind_song(state, self.player))
|
||||
lambda state: _has_energy_attack_item(state, self.player) and
|
||||
_has_bind_song(state, self.player))
|
||||
self.__connect_regions("Home Water", "Home Water transturtle room",
|
||||
self.home_water, self.home_water_transturtle)
|
||||
self.__connect_regions("Home Water", "Energy Temple first area",
|
||||
@@ -472,7 +497,7 @@ class AquariaRegions:
|
||||
lambda state: _has_bind_song(state, self.player))
|
||||
self.__connect_regions("Home Water", "Energy Temple_altar",
|
||||
self.home_water, self.energy_temple_altar,
|
||||
lambda state: _has_energy_form(state, self.player) and
|
||||
lambda state: _has_energy_attack_item(state, self.player) and
|
||||
_has_bind_song(state, self.player))
|
||||
self.__connect_regions("Energy Temple first area", "Energy Temple second area",
|
||||
self.energy_temple_1, self.energy_temple_2,
|
||||
@@ -482,28 +507,28 @@ class AquariaRegions:
|
||||
lambda state: _has_fish_form(state, self.player))
|
||||
self.__connect_regions("Energy Temple idol room", "Energy Temple boss area",
|
||||
self.energy_temple_idol, self.energy_temple_boss,
|
||||
lambda state: _has_energy_form(state, self.player))
|
||||
lambda state: _has_energy_attack_item(state, self.player) and
|
||||
_has_fish_form(state, self.player))
|
||||
self.__connect_one_way_regions("Energy Temple first area", "Energy Temple boss area",
|
||||
self.energy_temple_1, self.energy_temple_boss,
|
||||
lambda state: _has_beast_form(state, self.player) and
|
||||
_has_energy_form(state, self.player))
|
||||
_has_energy_attack_item(state, self.player))
|
||||
self.__connect_one_way_regions("Energy Temple boss area", "Energy Temple first area",
|
||||
self.energy_temple_boss, self.energy_temple_1,
|
||||
lambda state: _has_energy_form(state, self.player))
|
||||
lambda state: _has_energy_attack_item(state, self.player))
|
||||
self.__connect_regions("Energy Temple second area", "Energy Temple third area",
|
||||
self.energy_temple_2, self.energy_temple_3,
|
||||
lambda state: _has_bind_song(state, self.player) and
|
||||
_has_energy_form(state, self.player))
|
||||
lambda state: _has_energy_form(state, self.player))
|
||||
self.__connect_regions("Energy Temple boss area", "Energy Temple blaster room",
|
||||
self.energy_temple_boss, self.energy_temple_blaster_room,
|
||||
lambda state: _has_nature_form(state, self.player) and
|
||||
_has_bind_song(state, self.player) and
|
||||
_has_energy_form(state, self.player))
|
||||
_has_energy_attack_item(state, self.player))
|
||||
self.__connect_regions("Energy Temple first area", "Energy Temple blaster room",
|
||||
self.energy_temple_1, self.energy_temple_blaster_room,
|
||||
lambda state: _has_nature_form(state, self.player) and
|
||||
_has_bind_song(state, self.player) and
|
||||
_has_energy_form(state, self.player) and
|
||||
_has_energy_attack_item(state, self.player) and
|
||||
_has_beast_form(state, self.player))
|
||||
self.__connect_regions("Home Water", "Open Water top left area",
|
||||
self.home_water, self.openwater_tl)
|
||||
@@ -520,7 +545,7 @@ class AquariaRegions:
|
||||
self.openwater_tl, self.forest_br)
|
||||
self.__connect_regions("Open Water top right area", "Open Water top right area, turtle room",
|
||||
self.openwater_tr, self.openwater_tr_turtle,
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
lambda state: _has_beast_form_or_arnassi_armor(state, self.player))
|
||||
self.__connect_regions("Open Water top right area", "Open Water bottom right area",
|
||||
self.openwater_tr, self.openwater_br)
|
||||
self.__connect_regions("Open Water top right area", "Mithalas City",
|
||||
@@ -529,10 +554,9 @@ class AquariaRegions:
|
||||
self.openwater_tr, self.veil_bl)
|
||||
self.__connect_one_way_regions("Open Water top right area", "Veil bottom right",
|
||||
self.openwater_tr, self.veil_br,
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
lambda state: _has_beast_form_or_arnassi_armor(state, self.player))
|
||||
self.__connect_one_way_regions("Veil bottom right", "Open Water top right area",
|
||||
self.veil_br, self.openwater_tr,
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
self.veil_br, self.openwater_tr)
|
||||
self.__connect_regions("Open Water bottom left area", "Open Water bottom right area",
|
||||
self.openwater_bl, self.openwater_br)
|
||||
self.__connect_regions("Open Water bottom left area", "Skeleton path",
|
||||
@@ -551,10 +575,14 @@ class AquariaRegions:
|
||||
self.arnassi, self.openwater_br)
|
||||
self.__connect_regions("Arnassi", "Arnassi path",
|
||||
self.arnassi, self.arnassi_path)
|
||||
self.__connect_regions("Arnassi ruins, transturtle area", "Arnassi path",
|
||||
self.arnassi_cave_transturtle, self.arnassi_path,
|
||||
lambda state: _has_fish_form(state, self.player))
|
||||
self.__connect_one_way_regions("Arnassi path", "Arnassi crab boss area",
|
||||
self.arnassi_path, self.arnassi_crab_boss,
|
||||
lambda state: _has_beast_form(state, self.player) and
|
||||
_has_energy_form(state, self.player))
|
||||
lambda state: _has_beast_form_or_arnassi_armor(state, self.player) and
|
||||
(_has_energy_attack_item(state, self.player) or
|
||||
_has_nature_form(state, self.player)))
|
||||
self.__connect_one_way_regions("Arnassi crab boss area", "Arnassi path",
|
||||
self.arnassi_crab_boss, self.arnassi_path)
|
||||
|
||||
@@ -564,61 +592,62 @@ class AquariaRegions:
|
||||
"""
|
||||
self.__connect_one_way_regions("Mithalas City", "Mithalas City top path",
|
||||
self.mithalas_city, self.mithalas_city_top_path,
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
lambda state: _has_beast_form_or_arnassi_armor(state, self.player))
|
||||
self.__connect_one_way_regions("Mithalas City_top_path", "Mithalas City",
|
||||
self.mithalas_city_top_path, self.mithalas_city)
|
||||
self.__connect_regions("Mithalas City", "Mithalas City home with fishpass",
|
||||
self.mithalas_city, self.mithalas_city_fishpass,
|
||||
lambda state: _has_fish_form(state, self.player))
|
||||
self.__connect_regions("Mithalas City", "Mithalas castle",
|
||||
self.mithalas_city, self.cathedral_l,
|
||||
lambda state: _has_fish_form(state, self.player))
|
||||
self.mithalas_city, self.cathedral_l)
|
||||
self.__connect_one_way_regions("Mithalas City top path", "Mithalas castle, flower tube",
|
||||
self.mithalas_city_top_path,
|
||||
self.cathedral_l_tube,
|
||||
lambda state: _has_nature_form(state, self.player) and
|
||||
_has_energy_form(state, self.player))
|
||||
_has_energy_attack_item(state, self.player))
|
||||
self.__connect_one_way_regions("Mithalas castle, flower tube area", "Mithalas City top path",
|
||||
self.cathedral_l_tube,
|
||||
self.mithalas_city_top_path,
|
||||
lambda state: _has_beast_form(state, self.player) and
|
||||
_has_nature_form(state, self.player))
|
||||
lambda state: _has_nature_form(state, self.player))
|
||||
self.__connect_one_way_regions("Mithalas castle flower tube area", "Mithalas castle, spirit crystals",
|
||||
self.cathedral_l_tube, self.cathedral_l_sc,
|
||||
lambda state: _has_spirit_form(state, self.player))
|
||||
self.cathedral_l_tube, self.cathedral_l_sc,
|
||||
lambda state: _has_spirit_form(state, self.player))
|
||||
self.__connect_one_way_regions("Mithalas castle_flower tube area", "Mithalas castle",
|
||||
self.cathedral_l_tube, self.cathedral_l,
|
||||
lambda state: _has_spirit_form(state, self.player))
|
||||
self.cathedral_l_tube, self.cathedral_l,
|
||||
lambda state: _has_spirit_form(state, self.player))
|
||||
self.__connect_regions("Mithalas castle", "Mithalas castle, spirit crystals",
|
||||
self.cathedral_l, self.cathedral_l_sc,
|
||||
lambda state: _has_spirit_form(state, self.player))
|
||||
self.__connect_regions("Mithalas castle", "Cathedral boss left area",
|
||||
self.cathedral_l, self.cathedral_boss_l,
|
||||
lambda state: _has_beast_form(state, self.player) and
|
||||
_has_energy_form(state, self.player) and
|
||||
_has_bind_song(state, self.player))
|
||||
self.__connect_one_way_regions("Mithalas castle", "Cathedral boss right area",
|
||||
self.cathedral_l, self.cathedral_boss_r,
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
self.__connect_one_way_regions("Cathedral boss left area", "Mithalas castle",
|
||||
self.cathedral_boss_l, self.cathedral_l,
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
self.__connect_regions("Mithalas castle", "Mithalas Cathedral underground",
|
||||
self.cathedral_l, self.cathedral_underground,
|
||||
lambda state: _has_beast_form(state, self.player) and
|
||||
_has_bind_song(state, self.player))
|
||||
self.__connect_regions("Mithalas castle", "Mithalas Cathedral",
|
||||
self.cathedral_l, self.cathedral_r,
|
||||
lambda state: _has_bind_song(state, self.player) and
|
||||
_has_energy_form(state, self.player))
|
||||
self.__connect_regions("Mithalas Cathedral", "Mithalas Cathedral underground",
|
||||
self.cathedral_r, self.cathedral_underground,
|
||||
lambda state: _has_energy_form(state, self.player))
|
||||
self.__connect_one_way_regions("Mithalas Cathedral underground", "Cathedral boss left area",
|
||||
self.cathedral_underground, self.cathedral_boss_r,
|
||||
lambda state: _has_energy_form(state, self.player) and
|
||||
_has_bind_song(state, self.player))
|
||||
self.__connect_one_way_regions("Cathedral boss left area", "Mithalas Cathedral underground",
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
self.__connect_one_way_regions("Mithalas castle", "Mithalas Cathedral",
|
||||
self.cathedral_l, self.cathedral_r,
|
||||
lambda state: _has_bind_song(state, self.player) and
|
||||
_has_energy_attack_item(state, self.player))
|
||||
self.__connect_one_way_regions("Mithalas Cathedral", "Mithalas Cathedral underground",
|
||||
self.cathedral_r, self.cathedral_underground)
|
||||
self.__connect_one_way_regions("Mithalas Cathedral underground", "Mithalas Cathedral",
|
||||
self.cathedral_underground, self.cathedral_r,
|
||||
lambda state: _has_beast_form(state, self.player) and
|
||||
_has_energy_attack_item(state, self.player))
|
||||
self.__connect_one_way_regions("Mithalas Cathedral underground", "Cathedral boss right area",
|
||||
self.cathedral_underground, self.cathedral_boss_r)
|
||||
self.__connect_one_way_regions("Cathedral boss right area", "Mithalas Cathedral underground",
|
||||
self.cathedral_boss_r, self.cathedral_underground,
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
self.__connect_regions("Cathedral boss right area", "Cathedral boss left area",
|
||||
self.__connect_one_way_regions("Cathedral boss right area", "Cathedral boss left area",
|
||||
self.cathedral_boss_r, self.cathedral_boss_l,
|
||||
lambda state: _has_bind_song(state, self.player) and
|
||||
_has_energy_form(state, self.player))
|
||||
_has_energy_attack_item(state, self.player))
|
||||
self.__connect_one_way_regions("Cathedral boss left area", "Cathedral boss right area",
|
||||
self.cathedral_boss_l, self.cathedral_boss_r)
|
||||
|
||||
def __connect_forest_regions(self) -> None:
|
||||
"""
|
||||
@@ -628,6 +657,12 @@ class AquariaRegions:
|
||||
self.forest_br, self.veil_bl)
|
||||
self.__connect_regions("Forest bottom right", "Forest bottom left area",
|
||||
self.forest_br, self.forest_bl)
|
||||
self.__connect_one_way_regions("Forest bottom left area", "Forest bottom left area, spirit crystals",
|
||||
self.forest_bl, self.forest_bl_sc,
|
||||
lambda state: _has_energy_attack_item(state, self.player) or
|
||||
_has_fish_form(state, self.player))
|
||||
self.__connect_one_way_regions("Forest bottom left area, spirit crystals", "Forest bottom left area",
|
||||
self.forest_bl_sc, self.forest_bl)
|
||||
self.__connect_regions("Forest bottom right", "Forest top right area",
|
||||
self.forest_br, self.forest_tr)
|
||||
self.__connect_regions("Forest bottom left area", "Forest fish cave",
|
||||
@@ -641,7 +676,7 @@ class AquariaRegions:
|
||||
self.forest_tl, self.forest_tl_fp,
|
||||
lambda state: _has_nature_form(state, self.player) and
|
||||
_has_bind_song(state, self.player) and
|
||||
_has_energy_form(state, self.player) and
|
||||
_has_energy_attack_item(state, self.player) and
|
||||
_has_fish_form(state, self.player))
|
||||
self.__connect_regions("Forest top left area", "Forest top right area",
|
||||
self.forest_tl, self.forest_tr)
|
||||
@@ -649,7 +684,7 @@ class AquariaRegions:
|
||||
self.forest_tl, self.forest_boss_entrance)
|
||||
self.__connect_regions("Forest boss area", "Forest boss entrance",
|
||||
self.forest_boss, self.forest_boss_entrance,
|
||||
lambda state: _has_energy_form(state, self.player))
|
||||
lambda state: _has_energy_attack_item(state, self.player))
|
||||
self.__connect_regions("Forest top right area", "Forest top right area fish pass",
|
||||
self.forest_tr, self.forest_tr_fp,
|
||||
lambda state: _has_fish_form(state, self.player))
|
||||
@@ -663,7 +698,7 @@ class AquariaRegions:
|
||||
self.__connect_regions("Fermog cave", "Fermog boss",
|
||||
self.mermog_cave, self.mermog_boss,
|
||||
lambda state: _has_beast_form(state, self.player) and
|
||||
_has_energy_form(state, self.player))
|
||||
_has_energy_attack_item(state, self.player))
|
||||
|
||||
def __connect_veil_regions(self) -> None:
|
||||
"""
|
||||
@@ -681,8 +716,7 @@ class AquariaRegions:
|
||||
self.veil_b_sc, self.veil_br,
|
||||
lambda state: _has_spirit_form(state, self.player))
|
||||
self.__connect_regions("Veil bottom right", "Veil top left area",
|
||||
self.veil_br, self.veil_tl,
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
self.veil_br, self.veil_tl)
|
||||
self.__connect_regions("Veil top left area", "Veil_top left area, fish pass",
|
||||
self.veil_tl, self.veil_tl_fp,
|
||||
lambda state: _has_fish_form(state, self.player))
|
||||
@@ -691,20 +725,25 @@ class AquariaRegions:
|
||||
self.__connect_regions("Veil top left area", "Turtle cave",
|
||||
self.veil_tl, self.turtle_cave)
|
||||
self.__connect_regions("Turtle cave", "Turtle cave Bubble Cliff",
|
||||
self.turtle_cave, self.turtle_cave_bubble,
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
self.turtle_cave, self.turtle_cave_bubble)
|
||||
self.__connect_regions("Veil right of sun temple", "Sun Temple right area",
|
||||
self.veil_tr_r, self.sun_temple_r)
|
||||
self.__connect_regions("Sun Temple right area", "Sun Temple left area",
|
||||
self.sun_temple_r, self.sun_temple_l,
|
||||
lambda state: _has_bind_song(state, self.player))
|
||||
self.__connect_one_way_regions("Sun Temple right area", "Sun Temple left area",
|
||||
self.sun_temple_r, self.sun_temple_l,
|
||||
lambda state: _has_bind_song(state, self.player) or
|
||||
_has_light(state, self.player))
|
||||
self.__connect_one_way_regions("Sun Temple left area", "Sun Temple right area",
|
||||
self.sun_temple_l, self.sun_temple_r,
|
||||
lambda state: _has_light(state, self.player))
|
||||
self.__connect_regions("Sun Temple left area", "Veil left of sun temple",
|
||||
self.sun_temple_l, self.veil_tr_l)
|
||||
self.__connect_regions("Sun Temple left area", "Sun Temple before boss area",
|
||||
self.sun_temple_l, self.sun_temple_boss_path)
|
||||
self.sun_temple_l, self.sun_temple_boss_path,
|
||||
lambda state: _has_light(state, self.player) or
|
||||
_has_sun_crystal(state, self.player))
|
||||
self.__connect_regions("Sun Temple before boss area", "Sun Temple boss area",
|
||||
self.sun_temple_boss_path, self.sun_temple_boss,
|
||||
lambda state: _has_energy_form(state, self.player))
|
||||
lambda state: _has_energy_attack_item(state, self.player))
|
||||
self.__connect_one_way_regions("Sun Temple boss area", "Veil left of sun temple",
|
||||
self.sun_temple_boss, self.veil_tr_l)
|
||||
self.__connect_regions("Veil left of sun temple", "Octo cave top path",
|
||||
@@ -712,7 +751,7 @@ class AquariaRegions:
|
||||
lambda state: _has_fish_form(state, self.player) and
|
||||
_has_sun_form(state, self.player) and
|
||||
_has_beast_form(state, self.player) and
|
||||
_has_energy_form(state, self.player))
|
||||
_has_energy_attack_item(state, self.player))
|
||||
self.__connect_regions("Veil left of sun temple", "Octo cave bottom path",
|
||||
self.veil_tr_l, self.octo_cave_b,
|
||||
lambda state: _has_fish_form(state, self.player))
|
||||
@@ -728,16 +767,22 @@ class AquariaRegions:
|
||||
self.abyss_lb, self.sunken_city_r,
|
||||
lambda state: _has_li(state, self.player))
|
||||
self.__connect_one_way_regions("Abyss left bottom area", "Body center area",
|
||||
self.abyss_lb, self.body_c,
|
||||
lambda state: _has_tongue_cleared(state, self.player))
|
||||
self.abyss_lb, self.body_c,
|
||||
lambda state: _has_tongue_cleared(state, self.player))
|
||||
self.__connect_one_way_regions("Body center area", "Abyss left bottom area",
|
||||
self.body_c, self.abyss_lb)
|
||||
self.body_c, self.abyss_lb)
|
||||
self.__connect_regions("Abyss left area", "King jellyfish cave",
|
||||
self.abyss_l, self.king_jellyfish_cave,
|
||||
lambda state: _has_energy_form(state, self.player) and
|
||||
_has_beast_form(state, self.player))
|
||||
lambda state: (_has_energy_form(state, self.player) and
|
||||
_has_beast_form(state, self.player)) or
|
||||
_has_dual_form(state, self.player))
|
||||
self.__connect_regions("Abyss left area", "Abyss right area",
|
||||
self.abyss_l, self.abyss_r)
|
||||
self.__connect_one_way_regions("Abyss right area", "Abyss right area, transturtle",
|
||||
self.abyss_r, self.abyss_r_transturtle)
|
||||
self.__connect_one_way_regions("Abyss right area, transturtle", "Abyss right area",
|
||||
self.abyss_r_transturtle, self.abyss_r,
|
||||
lambda state: _has_light(state, self.player))
|
||||
self.__connect_regions("Abyss right area", "Inside the whale",
|
||||
self.abyss_r, self.whale,
|
||||
lambda state: _has_spirit_form(state, self.player) and
|
||||
@@ -747,13 +792,14 @@ class AquariaRegions:
|
||||
lambda state: _has_spirit_form(state, self.player) and
|
||||
_has_sun_form(state, self.player) and
|
||||
_has_bind_song(state, self.player) and
|
||||
_has_energy_form(state, self.player))
|
||||
_has_energy_attack_item(state, self.player))
|
||||
self.__connect_regions("Abyss right area", "Ice Cave",
|
||||
self.abyss_r, self.ice_cave,
|
||||
lambda state: _has_spirit_form(state, self.player))
|
||||
self.__connect_regions("Abyss right area", "Bubble Cave",
|
||||
self.__connect_regions("Ice cave", "Bubble Cave",
|
||||
self.ice_cave, self.bubble_cave,
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
lambda state: _has_beast_form(state, self.player) or
|
||||
_has_hot_soup(state, self.player))
|
||||
self.__connect_regions("Bubble Cave boss area", "Bubble Cave",
|
||||
self.bubble_cave, self.bubble_cave_boss,
|
||||
lambda state: _has_nature_form(state, self.player) and _has_bind_song(state, self.player)
|
||||
@@ -772,7 +818,7 @@ class AquariaRegions:
|
||||
self.sunken_city_l, self.sunken_city_boss,
|
||||
lambda state: _has_beast_form(state, self.player) and
|
||||
_has_sun_form(state, self.player) and
|
||||
_has_energy_form(state, self.player) and
|
||||
_has_energy_attack_item(state, self.player) and
|
||||
_has_bind_song(state, self.player))
|
||||
|
||||
def __connect_body_regions(self) -> None:
|
||||
@@ -780,11 +826,13 @@ class AquariaRegions:
|
||||
Connect entrances of the different regions around The Body
|
||||
"""
|
||||
self.__connect_regions("Body center area", "Body left area",
|
||||
self.body_c, self.body_l)
|
||||
self.body_c, self.body_l,
|
||||
lambda state: _has_energy_form(state, self.player))
|
||||
self.__connect_regions("Body center area", "Body right area top path",
|
||||
self.body_c, self.body_rt)
|
||||
self.__connect_regions("Body center area", "Body right area bottom path",
|
||||
self.body_c, self.body_rb)
|
||||
self.body_c, self.body_rb,
|
||||
lambda state: _has_energy_form(state, self.player))
|
||||
self.__connect_regions("Body center area", "Body bottom area",
|
||||
self.body_c, self.body_b,
|
||||
lambda state: _has_dual_form(state, self.player))
|
||||
@@ -803,22 +851,12 @@ class AquariaRegions:
|
||||
self.__connect_one_way_regions("final boss third form area", "final boss end",
|
||||
self.final_boss, self.final_boss_end)
|
||||
|
||||
def __connect_transturtle(self, item_source: str, item_target: str, region_source: Region, region_target: Region,
|
||||
rule=None) -> None:
|
||||
def __connect_transturtle(self, item_source: str, item_target: str, region_source: Region,
|
||||
region_target: Region) -> None:
|
||||
"""Connect a single transturtle to another one"""
|
||||
if item_source != item_target:
|
||||
if rule is None:
|
||||
self.__connect_one_way_regions(item_source, item_target, region_source, region_target,
|
||||
lambda state: state.has(item_target, self.player))
|
||||
else:
|
||||
self.__connect_one_way_regions(item_source, item_target, region_source, region_target, rule)
|
||||
|
||||
def __connect_arnassi_path_transturtle(self, item_source: str, item_target: str, region_source: Region,
|
||||
region_target: Region) -> None:
|
||||
"""Connect the Arnassi Ruins transturtle to another one"""
|
||||
self.__connect_one_way_regions(item_source, item_target, region_source, region_target,
|
||||
lambda state: state.has(item_target, self.player) and
|
||||
_has_fish_form(state, self.player))
|
||||
self.__connect_one_way_regions(item_source, item_target, region_source, region_target,
|
||||
lambda state: state.has(item_target, self.player))
|
||||
|
||||
def _connect_transturtle_to_other(self, item: str, region: Region) -> None:
|
||||
"""Connect a single transturtle to all others"""
|
||||
@@ -827,24 +865,10 @@ class AquariaRegions:
|
||||
self.__connect_transturtle(item, "Transturtle Open Water top right", region, self.openwater_tr_turtle)
|
||||
self.__connect_transturtle(item, "Transturtle Forest bottom left", region, self.forest_bl)
|
||||
self.__connect_transturtle(item, "Transturtle Home Water", region, self.home_water_transturtle)
|
||||
self.__connect_transturtle(item, "Transturtle Abyss right", region, self.abyss_r)
|
||||
self.__connect_transturtle(item, "Transturtle Abyss right", region, self.abyss_r_transturtle)
|
||||
self.__connect_transturtle(item, "Transturtle Final Boss", region, self.final_boss_tube)
|
||||
self.__connect_transturtle(item, "Transturtle Simon Says", region, self.simon)
|
||||
self.__connect_transturtle(item, "Transturtle Arnassi Ruins", region, self.arnassi_path,
|
||||
lambda state: state.has("Transturtle Arnassi Ruins", self.player) and
|
||||
_has_fish_form(state, self.player))
|
||||
|
||||
def _connect_arnassi_path_transturtle_to_other(self, item: str, region: Region) -> None:
|
||||
"""Connect the Arnassi Ruins transturtle to all others"""
|
||||
self.__connect_arnassi_path_transturtle(item, "Transturtle Veil top left", region, self.veil_tl)
|
||||
self.__connect_arnassi_path_transturtle(item, "Transturtle Veil top right", region, self.veil_tr_l)
|
||||
self.__connect_arnassi_path_transturtle(item, "Transturtle Open Water top right", region,
|
||||
self.openwater_tr_turtle)
|
||||
self.__connect_arnassi_path_transturtle(item, "Transturtle Forest bottom left", region, self.forest_bl)
|
||||
self.__connect_arnassi_path_transturtle(item, "Transturtle Home Water", region, self.home_water_transturtle)
|
||||
self.__connect_arnassi_path_transturtle(item, "Transturtle Abyss right", region, self.abyss_r)
|
||||
self.__connect_arnassi_path_transturtle(item, "Transturtle Final Boss", region, self.final_boss_tube)
|
||||
self.__connect_arnassi_path_transturtle(item, "Transturtle Simon Says", region, self.simon)
|
||||
self.__connect_transturtle(item, "Transturtle Arnassi Ruins", region, self.arnassi_cave_transturtle)
|
||||
|
||||
def __connect_transturtles(self) -> None:
|
||||
"""Connect every transturtle with others"""
|
||||
@@ -853,10 +877,10 @@ class AquariaRegions:
|
||||
self._connect_transturtle_to_other("Transturtle Open Water top right", self.openwater_tr_turtle)
|
||||
self._connect_transturtle_to_other("Transturtle Forest bottom left", self.forest_bl)
|
||||
self._connect_transturtle_to_other("Transturtle Home Water", self.home_water_transturtle)
|
||||
self._connect_transturtle_to_other("Transturtle Abyss right", self.abyss_r)
|
||||
self._connect_transturtle_to_other("Transturtle Abyss right", self.abyss_r_transturtle)
|
||||
self._connect_transturtle_to_other("Transturtle Final Boss", self.final_boss_tube)
|
||||
self._connect_transturtle_to_other("Transturtle Simon Says", self.simon)
|
||||
self._connect_arnassi_path_transturtle_to_other("Transturtle Arnassi Ruins", self.arnassi_path)
|
||||
self._connect_transturtle_to_other("Transturtle Arnassi Ruins", self.arnassi_cave_transturtle)
|
||||
|
||||
def connect_regions(self) -> None:
|
||||
"""
|
||||
@@ -893,7 +917,7 @@ class AquariaRegions:
|
||||
self.__add_event_location(self.energy_temple_boss,
|
||||
"Beating Fallen God",
|
||||
"Fallen God beated")
|
||||
self.__add_event_location(self.cathedral_boss_r,
|
||||
self.__add_event_location(self.cathedral_boss_l,
|
||||
"Beating Mithalan God",
|
||||
"Mithalan God beated")
|
||||
self.__add_event_location(self.forest_boss,
|
||||
@@ -970,8 +994,9 @@ class AquariaRegions:
|
||||
"""Since Urns need to be broken, add a damaging item to rules"""
|
||||
add_rule(self.multiworld.get_location("Open Water top right area, first urn in the Mithalas exit", self.player),
|
||||
lambda state: _has_damaging_item(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Open Water top right area, second urn in the Mithalas exit", self.player),
|
||||
lambda state: _has_damaging_item(state, self.player))
|
||||
add_rule(
|
||||
self.multiworld.get_location("Open Water top right area, second urn in the Mithalas exit", self.player),
|
||||
lambda state: _has_damaging_item(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Open Water top right area, third urn in the Mithalas exit", self.player),
|
||||
lambda state: _has_damaging_item(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Mithalas City, first urn in one of the homes", self.player),
|
||||
@@ -1019,66 +1044,46 @@ class AquariaRegions:
|
||||
Modify rules for location that need soup
|
||||
"""
|
||||
add_rule(self.multiworld.get_location("Turtle cave, Urchin Costume", self.player),
|
||||
lambda state: _has_hot_soup(state, self.player) and _has_beast_form(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Sun Worm path, first cliff bulb", self.player),
|
||||
lambda state: _has_hot_soup(state, self.player) and _has_beast_form(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Sun Worm path, second cliff bulb", self.player),
|
||||
lambda state: _has_hot_soup(state, self.player) and _has_beast_form(state, self.player))
|
||||
lambda state: _has_hot_soup(state, self.player))
|
||||
add_rule(self.multiworld.get_location("The Veil top right area, bulb at the top of the waterfall", self.player),
|
||||
lambda state: _has_hot_soup(state, self.player) and _has_beast_form(state, self.player))
|
||||
lambda state: _has_beast_and_soup_form(state, self.player))
|
||||
|
||||
def __adjusting_under_rock_location(self) -> None:
|
||||
"""
|
||||
Modify rules implying bind song needed for bulb under rocks
|
||||
"""
|
||||
add_rule(self.multiworld.get_location("Home Water, bulb under the rock in the left path from the Verse Cave",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Verse Cave left area, bulb under the rock at the end of the path",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Naija's Home, bulb under the rock at the right of the main path",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Song Cave, bulb under the rock in the path to the singing statues",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Song Cave, bulb under the rock close to the song door",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Energy Temple second area, bulb under the rock",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Open Water top left area, bulb under the rock in the right path",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Open Water top left area, bulb under the rock in the left path",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Kelp Forest top right area, bulb under the rock in the right path",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("The Veil top left area, bulb under the rock in the top right path",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Abyss right area, bulb behind the rock in the whale room",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Abyss right area, bulb in the middle path",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("The Veil top left area, bulb under the rock in the top right path",
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
|
||||
def __adjusting_light_in_dark_place_rules(self) -> None:
|
||||
add_rule(self.multiworld.get_location("Kelp Forest top right area, Black Pearl", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Kelp Forest bottom right area, Odd Container", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_entrance("Transturtle Veil top left to Transturtle Abyss right", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_entrance("Transturtle Open Water top right to Transturtle Abyss right", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_entrance("Transturtle Veil top right to Transturtle Abyss right", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_entrance("Transturtle Forest bottom left to Transturtle Abyss right", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_entrance("Transturtle Home Water to Transturtle Abyss right", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_entrance("Transturtle Final Boss to Transturtle Abyss right", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_entrance("Transturtle Simon Says to Transturtle Abyss right", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_entrance("Transturtle Arnassi Ruins to Transturtle Abyss right", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_entrance("Body center area to Abyss left bottom area", self.player),
|
||||
lambda state: _has_light(state, self.player))
|
||||
add_rule(self.multiworld.get_entrance("Veil left of sun temple to Octo cave top path", self.player),
|
||||
@@ -1097,12 +1102,14 @@ class AquariaRegions:
|
||||
def __adjusting_manual_rules(self) -> None:
|
||||
add_rule(self.multiworld.get_location("Mithalas Cathedral, Mithalan Dress", self.player),
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Open Water bottom left area, bulb inside the lowest fish pass", self.player),
|
||||
lambda state: _has_fish_form(state, self.player))
|
||||
add_rule(
|
||||
self.multiworld.get_location("Open Water bottom left area, bulb inside the lowest fish pass", self.player),
|
||||
lambda state: _has_fish_form(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Kelp Forest bottom left area, Walker Baby", self.player),
|
||||
lambda state: _has_spirit_form(state, self.player))
|
||||
add_rule(self.multiworld.get_location("The Veil top left area, bulb hidden behind the blocking rock", self.player),
|
||||
lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(
|
||||
self.multiworld.get_location("The Veil top left area, bulb hidden behind the blocking rock", self.player),
|
||||
lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Turtle cave, Turtle Egg", self.player),
|
||||
lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Abyss left area, bulb in the bottom fish pass", self.player),
|
||||
@@ -1114,103 +1121,119 @@ class AquariaRegions:
|
||||
add_rule(self.multiworld.get_location("Verse Cave right area, Big Seed", self.player),
|
||||
lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Arnassi Ruins, Song Plant Spore", self.player),
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
lambda state: _has_beast_form_or_arnassi_armor(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Energy Temple first area, bulb in the bottom room blocked by a rock",
|
||||
self.player), lambda state: _has_energy_form(state, self.player))
|
||||
self.player), lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Home Water, bulb in the bottom left room", self.player),
|
||||
lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Home Water, bulb in the path below Nautilus Prime", self.player),
|
||||
lambda state: _has_bind_song(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Naija's Home, bulb after the energy door", self.player),
|
||||
lambda state: _has_energy_form(state, self.player))
|
||||
lambda state: _has_energy_attack_item(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Abyss right area, bulb behind the rock in the whale room", self.player),
|
||||
lambda state: _has_spirit_form(state, self.player) and
|
||||
_has_sun_form(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Arnassi Ruins, Arnassi Armor", self.player),
|
||||
lambda state: _has_fish_form(state, self.player) and
|
||||
_has_spirit_form(state, self.player))
|
||||
lambda state: _has_fish_form(state, self.player) or
|
||||
_has_beast_and_soup_form(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Mithalas City, urn inside a home fish pass", self.player),
|
||||
lambda state: _has_damaging_item(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Mithalas City, urn in the Castle flower tube entrance", self.player),
|
||||
lambda state: _has_damaging_item(state, self.player))
|
||||
add_rule(self.multiworld.get_location(
|
||||
"The Veil top right area, bulb in the middle of the wall jump cliff", self.player
|
||||
), lambda state: _has_beast_form_or_arnassi_armor(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Kelp Forest top left area, Jelly Egg", self.player),
|
||||
lambda state: _has_beast_form(state, self.player))
|
||||
add_rule(self.multiworld.get_location("Sun Worm path, first cliff bulb", self.player),
|
||||
lambda state: state.has("Sun God beated", self.player))
|
||||
add_rule(self.multiworld.get_location("Sun Worm path, second cliff bulb", self.player),
|
||||
lambda state: state.has("Sun God beated", self.player))
|
||||
add_rule(self.multiworld.get_location("The Body center area, breaking Li's cage", self.player),
|
||||
lambda state: _has_tongue_cleared(state, self.player))
|
||||
|
||||
def __no_progression_hard_or_hidden_location(self) -> None:
|
||||
self.multiworld.get_location("Energy Temple boss area, Fallen God Tooth",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Mithalas boss area, beating Mithalan God",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Kelp Forest boss area, beating Drunian God",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Sun Temple boss area, beating Sun God",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Sunken City, bulb on top of the boss area",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Home Water, Nautilus Egg",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Energy Temple blaster room, Blaster Egg",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Mithalas City Castle, beating the Priests",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Mermog cave, Piranha Egg",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Octopus Cave, Dumbo Egg",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("King Jellyfish Cave, bulb in the right path from King Jelly",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("King Jellyfish Cave, Jellyfish Costume",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Final Boss area, bulb in the boss third form room",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Sun Worm path, first cliff bulb",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Sun Worm path, second cliff bulb",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("The Veil top right area, bulb at the top of the waterfall",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Bubble Cave, bulb in the left cave wall",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Bubble Cave, bulb in the right cave wall (behind the ice crystal)",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Bubble Cave, Verse Egg",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Kelp Forest bottom left area, bulb close to the spirit crystals",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Kelp Forest bottom left area, Walker Baby",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Sun Temple, Sun Key",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("The Body bottom area, Mutant Costume",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Sun Temple, bulb in the hidden room of the right part",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
self.multiworld.get_location("Arnassi Ruins, Arnassi Armor",
|
||||
self.player).item_rule =\
|
||||
self.player).item_rule = \
|
||||
lambda item: item.classification != ItemClassification.progression
|
||||
|
||||
def adjusting_rules(self, options: AquariaOptions) -> None:
|
||||
"""
|
||||
Modify rules for single location or optional rules
|
||||
"""
|
||||
self.multiworld.get_entrance("Before Final Boss to Final Boss", self.player)
|
||||
self.__adjusting_urns_rules()
|
||||
self.__adjusting_crates_rules()
|
||||
self.__adjusting_soup_rules()
|
||||
@@ -1234,7 +1257,7 @@ class AquariaRegions:
|
||||
lambda state: _has_bind_song(state, self.player))
|
||||
if options.unconfine_home_water.value in [0, 2]:
|
||||
add_rule(self.multiworld.get_entrance("Home Water to Open Water top left area", self.player),
|
||||
lambda state: _has_bind_song(state, self.player) and _has_energy_form(state, self.player))
|
||||
lambda state: _has_bind_song(state, self.player) and _has_energy_attack_item(state, self.player))
|
||||
if options.early_energy_form:
|
||||
self.multiworld.early_items[self.player]["Energy form"] = 1
|
||||
|
||||
@@ -1274,6 +1297,7 @@ class AquariaRegions:
|
||||
self.multiworld.regions.append(self.arnassi)
|
||||
self.multiworld.regions.append(self.arnassi_path)
|
||||
self.multiworld.regions.append(self.arnassi_crab_boss)
|
||||
self.multiworld.regions.append(self.arnassi_cave_transturtle)
|
||||
self.multiworld.regions.append(self.simon)
|
||||
|
||||
def __add_mithalas_regions_to_world(self) -> None:
|
||||
@@ -1300,6 +1324,7 @@ class AquariaRegions:
|
||||
self.multiworld.regions.append(self.forest_tr)
|
||||
self.multiworld.regions.append(self.forest_tr_fp)
|
||||
self.multiworld.regions.append(self.forest_bl)
|
||||
self.multiworld.regions.append(self.forest_bl_sc)
|
||||
self.multiworld.regions.append(self.forest_br)
|
||||
self.multiworld.regions.append(self.forest_boss)
|
||||
self.multiworld.regions.append(self.forest_boss_entrance)
|
||||
@@ -1337,6 +1362,7 @@ class AquariaRegions:
|
||||
self.multiworld.regions.append(self.abyss_l)
|
||||
self.multiworld.regions.append(self.abyss_lb)
|
||||
self.multiworld.regions.append(self.abyss_r)
|
||||
self.multiworld.regions.append(self.abyss_r_transturtle)
|
||||
self.multiworld.regions.append(self.ice_cave)
|
||||
self.multiworld.regions.append(self.bubble_cave)
|
||||
self.multiworld.regions.append(self.bubble_cave_boss)
|
||||
|
||||
@@ -141,7 +141,7 @@ after_home_water_locations = [
|
||||
"Sun Temple, bulb at the top of the high dark room",
|
||||
"Sun Temple, Golden Gear",
|
||||
"Sun Temple, first bulb of the temple",
|
||||
"Sun Temple, bulb on the left part",
|
||||
"Sun Temple, bulb on the right part",
|
||||
"Sun Temple, bulb in the hidden room of the right part",
|
||||
"Sun Temple, Sun Key",
|
||||
"Sun Worm path, first path bulb",
|
||||
|
||||
@@ -13,36 +13,16 @@ class BeastFormAccessTest(AquariaTestBase):
|
||||
def test_beast_form_location(self) -> None:
|
||||
"""Test locations that require beast form"""
|
||||
locations = [
|
||||
"Mithalas City Castle, beating the Priests",
|
||||
"Arnassi Ruins, Crab Armor",
|
||||
"Arnassi Ruins, Song Plant Spore",
|
||||
"Mithalas City, first bulb at the end of the top path",
|
||||
"Mithalas City, second bulb at the end of the top path",
|
||||
"Mithalas City, bulb in the top path",
|
||||
"Mithalas City, Mithalas Pot",
|
||||
"Mithalas City, urn in the Castle flower tube entrance",
|
||||
"Mermog cave, Piranha Egg",
|
||||
"Kelp Forest top left area, Jelly Egg",
|
||||
"Mithalas Cathedral, Mithalan Dress",
|
||||
"Turtle cave, bulb in Bubble Cliff",
|
||||
"Turtle cave, Urchin Costume",
|
||||
"Sun Worm path, first cliff bulb",
|
||||
"Sun Worm path, second cliff bulb",
|
||||
"The Veil top right area, bulb at the top of the waterfall",
|
||||
"Bubble Cave, bulb in the left cave wall",
|
||||
"Bubble Cave, bulb in the right cave wall (behind the ice crystal)",
|
||||
"Bubble Cave, Verse Egg",
|
||||
"Sunken City, bulb on top of the boss area",
|
||||
"Octopus Cave, Dumbo Egg",
|
||||
"Beating the Golem",
|
||||
"Beating Mergog",
|
||||
"Beating Crabbius Maximus",
|
||||
"Beating Octopus Prime",
|
||||
"Beating Mantis Shrimp Prime",
|
||||
"King Jellyfish Cave, Jellyfish Costume",
|
||||
"King Jellyfish Cave, bulb in the right path from King Jelly",
|
||||
"Beating King Jellyfish God Prime",
|
||||
"Beating Mithalan priests",
|
||||
"Sunken City cleared"
|
||||
"Sunken City cleared",
|
||||
]
|
||||
items = [["Beast form"]]
|
||||
self.assertAccessDependency(locations, items)
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
"""
|
||||
Author: Louis M
|
||||
Date: Thu, 18 Apr 2024 18:45:56 +0000
|
||||
Description: Unit test used to test accessibility of locations with and without the beast form or arnassi armor
|
||||
"""
|
||||
|
||||
from . import AquariaTestBase
|
||||
|
||||
|
||||
class BeastForArnassiArmormAccessTest(AquariaTestBase):
|
||||
"""Unit test used to test accessibility of locations with and without the beast form or arnassi armor"""
|
||||
|
||||
def test_beast_form_arnassi_armor_location(self) -> None:
|
||||
"""Test locations that require beast form or arnassi armor"""
|
||||
locations = [
|
||||
"Mithalas City Castle, beating the Priests",
|
||||
"Arnassi Ruins, Crab Armor",
|
||||
"Arnassi Ruins, Song Plant Spore",
|
||||
"Mithalas City, first bulb at the end of the top path",
|
||||
"Mithalas City, second bulb at the end of the top path",
|
||||
"Mithalas City, bulb in the top path",
|
||||
"Mithalas City, Mithalas Pot",
|
||||
"Mithalas City, urn in the Castle flower tube entrance",
|
||||
"Mermog cave, Piranha Egg",
|
||||
"Mithalas Cathedral, Mithalan Dress",
|
||||
"Kelp Forest top left area, Jelly Egg",
|
||||
"The Veil top right area, bulb in the middle of the wall jump cliff",
|
||||
"The Veil top right area, bulb at the top of the waterfall",
|
||||
"Sunken City, bulb on top of the boss area",
|
||||
"Octopus Cave, Dumbo Egg",
|
||||
"Beating the Golem",
|
||||
"Beating Mergog",
|
||||
"Beating Crabbius Maximus",
|
||||
"Beating Octopus Prime",
|
||||
"Beating Mithalan priests",
|
||||
"Sunken City cleared"
|
||||
]
|
||||
items = [["Beast form", "Arnassi Armor"]]
|
||||
self.assertAccessDependency(locations, items)
|
||||
@@ -17,55 +17,16 @@ class EnergyFormAccessTest(AquariaTestBase):
|
||||
def test_energy_form_location(self) -> None:
|
||||
"""Test locations that require Energy form"""
|
||||
locations = [
|
||||
"Home Water, Nautilus Egg",
|
||||
"Naija's Home, bulb after the energy door",
|
||||
"Energy Temple first area, bulb in the bottom room blocked by a rock",
|
||||
"Energy Temple second area, bulb under the rock",
|
||||
"Energy Temple bottom entrance, Krotite Armor",
|
||||
"Energy Temple third area, bulb in the bottom path",
|
||||
"Energy Temple boss area, Fallen God Tooth",
|
||||
"Energy Temple blaster room, Blaster Egg",
|
||||
"Mithalas City Castle, beating the Priests",
|
||||
"Mithalas Cathedral, first urn in the top right room",
|
||||
"Mithalas Cathedral, second urn in the top right room",
|
||||
"Mithalas Cathedral, third urn in the top right room",
|
||||
"Mithalas Cathedral, urn in the flesh room with fleas",
|
||||
"Mithalas Cathedral, first urn in the bottom right path",
|
||||
"Mithalas Cathedral, second urn in the bottom right path",
|
||||
"Mithalas Cathedral, urn behind the flesh vein",
|
||||
"Mithalas Cathedral, urn in the top left eyes boss room",
|
||||
"Mithalas Cathedral, first urn in the path behind the flesh vein",
|
||||
"Mithalas Cathedral, second urn in the path behind the flesh vein",
|
||||
"Mithalas Cathedral, third urn in the path behind the flesh vein",
|
||||
"Mithalas Cathedral, fourth urn in the top right room",
|
||||
"Mithalas Cathedral, Mithalan Dress",
|
||||
"Mithalas Cathedral, urn below the left entrance",
|
||||
"Mithalas boss area, beating Mithalan God",
|
||||
"Kelp Forest top left area, bulb close to the Verse Egg",
|
||||
"Kelp Forest top left area, Verse Egg",
|
||||
"Kelp Forest boss area, beating Drunian God",
|
||||
"Mermog cave, Piranha Egg",
|
||||
"Octopus Cave, Dumbo Egg",
|
||||
"Sun Temple boss area, beating Sun God",
|
||||
"Arnassi Ruins, Crab Armor",
|
||||
"King Jellyfish Cave, bulb in the right path from King Jelly",
|
||||
"King Jellyfish Cave, Jellyfish Costume",
|
||||
"Sunken City, bulb on top of the boss area",
|
||||
"The Body left area, first bulb in the top face room",
|
||||
"The Body left area, second bulb in the top face room",
|
||||
"The Body left area, bulb below the water stream",
|
||||
"The Body left area, bulb in the top path to the top face room",
|
||||
"The Body left area, bulb in the bottom face room",
|
||||
"The Body right area, bulb in the top path to the bottom face room",
|
||||
"The Body right area, bulb in the bottom face room",
|
||||
"Final Boss area, bulb in the boss third form room",
|
||||
"Beating Fallen God",
|
||||
"Beating Mithalan God",
|
||||
"Beating Drunian God",
|
||||
"Beating Sun God",
|
||||
"Beating the Golem",
|
||||
"Beating Nautilus Prime",
|
||||
"Beating Blaster Peg Prime",
|
||||
"Beating Mergog",
|
||||
"Beating Mithalan priests",
|
||||
"Beating Octopus Prime",
|
||||
"Beating Crabbius Maximus",
|
||||
"Beating King Jellyfish God Prime",
|
||||
"First secret",
|
||||
"Sunken City cleared",
|
||||
"Objective complete",
|
||||
]
|
||||
items = [["Energy form"]]
|
||||
|
||||
92
worlds/aquaria/test/test_energy_form_or_dual_form_access.py
Normal file
92
worlds/aquaria/test/test_energy_form_or_dual_form_access.py
Normal file
@@ -0,0 +1,92 @@
|
||||
"""
|
||||
Author: Louis M
|
||||
Date: Thu, 18 Apr 2024 18:45:56 +0000
|
||||
Description: Unit test used to test accessibility of locations with and without the energy form and dual form (and Li)
|
||||
"""
|
||||
|
||||
from . import AquariaTestBase
|
||||
|
||||
|
||||
class EnergyFormDualFormAccessTest(AquariaTestBase):
|
||||
"""Unit test used to test accessibility of locations with and without the energy form and dual form (and Li)"""
|
||||
options = {
|
||||
"early_energy_form": False,
|
||||
}
|
||||
|
||||
def test_energy_form_or_dual_form_location(self) -> None:
|
||||
"""Test locations that require Energy form or dual form"""
|
||||
locations = [
|
||||
"Naija's Home, bulb after the energy door",
|
||||
"Home Water, Nautilus Egg",
|
||||
"Energy Temple second area, bulb under the rock",
|
||||
"Energy Temple bottom entrance, Krotite Armor",
|
||||
"Energy Temple third area, bulb in the bottom path",
|
||||
"Energy Temple blaster room, Blaster Egg",
|
||||
"Energy Temple boss area, Fallen God Tooth",
|
||||
"Mithalas City Castle, beating the Priests",
|
||||
"Mithalas boss area, beating Mithalan God",
|
||||
"Mithalas Cathedral, first urn in the top right room",
|
||||
"Mithalas Cathedral, second urn in the top right room",
|
||||
"Mithalas Cathedral, third urn in the top right room",
|
||||
"Mithalas Cathedral, urn in the flesh room with fleas",
|
||||
"Mithalas Cathedral, first urn in the bottom right path",
|
||||
"Mithalas Cathedral, second urn in the bottom right path",
|
||||
"Mithalas Cathedral, urn behind the flesh vein",
|
||||
"Mithalas Cathedral, urn in the top left eyes boss room",
|
||||
"Mithalas Cathedral, first urn in the path behind the flesh vein",
|
||||
"Mithalas Cathedral, second urn in the path behind the flesh vein",
|
||||
"Mithalas Cathedral, third urn in the path behind the flesh vein",
|
||||
"Mithalas Cathedral, fourth urn in the top right room",
|
||||
"Mithalas Cathedral, Mithalan Dress",
|
||||
"Mithalas Cathedral, urn below the left entrance",
|
||||
"Kelp Forest top left area, bulb close to the Verse Egg",
|
||||
"Kelp Forest top left area, Verse Egg",
|
||||
"Kelp Forest boss area, beating Drunian God",
|
||||
"Mermog cave, Piranha Egg",
|
||||
"Octopus Cave, Dumbo Egg",
|
||||
"Sun Temple boss area, beating Sun God",
|
||||
"King Jellyfish Cave, bulb in the right path from King Jelly",
|
||||
"King Jellyfish Cave, Jellyfish Costume",
|
||||
"Sunken City right area, crate close to the save crystal",
|
||||
"Sunken City right area, crate in the left bottom room",
|
||||
"Sunken City left area, crate in the little pipe room",
|
||||
"Sunken City left area, crate close to the save crystal",
|
||||
"Sunken City left area, crate before the bedroom",
|
||||
"Sunken City left area, Girl Costume",
|
||||
"Sunken City, bulb on top of the boss area",
|
||||
"The Body center area, breaking Li's cage",
|
||||
"The Body center area, bulb on the main path blocking tube",
|
||||
"The Body left area, first bulb in the top face room",
|
||||
"The Body left area, second bulb in the top face room",
|
||||
"The Body left area, bulb below the water stream",
|
||||
"The Body left area, bulb in the top path to the top face room",
|
||||
"The Body left area, bulb in the bottom face room",
|
||||
"The Body right area, bulb in the top face room",
|
||||
"The Body right area, bulb in the top path to the bottom face room",
|
||||
"The Body right area, bulb in the bottom face room",
|
||||
"The Body bottom area, bulb in the Jelly Zap room",
|
||||
"The Body bottom area, bulb in the nautilus room",
|
||||
"The Body bottom area, Mutant Costume",
|
||||
"Final Boss area, bulb in the boss third form room",
|
||||
"Final Boss area, first bulb in the turtle room",
|
||||
"Final Boss area, second bulb in the turtle room",
|
||||
"Final Boss area, third bulb in the turtle room",
|
||||
"Final Boss area, Transturtle",
|
||||
"Beating Fallen God",
|
||||
"Beating Blaster Peg Prime",
|
||||
"Beating Mithalan God",
|
||||
"Beating Drunian God",
|
||||
"Beating Sun God",
|
||||
"Beating the Golem",
|
||||
"Beating Nautilus Prime",
|
||||
"Beating Mergog",
|
||||
"Beating Mithalan priests",
|
||||
"Beating Octopus Prime",
|
||||
"Beating King Jellyfish God Prime",
|
||||
"Beating the Golem",
|
||||
"Sunken City cleared",
|
||||
"First secret",
|
||||
"Objective complete"
|
||||
]
|
||||
items = [["Energy form", "Dual form", "Li and Li song", "Body tongue cleared"]]
|
||||
self.assertAccessDependency(locations, items)
|
||||
@@ -17,6 +17,7 @@ class FishFormAccessTest(AquariaTestBase):
|
||||
"""Test locations that require fish form"""
|
||||
locations = [
|
||||
"The Veil top left area, bulb inside the fish pass",
|
||||
"Energy Temple first area, Energy Idol",
|
||||
"Mithalas City, Doll",
|
||||
"Mithalas City, urn inside a home fish pass",
|
||||
"Kelp Forest top right area, bulb in the top fish pass",
|
||||
@@ -30,8 +31,7 @@ class FishFormAccessTest(AquariaTestBase):
|
||||
"Octopus Cave, Dumbo Egg",
|
||||
"Octopus Cave, bulb in the path below the Octopus Cave path",
|
||||
"Beating Octopus Prime",
|
||||
"Abyss left area, bulb in the bottom fish pass",
|
||||
"Arnassi Ruins, Arnassi Armor"
|
||||
"Abyss left area, bulb in the bottom fish pass"
|
||||
]
|
||||
items = [["Fish form"]]
|
||||
self.assertAccessDependency(locations, items)
|
||||
|
||||
@@ -39,7 +39,6 @@ class LightAccessTest(AquariaTestBase):
|
||||
"Abyss right area, bulb in the middle path",
|
||||
"Abyss right area, bulb behind the rock in the middle path",
|
||||
"Abyss right area, bulb in the left green room",
|
||||
"Abyss right area, Transturtle",
|
||||
"Ice Cave, bulb in the room to the right",
|
||||
"Ice Cave, first bulb in the top exit room",
|
||||
"Ice Cave, second bulb in the top exit room",
|
||||
|
||||
@@ -30,7 +30,6 @@ class SpiritFormAccessTest(AquariaTestBase):
|
||||
"Sunken City left area, Girl Costume",
|
||||
"Beating Mantis Shrimp Prime",
|
||||
"First secret",
|
||||
"Arnassi Ruins, Arnassi Armor",
|
||||
]
|
||||
items = [["Spirit form"]]
|
||||
self.assertAccessDependency(locations, items)
|
||||
|
||||
19
worlds/blasphemous/ExtractorConfig.json
Normal file
19
worlds/blasphemous/ExtractorConfig.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"type": "WorldDefinition",
|
||||
"configuration": "./output/StringWorldDefinition.json",
|
||||
"emptyRegionsToKeep": [
|
||||
"D17Z01S01",
|
||||
"D01Z02S01",
|
||||
"D02Z03S09",
|
||||
"D03Z03S11",
|
||||
"D04Z03S01",
|
||||
"D06Z01S09",
|
||||
"D20Z02S09",
|
||||
"D09Z01S09[Cell24]",
|
||||
"D09Z01S08[Cell7]",
|
||||
"D09Z01S08[Cell18]",
|
||||
"D09BZ01S01[Cell24]",
|
||||
"D09BZ01S01[Cell17]",
|
||||
"D09BZ01S01[Cell19]"
|
||||
]
|
||||
}
|
||||
@@ -637,52 +637,35 @@ item_table: List[ItemDict] = [
|
||||
'classification': ItemClassification.filler}
|
||||
]
|
||||
|
||||
event_table: Dict[str, str] = {
|
||||
"OpenedDCGateW": "D01Z05S24",
|
||||
"OpenedDCGateE": "D01Z05S12",
|
||||
"OpenedDCLadder": "D01Z05S20",
|
||||
"OpenedWOTWCave": "D02Z01S06",
|
||||
"RodeGOTPElevator": "D02Z02S11",
|
||||
"OpenedConventLadder": "D02Z03S11",
|
||||
"BrokeJondoBellW": "D03Z02S09",
|
||||
"BrokeJondoBellE": "D03Z02S05",
|
||||
"OpenedMOMLadder": "D04Z02S06",
|
||||
"OpenedTSCGate": "D05Z02S11",
|
||||
"OpenedARLadder": "D06Z01S23",
|
||||
"BrokeBOTTCStatue": "D08Z01S02",
|
||||
"OpenedWOTHPGate": "D09Z01S05",
|
||||
"OpenedBOTSSLadder": "D17Z01S04"
|
||||
}
|
||||
|
||||
group_table: Dict[str, Set[str]] = {
|
||||
"wounds" : ["Holy Wound of Attrition",
|
||||
"wounds" : {"Holy Wound of Attrition",
|
||||
"Holy Wound of Contrition",
|
||||
"Holy Wound of Compunction"],
|
||||
"Holy Wound of Compunction"},
|
||||
|
||||
"masks" : ["Deformed Mask of Orestes",
|
||||
"masks" : {"Deformed Mask of Orestes",
|
||||
"Mirrored Mask of Dolphos",
|
||||
"Embossed Mask of Crescente"],
|
||||
"Embossed Mask of Crescente"},
|
||||
|
||||
"marks" : ["Mark of the First Refuge",
|
||||
"marks" : {"Mark of the First Refuge",
|
||||
"Mark of the Second Refuge",
|
||||
"Mark of the Third Refuge"],
|
||||
"Mark of the Third Refuge"},
|
||||
|
||||
"tirso" : ["Bouquet of Rosemary",
|
||||
"tirso" : {"Bouquet of Rosemary",
|
||||
"Incense Garlic",
|
||||
"Olive Seeds",
|
||||
"Dried Clove",
|
||||
"Sooty Garlic",
|
||||
"Bouquet of Thyme"],
|
||||
"Bouquet of Thyme"},
|
||||
|
||||
"tentudia": ["Tentudia's Carnal Remains",
|
||||
"tentudia": {"Tentudia's Carnal Remains",
|
||||
"Remains of Tentudia's Hair",
|
||||
"Tentudia's Skeletal Remains"],
|
||||
"Tentudia's Skeletal Remains"},
|
||||
|
||||
"egg" : ["Melted Golden Coins",
|
||||
"egg" : {"Melted Golden Coins",
|
||||
"Torn Bridal Ribbon",
|
||||
"Black Grieving Veil"],
|
||||
"Black Grieving Veil"},
|
||||
|
||||
"bones" : ["Parietal bone of Lasser, the Inquisitor",
|
||||
"bones" : {"Parietal bone of Lasser, the Inquisitor",
|
||||
"Jaw of Ashgan, the Inquisitor",
|
||||
"Cervical vertebra of Zicher, the Brewmaster",
|
||||
"Clavicle of Dalhuisen, the Schoolchild",
|
||||
@@ -725,14 +708,14 @@ group_table: Dict[str, Set[str]] = {
|
||||
"Scaphoid of Fierce, the Leper",
|
||||
"Anklebone of Weston, the Pilgrim",
|
||||
"Calcaneum of Persian, the Bandit",
|
||||
"Navicular of Kahnnyhoo, the Murderer"],
|
||||
"Navicular of Kahnnyhoo, the Murderer"},
|
||||
|
||||
"power" : ["Life Upgrade",
|
||||
"power" : {"Life Upgrade",
|
||||
"Fervour Upgrade",
|
||||
"Empty Bile Vessel",
|
||||
"Quicksilver"],
|
||||
"Quicksilver"},
|
||||
|
||||
"prayer" : ["Seguiriya to your Eyes like Stars",
|
||||
"prayer" : {"Seguiriya to your Eyes like Stars",
|
||||
"Debla of the Lights",
|
||||
"Saeta Dolorosa",
|
||||
"Campanillero to the Sons of the Aurora",
|
||||
@@ -746,10 +729,17 @@ group_table: Dict[str, Set[str]] = {
|
||||
"Romance to the Crimson Mist",
|
||||
"Zambra to the Resplendent Crown",
|
||||
"Cantina of the Blue Rose",
|
||||
"Mirabras of the Return to Port"]
|
||||
"Mirabras of the Return to Port"},
|
||||
|
||||
"toe" : {"Little Toe made of Limestone",
|
||||
"Big Toe made of Limestone",
|
||||
"Fourth Toe made of Limestone"},
|
||||
|
||||
"eye" : {"Severed Right Eye of the Traitor",
|
||||
"Broken Left Eye of the Traitor"}
|
||||
}
|
||||
|
||||
tears_set: Set[str] = [
|
||||
tears_list: List[str] = [
|
||||
"Tears of Atonement (500)",
|
||||
"Tears of Atonement (625)",
|
||||
"Tears of Atonement (750)",
|
||||
@@ -772,16 +762,16 @@ tears_set: Set[str] = [
|
||||
"Tears of Atonement (30000)"
|
||||
]
|
||||
|
||||
reliquary_set: Set[str] = [
|
||||
reliquary_set: Set[str] = {
|
||||
"Reliquary of the Fervent Heart",
|
||||
"Reliquary of the Suffering Heart",
|
||||
"Reliquary of the Sorrowful Heart"
|
||||
]
|
||||
}
|
||||
|
||||
skill_set: Set[str] = [
|
||||
skill_set: Set[str] = {
|
||||
"Combo Skill",
|
||||
"Charged Skill",
|
||||
"Ranged Skill",
|
||||
"Dive Skill",
|
||||
"Lunge Skill"
|
||||
]
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,5 @@
|
||||
from Options import Choice, Toggle, DefaultOnToggle, DeathLink, StartInventoryPool
|
||||
from dataclasses import dataclass
|
||||
from Options import Choice, Toggle, DefaultOnToggle, DeathLink, PerGameCommonOptions, OptionGroup
|
||||
import random
|
||||
|
||||
|
||||
@@ -20,23 +21,30 @@ class ChoiceIsRandom(Choice):
|
||||
|
||||
|
||||
class PrieDieuWarp(DefaultOnToggle):
|
||||
"""Automatically unlocks the ability to warp between Prie Dieu shrines."""
|
||||
"""
|
||||
Automatically unlocks the ability to warp between Prie Dieu shrines.
|
||||
"""
|
||||
display_name = "Unlock Fast Travel"
|
||||
|
||||
|
||||
class SkipCutscenes(DefaultOnToggle):
|
||||
"""Automatically skips most cutscenes."""
|
||||
"""
|
||||
Automatically skips most cutscenes.
|
||||
"""
|
||||
display_name = "Auto Skip Cutscenes"
|
||||
|
||||
|
||||
class CorpseHints(DefaultOnToggle):
|
||||
"""Changes the 34 corpses in game to give various hints about item locations."""
|
||||
"""
|
||||
Changes the 34 corpses in game to give various hints about item locations.
|
||||
"""
|
||||
display_name = "Corpse Hints"
|
||||
|
||||
|
||||
class Difficulty(Choice):
|
||||
"""Adjusts the overall difficulty of the randomizer, including upgrades required to defeat bosses
|
||||
and advanced movement tricks or glitches."""
|
||||
"""
|
||||
Adjusts the overall difficulty of the randomizer, including upgrades required to defeat bosses and advanced movement tricks or glitches.
|
||||
"""
|
||||
display_name = "Difficulty"
|
||||
option_easy = 0
|
||||
option_normal = 1
|
||||
@@ -45,15 +53,18 @@ class Difficulty(Choice):
|
||||
|
||||
|
||||
class Penitence(Toggle):
|
||||
"""Allows one of the three Penitences to be chosen at the beginning of the game."""
|
||||
"""
|
||||
Allows one of the three Penitences to be chosen at the beginning of the game.
|
||||
"""
|
||||
display_name = "Penitence"
|
||||
|
||||
|
||||
class StartingLocation(ChoiceIsRandom):
|
||||
"""Choose where to start the randomizer. Note that some starting locations cannot be chosen with certain
|
||||
other options.
|
||||
Specifically, Brotherhood and Mourning And Havoc cannot be chosen if Shuffle Dash is enabled, and Grievance Ascends
|
||||
cannot be chosen if Shuffle Wall Climb is enabled."""
|
||||
"""
|
||||
Choose where to start the randomizer. Note that some starting locations cannot be chosen with certain other options.
|
||||
|
||||
Specifically, Brotherhood and Mourning And Havoc cannot be chosen if Shuffle Dash is enabled, and Grievance Ascends cannot be chosen if Shuffle Wall Climb is enabled.
|
||||
"""
|
||||
display_name = "Starting Location"
|
||||
option_brotherhood = 0
|
||||
option_albero = 1
|
||||
@@ -66,10 +77,15 @@ class StartingLocation(ChoiceIsRandom):
|
||||
|
||||
|
||||
class Ending(Choice):
|
||||
"""Choose which ending is required to complete the game.
|
||||
"""
|
||||
Choose which ending is required to complete the game.
|
||||
|
||||
Talking to Tirso in Albero will tell you the selected ending for the current game.
|
||||
|
||||
Ending A: Collect all thorn upgrades.
|
||||
Ending C: Collect all thorn upgrades and the Holy Wound of Abnegation."""
|
||||
|
||||
Ending C: Collect all thorn upgrades and the Holy Wound of Abnegation.
|
||||
"""
|
||||
display_name = "Ending"
|
||||
option_any_ending = 0
|
||||
option_ending_a = 1
|
||||
@@ -78,14 +94,18 @@ class Ending(Choice):
|
||||
|
||||
|
||||
class SkipLongQuests(Toggle):
|
||||
"""Ensures that the rewards for long quests will be filler items.
|
||||
Affected locations: \"Albero: Donate 50000 Tears\", \"Ossuary: 11th reward\", \"AtTotS: Miriam's gift\",
|
||||
\"TSC: Jocinero's final reward\""""
|
||||
"""
|
||||
Ensures that the rewards for long quests will be filler items.
|
||||
|
||||
Affected locations: "Albero: Donate 50000 Tears", "Ossuary: 11th reward", "AtTotS: Miriam's gift", "TSC: Jocinero's final reward"
|
||||
"""
|
||||
display_name = "Skip Long Quests"
|
||||
|
||||
|
||||
class ThornShuffle(Choice):
|
||||
"""Shuffles the Thorn given by Deogracias and all Thorn upgrades into the item pool."""
|
||||
"""
|
||||
Shuffles the Thorn given by Deogracias and all Thorn upgrades into the item pool.
|
||||
"""
|
||||
display_name = "Shuffle Thorn"
|
||||
option_anywhere = 0
|
||||
option_local_only = 1
|
||||
@@ -94,50 +114,68 @@ class ThornShuffle(Choice):
|
||||
|
||||
|
||||
class DashShuffle(Toggle):
|
||||
"""Turns the ability to dash into an item that must be found in the multiworld."""
|
||||
"""
|
||||
Turns the ability to dash into an item that must be found in the multiworld.
|
||||
"""
|
||||
display_name = "Shuffle Dash"
|
||||
|
||||
|
||||
class WallClimbShuffle(Toggle):
|
||||
"""Turns the ability to climb walls with your sword into an item that must be found in the multiworld."""
|
||||
"""
|
||||
Turns the ability to climb walls with your sword into an item that must be found in the multiworld.
|
||||
"""
|
||||
display_name = "Shuffle Wall Climb"
|
||||
|
||||
|
||||
class ReliquaryShuffle(DefaultOnToggle):
|
||||
"""Adds the True Torment exclusive Reliquary rosary beads into the item pool."""
|
||||
"""
|
||||
Adds the True Torment exclusive Reliquary rosary beads into the item pool.
|
||||
"""
|
||||
display_name = "Shuffle Penitence Rewards"
|
||||
|
||||
|
||||
class CustomItem1(Toggle):
|
||||
"""Adds the custom relic Boots of Pleading into the item pool, which grants the ability to fall onto spikes
|
||||
and survive.
|
||||
Must have the \"Blasphemous-Boots-of-Pleading\" mod installed to connect to a multiworld."""
|
||||
"""
|
||||
Adds the custom relic Boots of Pleading into the item pool, which grants the ability to fall onto spikes and survive.
|
||||
|
||||
Must have the "Boots of Pleading" mod installed to connect to a multiworld.
|
||||
"""
|
||||
display_name = "Boots of Pleading"
|
||||
|
||||
|
||||
class CustomItem2(Toggle):
|
||||
"""Adds the custom relic Purified Hand of the Nun into the item pool, which grants the ability to jump
|
||||
a second time in mid-air.
|
||||
Must have the \"Blasphemous-Double-Jump\" mod installed to connect to a multiworld."""
|
||||
"""
|
||||
Adds the custom relic Purified Hand of the Nun into the item pool, which grants the ability to jump a second time in mid-air.
|
||||
|
||||
Must have the "Double Jump" mod installed to connect to a multiworld.
|
||||
"""
|
||||
display_name = "Purified Hand of the Nun"
|
||||
|
||||
|
||||
class StartWheel(Toggle):
|
||||
"""Changes the beginning gift to The Young Mason's Wheel."""
|
||||
"""
|
||||
Changes the beginning gift to The Young Mason's Wheel.
|
||||
"""
|
||||
display_name = "Start with Wheel"
|
||||
|
||||
|
||||
class SkillRando(Toggle):
|
||||
"""Randomizes the abilities from the skill tree into the item pool."""
|
||||
"""
|
||||
Randomizes the abilities from the skill tree into the item pool.
|
||||
"""
|
||||
display_name = "Skill Randomizer"
|
||||
|
||||
|
||||
class EnemyRando(Choice):
|
||||
"""Randomizes the enemies that appear in each room.
|
||||
Shuffled: Enemies will be shuffled amongst each other, but can only appear as many times as they do in
|
||||
a standard game.
|
||||
"""
|
||||
Randomizes the enemies that appear in each room.
|
||||
|
||||
Shuffled: Enemies will be shuffled amongst each other, but can only appear as many times as they do in a standard game.
|
||||
|
||||
Randomized: Every enemy is completely random, and can appear any number of times.
|
||||
Some enemies will never be randomized."""
|
||||
|
||||
Some enemies will never be randomized.
|
||||
"""
|
||||
display_name = "Enemy Randomizer"
|
||||
option_disabled = 0
|
||||
option_shuffled = 1
|
||||
@@ -146,43 +184,75 @@ class EnemyRando(Choice):
|
||||
|
||||
|
||||
class EnemyGroups(DefaultOnToggle):
|
||||
"""Randomized enemies will chosen from sets of specific groups.
|
||||
"""
|
||||
Randomized enemies will be chosen from sets of specific groups.
|
||||
|
||||
(Weak, normal, large, flying)
|
||||
Has no effect if Enemy Randomizer is disabled."""
|
||||
|
||||
Has no effect if Enemy Randomizer is disabled.
|
||||
"""
|
||||
display_name = "Enemy Groups"
|
||||
|
||||
|
||||
class EnemyScaling(DefaultOnToggle):
|
||||
"""Randomized enemies will have their stats increased or decreased depending on the area they appear in.
|
||||
Has no effect if Enemy Randomizer is disabled."""
|
||||
"""
|
||||
Randomized enemies will have their stats increased or decreased depending on the area they appear in.
|
||||
|
||||
Has no effect if Enemy Randomizer is disabled.
|
||||
"""
|
||||
display_name = "Enemy Scaling"
|
||||
|
||||
|
||||
class BlasphemousDeathLink(DeathLink):
|
||||
"""When you die, everyone dies. The reverse is also true.
|
||||
Note that Guilt Fragments will not appear when killed by Death Link."""
|
||||
"""
|
||||
When you die, everyone dies. The reverse is also true.
|
||||
|
||||
Note that Guilt Fragments will not appear when killed by Death Link.
|
||||
"""
|
||||
|
||||
|
||||
blasphemous_options = {
|
||||
"prie_dieu_warp": PrieDieuWarp,
|
||||
"skip_cutscenes": SkipCutscenes,
|
||||
"corpse_hints": CorpseHints,
|
||||
"difficulty": Difficulty,
|
||||
"penitence": Penitence,
|
||||
"starting_location": StartingLocation,
|
||||
"ending": Ending,
|
||||
"skip_long_quests": SkipLongQuests,
|
||||
"thorn_shuffle" : ThornShuffle,
|
||||
"dash_shuffle": DashShuffle,
|
||||
"wall_climb_shuffle": WallClimbShuffle,
|
||||
"reliquary_shuffle": ReliquaryShuffle,
|
||||
"boots_of_pleading": CustomItem1,
|
||||
"purified_hand": CustomItem2,
|
||||
"start_wheel": StartWheel,
|
||||
"skill_randomizer": SkillRando,
|
||||
"enemy_randomizer": EnemyRando,
|
||||
"enemy_groups": EnemyGroups,
|
||||
"enemy_scaling": EnemyScaling,
|
||||
"death_link": BlasphemousDeathLink,
|
||||
"start_inventory": StartInventoryPool
|
||||
}
|
||||
@dataclass
|
||||
class BlasphemousOptions(PerGameCommonOptions):
|
||||
prie_dieu_warp: PrieDieuWarp
|
||||
skip_cutscenes: SkipCutscenes
|
||||
corpse_hints: CorpseHints
|
||||
difficulty: Difficulty
|
||||
penitence: Penitence
|
||||
starting_location: StartingLocation
|
||||
ending: Ending
|
||||
skip_long_quests: SkipLongQuests
|
||||
thorn_shuffle: ThornShuffle
|
||||
dash_shuffle: DashShuffle
|
||||
wall_climb_shuffle: WallClimbShuffle
|
||||
reliquary_shuffle: ReliquaryShuffle
|
||||
boots_of_pleading: CustomItem1
|
||||
purified_hand: CustomItem2
|
||||
start_wheel: StartWheel
|
||||
skill_randomizer: SkillRando
|
||||
enemy_randomizer: EnemyRando
|
||||
enemy_groups: EnemyGroups
|
||||
enemy_scaling: EnemyScaling
|
||||
death_link: BlasphemousDeathLink
|
||||
|
||||
|
||||
blas_option_groups = [
|
||||
OptionGroup("Quality of Life", [
|
||||
PrieDieuWarp,
|
||||
SkipCutscenes,
|
||||
CorpseHints,
|
||||
SkipLongQuests,
|
||||
StartWheel
|
||||
]),
|
||||
OptionGroup("Moveset", [
|
||||
DashShuffle,
|
||||
WallClimbShuffle,
|
||||
SkillRando,
|
||||
CustomItem1,
|
||||
CustomItem2
|
||||
]),
|
||||
OptionGroup("Enemy Randomizer", [
|
||||
EnemyRando,
|
||||
EnemyGroups,
|
||||
EnemyScaling
|
||||
])
|
||||
]
|
||||
|
||||
582
worlds/blasphemous/Preprocessor.py
Normal file
582
worlds/blasphemous/Preprocessor.py
Normal file
@@ -0,0 +1,582 @@
|
||||
# Preprocessor to convert Blasphemous Randomizer logic into a StringWorldDefinition for use with APHKLogicExtractor
|
||||
# https://github.com/BrandenEK/Blasphemous.Randomizer
|
||||
# https://github.com/ArchipelagoMW-HollowKnight/APHKLogicExtractor
|
||||
|
||||
|
||||
import json, requests, argparse
|
||||
from typing import List, Dict, Any
|
||||
|
||||
|
||||
def load_resource_local(file: str) -> List[Dict[str, Any]]:
|
||||
print(f"Reading from {file}")
|
||||
loaded = []
|
||||
with open(file, encoding="utf-8") as f:
|
||||
loaded = read_json(f.readlines())
|
||||
f.close()
|
||||
|
||||
return loaded
|
||||
|
||||
|
||||
def load_resource_from_web(url: str) -> List[Dict[str, Any]]:
|
||||
req = requests.get(url, timeout=1)
|
||||
print(f"Reading from {url}")
|
||||
req.encoding = "utf-8"
|
||||
lines: List[str] = []
|
||||
for line in req.text.splitlines():
|
||||
while "\t" in line:
|
||||
line = line[1::]
|
||||
if line != "":
|
||||
lines.append(line)
|
||||
return read_json(lines)
|
||||
|
||||
|
||||
def read_json(lines: List[str]) -> List[Dict[str, Any]]:
|
||||
loaded = []
|
||||
creating_object: bool = False
|
||||
obj: str = ""
|
||||
for line in lines:
|
||||
stripped = line.strip()
|
||||
if "{" in stripped:
|
||||
creating_object = True
|
||||
obj += stripped
|
||||
continue
|
||||
elif "}," in stripped or "}" in stripped and "]" in lines[lines.index(line)+1]:
|
||||
creating_object = False
|
||||
obj += "}"
|
||||
#print(f"obj = {obj}")
|
||||
loaded.append(json.loads(obj))
|
||||
obj = ""
|
||||
continue
|
||||
|
||||
if not creating_object:
|
||||
continue
|
||||
else:
|
||||
try:
|
||||
if "}," in lines[lines.index(line)+1] and stripped[-1] == ",":
|
||||
obj += stripped[:-1]
|
||||
else:
|
||||
obj += stripped
|
||||
except IndexError:
|
||||
obj += stripped
|
||||
|
||||
return loaded
|
||||
|
||||
|
||||
def get_room_from_door(door: str) -> str:
|
||||
return door[:door.find("[")]
|
||||
|
||||
|
||||
def preprocess_logic(is_door: bool, id: str, logic: str) -> str:
|
||||
if id in logic and not is_door:
|
||||
index: int = logic.find(id)
|
||||
logic = logic[:index] + logic[index+len(id)+4:]
|
||||
|
||||
while ">=" in logic:
|
||||
index: int = logic.find(">=")
|
||||
logic = logic[:index-1] + logic[index+3:]
|
||||
|
||||
while ">" in logic:
|
||||
index: int = logic.find(">")
|
||||
count = int(logic[index+2])
|
||||
count += 1
|
||||
logic = logic[:index-1] + str(count) + logic[index+3:]
|
||||
|
||||
while "<=" in logic:
|
||||
index: int = logic.find("<=")
|
||||
logic = logic[:index-1] + logic[index+3:]
|
||||
|
||||
while "<" in logic:
|
||||
index: int = logic.find("<")
|
||||
count = int(logic[index+2])
|
||||
count += 1
|
||||
logic = logic[:index-1] + str(count) + logic[index+3:]
|
||||
|
||||
#print(logic)
|
||||
return logic
|
||||
|
||||
|
||||
def build_logic_conditions(logic: str) -> List[List[str]]:
|
||||
all_conditions: List[List[str]] = []
|
||||
|
||||
parts = logic.split()
|
||||
sub_part: str = ""
|
||||
current_index: int = 0
|
||||
parens: int = -1
|
||||
current_condition: List[str] = []
|
||||
parens_conditions: List[List[List[str]]] = []
|
||||
|
||||
for index, part in enumerate(parts):
|
||||
#print(current_index, index, parens, part)
|
||||
|
||||
# skip parts that have already been handled
|
||||
if index < current_index:
|
||||
continue
|
||||
|
||||
# break loop if reached final part
|
||||
try:
|
||||
parts[index+1]
|
||||
except IndexError:
|
||||
#print("INDEXERROR", part)
|
||||
if parens < 0:
|
||||
current_condition.append(part)
|
||||
if len(parens_conditions) > 0:
|
||||
for i in parens_conditions:
|
||||
for j in i:
|
||||
all_conditions.append(j + current_condition)
|
||||
else:
|
||||
all_conditions.append(current_condition)
|
||||
break
|
||||
|
||||
#print(current_condition, parens, sub_part)
|
||||
|
||||
# prepare for subcondition
|
||||
if "(" in part:
|
||||
# keep track of nested parentheses
|
||||
if parens == -1:
|
||||
parens = 0
|
||||
for char in part:
|
||||
if char == "(":
|
||||
parens += 1
|
||||
|
||||
# add to sub part
|
||||
if sub_part == "":
|
||||
sub_part = part
|
||||
else:
|
||||
sub_part += f" {part}"
|
||||
#if not ")" in part:
|
||||
continue
|
||||
|
||||
# end of subcondition
|
||||
if ")" in part:
|
||||
# read every character in case of multiple closing parentheses
|
||||
for char in part:
|
||||
if char == ")":
|
||||
parens -= 1
|
||||
|
||||
sub_part += f" {part}"
|
||||
|
||||
# if reached end of parentheses, handle subcondition
|
||||
if parens == 0:
|
||||
#print(current_condition, sub_part)
|
||||
parens = -1
|
||||
|
||||
try:
|
||||
parts[index+1]
|
||||
except IndexError:
|
||||
#print("END OF LOGIC")
|
||||
if len(parens_conditions) > 0:
|
||||
parens_conditions.append(build_logic_subconditions(current_condition, sub_part))
|
||||
#print("PARENS:", parens_conditions)
|
||||
|
||||
temp_conditions: List[List[str]] = []
|
||||
|
||||
for i in parens_conditions[0]:
|
||||
for j in parens_conditions[1]:
|
||||
temp_conditions.append(i + j)
|
||||
|
||||
parens_conditions.pop(0)
|
||||
parens_conditions.pop(0)
|
||||
|
||||
while len(parens_conditions) > 0:
|
||||
temp_conditions2 = temp_conditions
|
||||
temp_conditions = []
|
||||
for k in temp_conditions2:
|
||||
for l in parens_conditions[0]:
|
||||
temp_conditions.append(k + l)
|
||||
|
||||
parens_conditions.pop(0)
|
||||
|
||||
#print("TEMP:", remove_duplicates(temp_conditions))
|
||||
all_conditions += temp_conditions
|
||||
else:
|
||||
all_conditions += build_logic_subconditions(current_condition, sub_part)
|
||||
else:
|
||||
#print("NEXT PARTS:", parts[index+1], parts[index+2])
|
||||
if parts[index+1] == "&&":
|
||||
parens_conditions.append(build_logic_subconditions(current_condition, sub_part))
|
||||
#print("PARENS:", parens_conditions)
|
||||
else:
|
||||
if len(parens_conditions) > 0:
|
||||
parens_conditions.append(build_logic_subconditions(current_condition, sub_part))
|
||||
#print("PARENS:", parens_conditions)
|
||||
|
||||
temp_conditions: List[List[str]] = []
|
||||
|
||||
for i in parens_conditions[0]:
|
||||
for j in parens_conditions[1]:
|
||||
temp_conditions.append(i + j)
|
||||
|
||||
parens_conditions.pop(0)
|
||||
parens_conditions.pop(0)
|
||||
|
||||
while len(parens_conditions) > 0:
|
||||
temp_conditions2 = temp_conditions
|
||||
temp_conditions = []
|
||||
for k in temp_conditions2:
|
||||
for l in parens_conditions[0]:
|
||||
temp_conditions.append(k + l)
|
||||
|
||||
parens_conditions.pop(0)
|
||||
|
||||
#print("TEMP:", remove_duplicates(temp_conditions))
|
||||
all_conditions += temp_conditions
|
||||
else:
|
||||
all_conditions += build_logic_subconditions(current_condition, sub_part)
|
||||
|
||||
current_index = index+2
|
||||
|
||||
current_condition = []
|
||||
sub_part = ""
|
||||
|
||||
continue
|
||||
|
||||
# collect all parts until reaching end of parentheses
|
||||
if parens > 0:
|
||||
sub_part += f" {part}"
|
||||
continue
|
||||
|
||||
current_condition.append(part)
|
||||
|
||||
# continue with current condition
|
||||
if parts[index+1] == "&&":
|
||||
current_index = index+2
|
||||
continue
|
||||
|
||||
# add condition to list and start new one
|
||||
elif parts[index+1] == "||":
|
||||
if len(parens_conditions) > 0:
|
||||
for i in parens_conditions:
|
||||
for j in i:
|
||||
all_conditions.append(j + current_condition)
|
||||
parens_conditions = []
|
||||
else:
|
||||
all_conditions.append(current_condition)
|
||||
current_condition = []
|
||||
current_index = index+2
|
||||
continue
|
||||
|
||||
return remove_duplicates(all_conditions)
|
||||
|
||||
|
||||
def build_logic_subconditions(current_condition: List[str], subcondition: str) -> List[List[str]]:
|
||||
#print("STARTED SUBCONDITION", current_condition, subcondition)
|
||||
subconditions = build_logic_conditions(subcondition[1:-1])
|
||||
final_conditions = []
|
||||
|
||||
for condition in subconditions:
|
||||
final_condition = current_condition + condition
|
||||
final_conditions.append(final_condition)
|
||||
|
||||
#print("ENDED SUBCONDITION")
|
||||
#print(final_conditions)
|
||||
return final_conditions
|
||||
|
||||
|
||||
def remove_duplicates(conditions: List[List[str]]) -> List[List[str]]:
|
||||
final_conditions: List[List[str]] = []
|
||||
for condition in conditions:
|
||||
final_conditions.append(list(dict.fromkeys(condition)))
|
||||
|
||||
return final_conditions
|
||||
|
||||
|
||||
def handle_door_visibility(door: Dict[str, Any]) -> Dict[str, Any]:
|
||||
if door.get("visibilityFlags") == None:
|
||||
return door
|
||||
else:
|
||||
flags: List[str] = str(door.get("visibilityFlags")).split(", ")
|
||||
#print(flags)
|
||||
temp_flags: List[str] = []
|
||||
this_door: bool = False
|
||||
#required_doors: str = ""
|
||||
|
||||
if "ThisDoor" in flags:
|
||||
this_door = True
|
||||
|
||||
#if "requiredDoors" in flags:
|
||||
# required_doors: str = " || ".join(door.get("requiredDoors"))
|
||||
|
||||
if "DoubleJump" in flags:
|
||||
temp_flags.append("DoubleJump")
|
||||
|
||||
if "NormalLogic" in flags:
|
||||
temp_flags.append("NormalLogic")
|
||||
|
||||
if "NormalLogicAndDoubleJump" in flags:
|
||||
temp_flags.append("NormalLogicAndDoubleJump")
|
||||
|
||||
if "HardLogic" in flags:
|
||||
temp_flags.append("HardLogic")
|
||||
|
||||
if "HardLogicAndDoubleJump" in flags:
|
||||
temp_flags.append("HardLogicAndDoubleJump")
|
||||
|
||||
if "EnemySkips" in flags:
|
||||
temp_flags.append("EnemySkips")
|
||||
|
||||
if "EnemySkipsAndDoubleJump" in flags:
|
||||
temp_flags.append("EnemySkipsAndDoubleJump")
|
||||
|
||||
# remove duplicates
|
||||
temp_flags = list(dict.fromkeys(temp_flags))
|
||||
|
||||
original_logic: str = door.get("logic")
|
||||
temp_logic: str = ""
|
||||
|
||||
if this_door:
|
||||
temp_logic = door.get("id")
|
||||
|
||||
if temp_flags != []:
|
||||
if temp_logic != "":
|
||||
temp_logic += " || "
|
||||
temp_logic += ' && '.join(temp_flags)
|
||||
|
||||
if temp_logic != "" and original_logic != None:
|
||||
if len(original_logic.split()) == 1:
|
||||
if len(temp_logic.split()) == 1:
|
||||
door["logic"] = f"{temp_logic} && {original_logic}"
|
||||
else:
|
||||
door["logic"] = f"({temp_logic}) && {original_logic}"
|
||||
else:
|
||||
if len(temp_logic.split()) == 1:
|
||||
door["logic"] = f"{temp_logic} && ({original_logic})"
|
||||
else:
|
||||
door["logic"] = f"({temp_logic}) && ({original_logic})"
|
||||
elif temp_logic != "" and original_logic == None:
|
||||
door["logic"] = temp_logic
|
||||
|
||||
return door
|
||||
|
||||
|
||||
def get_state_provider_for_condition(condition: List[str]) -> str:
|
||||
for item in condition:
|
||||
if (item[0] == "D" and item[3] == "Z" and item[6] == "S")\
|
||||
or (item[0] == "D" and item[3] == "B" and item[4] == "Z" and item[7] == "S"):
|
||||
return item
|
||||
return None
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('-l', '--local', action="store_true", help="Use local files in the same directory instead of reading resource files from the BrandenEK/Blasphemous-Randomizer repository.")
|
||||
args = parser.parse_args()
|
||||
return args
|
||||
|
||||
|
||||
def main(args: argparse.Namespace):
|
||||
doors = []
|
||||
locations = []
|
||||
|
||||
if (args.local):
|
||||
doors = load_resource_local("doors.json")
|
||||
locations = load_resource_local("locations_items.json")
|
||||
|
||||
else:
|
||||
doors = load_resource_from_web("https://raw.githubusercontent.com/BrandenEK/Blasphemous-Randomizer/main/resources/data/Randomizer/doors.json")
|
||||
locations = load_resource_from_web("https://raw.githubusercontent.com/BrandenEK/Blasphemous-Randomizer/main/resources/data/Randomizer/locations_items.json")
|
||||
|
||||
original_connections: Dict[str, str] = {}
|
||||
rooms: Dict[str, List[str]] = {}
|
||||
output: Dict[str, Any] = {}
|
||||
logic_objects: List[Dict[str, Any]] = []
|
||||
|
||||
for door in doors:
|
||||
if door.get("originalDoor") != None:
|
||||
if not door.get("id") in original_connections:
|
||||
original_connections[door.get("id")] = door.get("originalDoor")
|
||||
original_connections[door.get("originalDoor")] = door.get("id")
|
||||
|
||||
room: str = get_room_from_door(door.get("originalDoor"))
|
||||
if not room in rooms.keys():
|
||||
rooms[room] = [door.get("id")]
|
||||
else:
|
||||
rooms[room].append(door.get("id"))
|
||||
|
||||
def flip_doors_in_condition(condition: List[str]) -> List[str]:
|
||||
new_condition = []
|
||||
for item in condition:
|
||||
if item in original_connections:
|
||||
new_condition.append(original_connections[item])
|
||||
else:
|
||||
new_condition.append(item)
|
||||
|
||||
return new_condition
|
||||
|
||||
for room in rooms.keys():
|
||||
obj = {
|
||||
"Name": room,
|
||||
"Logic": [],
|
||||
"Handling": "Default"
|
||||
}
|
||||
|
||||
for door in rooms[room]:
|
||||
logic = {
|
||||
"StateProvider": door,
|
||||
"Conditions": [],
|
||||
"StateModifiers": []
|
||||
}
|
||||
obj["Logic"].append(logic)
|
||||
|
||||
logic_objects.append(obj)
|
||||
|
||||
for door in doors:
|
||||
if door.get("direction") == 5:
|
||||
continue
|
||||
|
||||
handling: str = "Transition"
|
||||
if "Cell" in door.get("id"):
|
||||
handling = "Default"
|
||||
obj = {
|
||||
"Name": door.get("id"),
|
||||
"Logic": [],
|
||||
"Handling": handling
|
||||
}
|
||||
|
||||
visibility_flags: List[str] = []
|
||||
if door.get("visibilityFlags") != None:
|
||||
visibility_flags = str(door.get("visibilityFlags")).split(", ")
|
||||
if "1" in visibility_flags:
|
||||
visibility_flags.remove("1")
|
||||
visibility_flags.append("ThisDoor")
|
||||
|
||||
required_doors: List[str] = []
|
||||
if door.get("requiredDoors"):
|
||||
required_doors = door.get("requiredDoors")
|
||||
|
||||
if len(visibility_flags) > 0:
|
||||
for flag in visibility_flags:
|
||||
if flag == "RequiredDoors":
|
||||
continue
|
||||
|
||||
if flag == "ThisDoor":
|
||||
flag = original_connections[door.get("id")]
|
||||
|
||||
if door.get("logic") != None:
|
||||
logic: str = door.get("logic")
|
||||
logic = f"{flag} && ({logic})"
|
||||
logic = preprocess_logic(True, door.get("id"), logic)
|
||||
conditions = build_logic_conditions(logic)
|
||||
for condition in conditions:
|
||||
condition = flip_doors_in_condition(condition)
|
||||
state_provider: str = get_room_from_door(door.get("id"))
|
||||
|
||||
if get_state_provider_for_condition(condition) != None:
|
||||
state_provider = get_state_provider_for_condition(condition)
|
||||
condition.remove(state_provider)
|
||||
|
||||
logic = {
|
||||
"StateProvider": state_provider,
|
||||
"Conditions": condition,
|
||||
"StateModifiers": []
|
||||
}
|
||||
obj["Logic"].append(logic)
|
||||
else:
|
||||
logic = {
|
||||
"StateProvider": get_room_from_door(door.get("id")),
|
||||
"Conditions": [flag],
|
||||
"StateModifiers": []
|
||||
}
|
||||
obj["Logic"].append(logic)
|
||||
|
||||
if "RequiredDoors" in visibility_flags:
|
||||
for d in required_doors:
|
||||
flipped = original_connections[d]
|
||||
if door.get("logic") != None:
|
||||
logic: str = preprocess_logic(True, door.get("id"), door.get("logic"))
|
||||
conditions = build_logic_conditions(logic)
|
||||
for condition in conditions:
|
||||
condition = flip_doors_in_condition(condition)
|
||||
state_provider: str = flipped
|
||||
|
||||
if flipped in condition:
|
||||
condition.remove(flipped)
|
||||
|
||||
logic = {
|
||||
"StateProvider": state_provider,
|
||||
"Conditions": condition,
|
||||
"StateModifiers": []
|
||||
}
|
||||
obj["Logic"].append(logic)
|
||||
else:
|
||||
logic = {
|
||||
"StateProvider": flipped,
|
||||
"Conditions": [],
|
||||
"StateModifiers": []
|
||||
}
|
||||
obj["Logic"].append(logic)
|
||||
|
||||
else:
|
||||
if door.get("logic") != None:
|
||||
logic: str = preprocess_logic(True, door.get("id"), door.get("logic"))
|
||||
conditions = build_logic_conditions(logic)
|
||||
for condition in conditions:
|
||||
condition = flip_doors_in_condition(condition)
|
||||
stateProvider: str = get_room_from_door(door.get("id"))
|
||||
|
||||
if get_state_provider_for_condition(condition) != None:
|
||||
stateProvider = get_state_provider_for_condition(condition)
|
||||
condition.remove(stateProvider)
|
||||
|
||||
logic = {
|
||||
"StateProvider": stateProvider,
|
||||
"Conditions": condition,
|
||||
"StateModifiers": []
|
||||
}
|
||||
obj["Logic"].append(logic)
|
||||
else:
|
||||
logic = {
|
||||
"StateProvider": get_room_from_door(door.get("id")),
|
||||
"Conditions": [],
|
||||
"StateModifiers": []
|
||||
}
|
||||
obj["Logic"].append(logic)
|
||||
|
||||
logic_objects.append(obj)
|
||||
|
||||
for location in locations:
|
||||
obj = {
|
||||
"Name": location.get("id"),
|
||||
"Logic": [],
|
||||
"Handling": "Location"
|
||||
}
|
||||
|
||||
if location.get("logic") != None:
|
||||
for condition in build_logic_conditions(preprocess_logic(False, location.get("id"), location.get("logic"))):
|
||||
condition = flip_doors_in_condition(condition)
|
||||
stateProvider: str = location.get("room")
|
||||
|
||||
if get_state_provider_for_condition(condition) != None:
|
||||
stateProvider = get_state_provider_for_condition(condition)
|
||||
condition.remove(stateProvider)
|
||||
|
||||
if stateProvider == "Initial":
|
||||
stateProvider = None
|
||||
|
||||
logic = {
|
||||
"StateProvider": stateProvider,
|
||||
"Conditions": condition,
|
||||
"StateModifiers": []
|
||||
}
|
||||
obj["Logic"].append(logic)
|
||||
else:
|
||||
stateProvider: str = location.get("room")
|
||||
if stateProvider == "Initial":
|
||||
stateProvider = None
|
||||
logic = {
|
||||
"StateProvider": stateProvider,
|
||||
"Conditions": [],
|
||||
"StateModifiers": []
|
||||
}
|
||||
obj["Logic"].append(logic)
|
||||
|
||||
logic_objects.append(obj)
|
||||
|
||||
output["LogicObjects"] = logic_objects
|
||||
|
||||
with open("StringWorldDefinition.json", "w") as file:
|
||||
print("Writing to StringWorldDefinition.json")
|
||||
file.write(json.dumps(output, indent=4))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main(parse_args())
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -8,12 +8,12 @@ unrandomized_dict: Dict[str, str] = {
|
||||
}
|
||||
|
||||
|
||||
junk_locations: Set[str] = [
|
||||
junk_locations: Set[str] = {
|
||||
"Albero: Donate 50000 Tears",
|
||||
"Ossuary: 11th reward",
|
||||
"AtTotS: Miriam's gift",
|
||||
"TSC: Jocinero's final reward"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
thorn_set: Set[str] = {
|
||||
@@ -44,4 +44,4 @@ skill_dict: Dict[str, str] = {
|
||||
"Skill 5, Tier 1": "Lunge Skill",
|
||||
"Skill 5, Tier 2": "Lunge Skill",
|
||||
"Skill 5, Tier 3": "Lunge Skill",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
from typing import Dict, List, Set, Any
|
||||
from collections import Counter
|
||||
from BaseClasses import Region, Entrance, Location, Item, Tutorial, ItemClassification
|
||||
from BaseClasses import Region, Location, Item, Tutorial, ItemClassification
|
||||
from Options import OptionError
|
||||
from worlds.AutoWorld import World, WebWorld
|
||||
from .Items import base_id, item_table, group_table, tears_set, reliquary_set, event_table
|
||||
from .Locations import location_table
|
||||
from .Rooms import room_table, door_table
|
||||
from .Rules import rules
|
||||
from worlds.generic.Rules import set_rule, add_rule
|
||||
from .Options import blasphemous_options
|
||||
from .Items import base_id, item_table, group_table, tears_list, reliquary_set
|
||||
from .Locations import location_names
|
||||
from .Rules import BlasRules
|
||||
from worlds.generic.Rules import set_rule
|
||||
from .Options import BlasphemousOptions, blas_option_groups
|
||||
from .Vanilla import unrandomized_dict, junk_locations, thorn_set, skill_dict
|
||||
|
||||
from .region_data import regions, locations
|
||||
|
||||
class BlasphemousWeb(WebWorld):
|
||||
theme = "stone"
|
||||
@@ -21,39 +21,33 @@ class BlasphemousWeb(WebWorld):
|
||||
"setup/en",
|
||||
["TRPG"]
|
||||
)]
|
||||
option_groups = blas_option_groups
|
||||
|
||||
|
||||
class BlasphemousWorld(World):
|
||||
"""
|
||||
Blasphemous is a challenging Metroidvania set in the cursed land of Cvstodia. Play as the Penitent One, trapped
|
||||
in an endless cycle of death and rebirth, and free the world from it's terrible fate in your quest to break
|
||||
in an endless cycle of death and rebirth, and free the world from its terrible fate in your quest to break
|
||||
your eternal damnation!
|
||||
"""
|
||||
|
||||
game: str = "Blasphemous"
|
||||
game = "Blasphemous"
|
||||
web = BlasphemousWeb()
|
||||
|
||||
item_name_to_id = {item["name"]: (base_id + index) for index, item in enumerate(item_table)}
|
||||
location_name_to_id = {loc["name"]: (base_id + index) for index, loc in enumerate(location_table)}
|
||||
location_name_to_game_id = {loc["name"]: loc["game_id"] for loc in location_table}
|
||||
location_name_to_id = {loc: (base_id + index) for index, loc in enumerate(location_names.values())}
|
||||
|
||||
item_name_groups = group_table
|
||||
option_definitions = blasphemous_options
|
||||
options_dataclass = BlasphemousOptions
|
||||
options: BlasphemousOptions
|
||||
|
||||
required_client_version = (0, 4, 2)
|
||||
required_client_version = (0, 4, 7)
|
||||
|
||||
|
||||
def __init__(self, multiworld, player):
|
||||
super(BlasphemousWorld, self).__init__(multiworld, player)
|
||||
self.start_room: str = "D17Z01S01"
|
||||
self.door_connections: Dict[str, str] = {}
|
||||
|
||||
|
||||
def set_rules(self):
|
||||
rules(self)
|
||||
for door in door_table:
|
||||
add_rule(self.multiworld.get_location(door["Id"], self.player),
|
||||
lambda state: state.can_reach(self.get_connected_door(door["Id"])), self.player)
|
||||
self.disabled_locations: List[str] = []
|
||||
|
||||
|
||||
def create_item(self, name: str) -> "BlasphemousItem":
|
||||
@@ -68,64 +62,56 @@ class BlasphemousWorld(World):
|
||||
|
||||
|
||||
def get_filler_item_name(self) -> str:
|
||||
return self.multiworld.random.choice(tears_set)
|
||||
return self.random.choice(tears_list)
|
||||
|
||||
|
||||
def generate_early(self):
|
||||
world = self.multiworld
|
||||
player = self.player
|
||||
if not self.options.starting_location.randomized:
|
||||
if self.options.starting_location == "mourning_havoc" and self.options.difficulty < 2:
|
||||
raise OptionError(f"[Blasphemous - '{self.player_name}'] "
|
||||
f"{self.options.starting_location} cannot be chosen if Difficulty is lower than Hard.")
|
||||
|
||||
if not world.starting_location[player].randomized:
|
||||
if world.starting_location[player].value == 6 and world.difficulty[player].value < 2:
|
||||
raise Exception(f"[Blasphemous - '{world.get_player_name(player)}'] {world.starting_location[player]}"
|
||||
" cannot be chosen if Difficulty is lower than Hard.")
|
||||
|
||||
if (world.starting_location[player].value == 0 or world.starting_location[player].value == 6) \
|
||||
and world.dash_shuffle[player]:
|
||||
raise Exception(f"[Blasphemous - '{world.get_player_name(player)}'] {world.starting_location[player]}"
|
||||
" cannot be chosen if Shuffle Dash is enabled.")
|
||||
if (self.options.starting_location == "brotherhood" or self.options.starting_location == "mourning_havoc") \
|
||||
and self.options.dash_shuffle:
|
||||
raise OptionError(f"[Blasphemous - '{self.player_name}'] "
|
||||
f"{self.options.starting_location} cannot be chosen if Shuffle Dash is enabled.")
|
||||
|
||||
if world.starting_location[player].value == 3 and world.wall_climb_shuffle[player]:
|
||||
raise Exception(f"[Blasphemous - '{world.get_player_name(player)}'] {world.starting_location[player]}"
|
||||
" cannot be chosen if Shuffle Wall Climb is enabled.")
|
||||
if self.options.starting_location == "grievance" and self.options.wall_climb_shuffle:
|
||||
raise OptionError(f"[Blasphemous - '{self.player_name}'] "
|
||||
f"{self.options.starting_location} cannot be chosen if Shuffle Wall Climb is enabled.")
|
||||
else:
|
||||
locations: List[int] = [ 0, 1, 2, 3, 4, 5, 6 ]
|
||||
invalid: bool = False
|
||||
|
||||
if world.difficulty[player].value < 2:
|
||||
if self.options.difficulty < 2:
|
||||
locations.remove(6)
|
||||
|
||||
if world.dash_shuffle[player]:
|
||||
if self.options.dash_shuffle:
|
||||
locations.remove(0)
|
||||
if 6 in locations:
|
||||
locations.remove(6)
|
||||
|
||||
if world.wall_climb_shuffle[player]:
|
||||
if self.options.wall_climb_shuffle:
|
||||
locations.remove(3)
|
||||
|
||||
if world.starting_location[player].value == 6 and world.difficulty[player].value < 2:
|
||||
invalid = True
|
||||
|
||||
if (world.starting_location[player].value == 0 or world.starting_location[player].value == 6) \
|
||||
and world.dash_shuffle[player]:
|
||||
invalid = True
|
||||
|
||||
if world.starting_location[player].value == 3 and world.wall_climb_shuffle[player]:
|
||||
invalid = True
|
||||
|
||||
if invalid:
|
||||
world.starting_location[player].value = world.random.choice(locations)
|
||||
if self.options.starting_location.value not in locations:
|
||||
self.options.starting_location.value = self.random.choice(locations)
|
||||
|
||||
|
||||
if not world.dash_shuffle[player]:
|
||||
world.push_precollected(self.create_item("Dash Ability"))
|
||||
if not self.options.dash_shuffle:
|
||||
self.multiworld.push_precollected(self.create_item("Dash Ability"))
|
||||
|
||||
if not world.wall_climb_shuffle[player]:
|
||||
world.push_precollected(self.create_item("Wall Climb Ability"))
|
||||
if not self.options.wall_climb_shuffle:
|
||||
self.multiworld.push_precollected(self.create_item("Wall Climb Ability"))
|
||||
|
||||
if world.skip_long_quests[player]:
|
||||
if not self.options.boots_of_pleading:
|
||||
self.disabled_locations.append("RE401")
|
||||
|
||||
if not self.options.purified_hand:
|
||||
self.disabled_locations.append("RE402")
|
||||
|
||||
if self.options.skip_long_quests:
|
||||
for loc in junk_locations:
|
||||
world.exclude_locations[player].value.add(loc)
|
||||
self.options.exclude_locations.value.add(loc)
|
||||
|
||||
start_rooms: Dict[int, str] = {
|
||||
0: "D17Z01S01",
|
||||
@@ -137,13 +123,10 @@ class BlasphemousWorld(World):
|
||||
6: "D20Z02S09"
|
||||
}
|
||||
|
||||
self.start_room = start_rooms[world.starting_location[player].value]
|
||||
self.start_room = start_rooms[self.options.starting_location.value]
|
||||
|
||||
|
||||
def create_items(self):
|
||||
world = self.multiworld
|
||||
player = self.player
|
||||
|
||||
removed: int = 0
|
||||
to_remove: List[str] = [
|
||||
"Tears of Atonement (250)",
|
||||
@@ -156,46 +139,46 @@ class BlasphemousWorld(World):
|
||||
skipped_items = []
|
||||
junk: int = 0
|
||||
|
||||
for item, count in world.start_inventory[player].value.items():
|
||||
for item, count in self.options.start_inventory.value.items():
|
||||
for _ in range(count):
|
||||
skipped_items.append(item)
|
||||
junk += 1
|
||||
|
||||
skipped_items.extend(unrandomized_dict.values())
|
||||
|
||||
if world.thorn_shuffle[player] == 2:
|
||||
for i in range(8):
|
||||
if self.options.thorn_shuffle == "vanilla":
|
||||
for _ in range(8):
|
||||
skipped_items.append("Thorn Upgrade")
|
||||
|
||||
if world.dash_shuffle[player]:
|
||||
if self.options.dash_shuffle:
|
||||
skipped_items.append(to_remove[removed])
|
||||
removed += 1
|
||||
elif not world.dash_shuffle[player]:
|
||||
elif not self.options.dash_shuffle:
|
||||
skipped_items.append("Dash Ability")
|
||||
|
||||
if world.wall_climb_shuffle[player]:
|
||||
if self.options.wall_climb_shuffle:
|
||||
skipped_items.append(to_remove[removed])
|
||||
removed += 1
|
||||
elif not world.wall_climb_shuffle[player]:
|
||||
elif not self.options.wall_climb_shuffle:
|
||||
skipped_items.append("Wall Climb Ability")
|
||||
|
||||
if not world.reliquary_shuffle[player]:
|
||||
if not self.options.reliquary_shuffle:
|
||||
skipped_items.extend(reliquary_set)
|
||||
elif world.reliquary_shuffle[player]:
|
||||
for i in range(3):
|
||||
elif self.options.reliquary_shuffle:
|
||||
for _ in range(3):
|
||||
skipped_items.append(to_remove[removed])
|
||||
removed += 1
|
||||
|
||||
if not world.boots_of_pleading[player]:
|
||||
if not self.options.boots_of_pleading:
|
||||
skipped_items.append("Boots of Pleading")
|
||||
|
||||
if not world.purified_hand[player]:
|
||||
if not self.options.purified_hand:
|
||||
skipped_items.append("Purified Hand of the Nun")
|
||||
|
||||
if world.start_wheel[player]:
|
||||
if self.options.start_wheel:
|
||||
skipped_items.append("The Young Mason's Wheel")
|
||||
|
||||
if not world.skill_randomizer[player]:
|
||||
if not self.options.skill_randomizer:
|
||||
skipped_items.extend(skill_dict.values())
|
||||
|
||||
counter = Counter(skipped_items)
|
||||
@@ -208,184 +191,140 @@ class BlasphemousWorld(World):
|
||||
if count <= 0:
|
||||
continue
|
||||
else:
|
||||
for i in range(count):
|
||||
for _ in range(count):
|
||||
pool.append(self.create_item(item["name"]))
|
||||
|
||||
for _ in range(junk):
|
||||
pool.append(self.create_item(self.get_filler_item_name()))
|
||||
|
||||
world.itempool += pool
|
||||
self.multiworld.itempool += pool
|
||||
|
||||
|
||||
def pre_fill(self):
|
||||
world = self.multiworld
|
||||
player = self.player
|
||||
|
||||
self.place_items_from_dict(unrandomized_dict)
|
||||
|
||||
if world.thorn_shuffle[player] == 2:
|
||||
if self.options.thorn_shuffle == "vanilla":
|
||||
self.place_items_from_set(thorn_set, "Thorn Upgrade")
|
||||
|
||||
if world.start_wheel[player]:
|
||||
world.get_location("Beginning gift", player)\
|
||||
.place_locked_item(self.create_item("The Young Mason's Wheel"))
|
||||
if self.options.start_wheel:
|
||||
self.get_location("Beginning gift").place_locked_item(self.create_item("The Young Mason's Wheel"))
|
||||
|
||||
if not world.skill_randomizer[player]:
|
||||
if not self.options.skill_randomizer:
|
||||
self.place_items_from_dict(skill_dict)
|
||||
|
||||
if world.thorn_shuffle[player] == 1:
|
||||
world.local_items[player].value.add("Thorn Upgrade")
|
||||
if self.options.thorn_shuffle == "local_only":
|
||||
self.options.local_items.value.add("Thorn Upgrade")
|
||||
|
||||
|
||||
def place_items_from_set(self, location_set: Set[str], name: str):
|
||||
for loc in location_set:
|
||||
self.multiworld.get_location(loc, self.player)\
|
||||
.place_locked_item(self.create_item(name))
|
||||
self.get_location(loc).place_locked_item(self.create_item(name))
|
||||
|
||||
|
||||
def place_items_from_dict(self, option_dict: Dict[str, str]):
|
||||
for loc, item in option_dict.items():
|
||||
self.multiworld.get_location(loc, self.player)\
|
||||
.place_locked_item(self.create_item(item))
|
||||
self.get_location(loc).place_locked_item(self.create_item(item))
|
||||
|
||||
|
||||
def create_regions(self) -> None:
|
||||
multiworld = self.multiworld
|
||||
player = self.player
|
||||
world = self.multiworld
|
||||
|
||||
created_regions: List[str] = []
|
||||
|
||||
for r in regions:
|
||||
multiworld.regions.append(Region(r["name"], player, multiworld))
|
||||
created_regions.append(r["name"])
|
||||
|
||||
self.get_region("Menu").add_exits({self.start_room: "New Game"})
|
||||
|
||||
blas_logic = BlasRules(self)
|
||||
|
||||
for r in regions:
|
||||
region = self.get_region(r["name"])
|
||||
|
||||
for e in r["exits"]:
|
||||
region.add_exits({e["target"]}, {e["target"]: blas_logic.load_rule(True, r["name"], e)})
|
||||
|
||||
for l in [l for l in r["locations"] if l not in self.disabled_locations]:
|
||||
region.add_locations({location_names[l]: self.location_name_to_id[location_names[l]]}, BlasphemousLocation)
|
||||
|
||||
for t in r["transitions"]:
|
||||
if t == r["name"]:
|
||||
continue
|
||||
|
||||
if t in created_regions:
|
||||
region.add_exits({t})
|
||||
else:
|
||||
multiworld.regions.append(Region(t, player, multiworld))
|
||||
created_regions.append(t)
|
||||
region.add_exits({t})
|
||||
|
||||
|
||||
for l in [l for l in locations if l["name"] not in self.disabled_locations]:
|
||||
location = self.get_location(location_names[l["name"]])
|
||||
set_rule(location, blas_logic.load_rule(False, l["name"], l))
|
||||
|
||||
for rname, ename in blas_logic.indirect_conditions:
|
||||
self.multiworld.register_indirect_condition(self.get_region(rname), self.get_entrance(ename))
|
||||
#from Utils import visualize_regions
|
||||
#visualize_regions(self.get_region("Menu"), "blasphemous_regions.puml")
|
||||
|
||||
menu_region = Region("Menu", player, world)
|
||||
misc_region = Region("Misc", player, world)
|
||||
world.regions += [menu_region, misc_region]
|
||||
|
||||
for room in room_table:
|
||||
region = Region(room, player, world)
|
||||
world.regions.append(region)
|
||||
|
||||
menu_region.add_exits({self.start_room: "New Game"})
|
||||
world.get_region(self.start_room, player).add_exits({"Misc": "Misc"})
|
||||
|
||||
for door in door_table:
|
||||
if door.get("OriginalDoor") is None:
|
||||
continue
|
||||
else:
|
||||
if not door["Id"] in self.door_connections.keys():
|
||||
self.door_connections[door["Id"]] = door["OriginalDoor"]
|
||||
self.door_connections[door["OriginalDoor"]] = door["Id"]
|
||||
|
||||
parent_region: Region = self.get_room_from_door(door["Id"])
|
||||
target_region: Region = self.get_room_from_door(door["OriginalDoor"])
|
||||
parent_region.add_exits({
|
||||
target_region.name: door["Id"]
|
||||
}, {
|
||||
target_region.name: lambda x: door.get("VisibilityFlags") != 1
|
||||
})
|
||||
|
||||
for index, loc in enumerate(location_table):
|
||||
if not world.boots_of_pleading[player] and loc["name"] == "BotSS: 2nd meeting with Redento":
|
||||
continue
|
||||
if not world.purified_hand[player] and loc["name"] == "MoM: Western room ledge":
|
||||
continue
|
||||
|
||||
region: Region = world.get_region(loc["room"], player)
|
||||
region.add_locations({loc["name"]: base_id + index})
|
||||
#id = base_id + location_table.index(loc)
|
||||
#reg.locations.append(BlasphemousLocation(player, loc["name"], id, reg))
|
||||
|
||||
for e, r in event_table.items():
|
||||
region: Region = world.get_region(r, player)
|
||||
event = BlasphemousLocation(player, e, None, region)
|
||||
event.show_in_spoiler = False
|
||||
event.place_locked_item(self.create_event(e))
|
||||
region.locations.append(event)
|
||||
|
||||
for door in door_table:
|
||||
region: Region = self.get_room_from_door(self.door_connections[door["Id"]])
|
||||
event = BlasphemousLocation(player, door["Id"], None, region)
|
||||
event.show_in_spoiler = False
|
||||
event.place_locked_item(self.create_event(door["Id"]))
|
||||
region.locations.append(event)
|
||||
|
||||
victory = Location(player, "His Holiness Escribar", None, world.get_region("D07Z01S03", player))
|
||||
victory = Location(player, "His Holiness Escribar", None, self.get_region("D07Z01S03[W]"))
|
||||
victory.place_locked_item(self.create_event("Victory"))
|
||||
world.get_region("D07Z01S03", player).locations.append(victory)
|
||||
self.get_region("D07Z01S03[W]").locations.append(victory)
|
||||
|
||||
if world.ending[self.player].value == 1:
|
||||
if self.options.ending == "ending_a":
|
||||
set_rule(victory, lambda state: state.has("Thorn Upgrade", player, 8))
|
||||
elif world.ending[self.player].value == 2:
|
||||
elif self.options.ending == "ending_c":
|
||||
set_rule(victory, lambda state: state.has("Thorn Upgrade", player, 8) and
|
||||
state.has("Holy Wound of Abnegation", player))
|
||||
|
||||
world.completion_condition[self.player] = lambda state: state.has("Victory", player)
|
||||
|
||||
|
||||
def get_room_from_door(self, door: str) -> Region:
|
||||
return self.multiworld.get_region(door.split("[")[0], self.player)
|
||||
|
||||
|
||||
def get_connected_door(self, door: str) -> Entrance:
|
||||
return self.multiworld.get_entrance(self.door_connections[door], self.player)
|
||||
multiworld.completion_condition[self.player] = lambda state: state.has("Victory", player)
|
||||
|
||||
|
||||
def fill_slot_data(self) -> Dict[str, Any]:
|
||||
slot_data: Dict[str, Any] = {}
|
||||
locations = []
|
||||
doors: Dict[str, str] = {}
|
||||
|
||||
world = self.multiworld
|
||||
player = self.player
|
||||
thorns: bool = True
|
||||
|
||||
if world.thorn_shuffle[player].value == 2:
|
||||
if self.options.thorn_shuffle == "vanilla":
|
||||
thorns = False
|
||||
|
||||
for loc in world.get_filled_locations(player):
|
||||
if loc.item.code == None:
|
||||
continue
|
||||
else:
|
||||
data = {
|
||||
"id": self.location_name_to_game_id[loc.name],
|
||||
"ap_id": loc.address,
|
||||
"name": loc.item.name,
|
||||
"player_name": world.player_name[loc.item.player],
|
||||
"type": int(loc.item.classification)
|
||||
}
|
||||
|
||||
locations.append(data)
|
||||
|
||||
config = {
|
||||
"LogicDifficulty": world.difficulty[player].value,
|
||||
"StartingLocation": world.starting_location[player].value,
|
||||
"LogicDifficulty": self.options.difficulty.value,
|
||||
"StartingLocation": self.options.starting_location.value,
|
||||
"VersionCreated": "AP",
|
||||
|
||||
"UnlockTeleportation": bool(world.prie_dieu_warp[player].value),
|
||||
"AllowHints": bool(world.corpse_hints[player].value),
|
||||
"AllowPenitence": bool(world.penitence[player].value),
|
||||
"UnlockTeleportation": bool(self.options.prie_dieu_warp.value),
|
||||
"AllowHints": bool(self.options.corpse_hints.value),
|
||||
"AllowPenitence": bool(self.options.penitence.value),
|
||||
|
||||
"ShuffleReliquaries": bool(world.reliquary_shuffle[player].value),
|
||||
"ShuffleBootsOfPleading": bool(world.boots_of_pleading[player].value),
|
||||
"ShufflePurifiedHand": bool(world.purified_hand[player].value),
|
||||
"ShuffleDash": bool(world.dash_shuffle[player].value),
|
||||
"ShuffleWallClimb": bool(world.wall_climb_shuffle[player].value),
|
||||
"ShuffleReliquaries": bool(self.options.reliquary_shuffle.value),
|
||||
"ShuffleBootsOfPleading": bool(self.options.boots_of_pleading.value),
|
||||
"ShufflePurifiedHand": bool(self.options.purified_hand.value),
|
||||
"ShuffleDash": bool(self.options.dash_shuffle.value),
|
||||
"ShuffleWallClimb": bool(self.options.wall_climb_shuffle.value),
|
||||
|
||||
"ShuffleSwordSkills": bool(world.skill_randomizer[player].value),
|
||||
"ShuffleSwordSkills": bool(self.options.wall_climb_shuffle.value),
|
||||
"ShuffleThorns": thorns,
|
||||
"JunkLongQuests": bool(world.skip_long_quests[player].value),
|
||||
"StartWithWheel": bool(world.start_wheel[player].value),
|
||||
"JunkLongQuests": bool(self.options.skip_long_quests.value),
|
||||
"StartWithWheel": bool(self.options.start_wheel.value),
|
||||
|
||||
"EnemyShuffleType": world.enemy_randomizer[player].value,
|
||||
"MaintainClass": bool(world.enemy_groups[player].value),
|
||||
"AreaScaling": bool(world.enemy_scaling[player].value),
|
||||
"EnemyShuffleType": self.options.enemy_randomizer.value,
|
||||
"MaintainClass": bool(self.options.enemy_groups.value),
|
||||
"AreaScaling": bool(self.options.enemy_scaling.value),
|
||||
|
||||
"BossShuffleType": 0,
|
||||
"DoorShuffleType": 0
|
||||
}
|
||||
|
||||
slot_data = {
|
||||
"locations": locations,
|
||||
"locationinfo": [{"gameId": loc, "apId": (base_id + index)} for index, loc in enumerate(location_names)],
|
||||
"doors": doors,
|
||||
"cfg": config,
|
||||
"ending": world.ending[self.player].value,
|
||||
"death_link": bool(world.death_link[self.player].value)
|
||||
"ending": self.options.ending.value,
|
||||
"death_link": bool(self.options.death_link.value)
|
||||
}
|
||||
|
||||
return slot_data
|
||||
|
||||
@@ -1,48 +1,17 @@
|
||||
# Blasphemous Multiworld Setup Guide
|
||||
|
||||
## Useful Links
|
||||
It is recommended to use the [Mod Installer](https://github.com/BrandenEK/Blasphemous.Modding.Installer) to handle installing and updating mods. If you would prefer to install mods manually, instructions can also be found at the Mod Installer repository.
|
||||
|
||||
Required:
|
||||
- Blasphemous: [Steam](https://store.steampowered.com/app/774361/Blasphemous/)
|
||||
- The GOG version of Blasphemous will also work.
|
||||
- Blasphemous Mod Installer: [GitHub](https://github.com/BrandenEK/Blasphemous-Mod-Installer)
|
||||
- Blasphemous Modding API: [GitHub](https://github.com/BrandenEK/Blasphemous-Modding-API)
|
||||
- Blasphemous Randomizer: [GitHub](https://github.com/BrandenEK/Blasphemous-Randomizer)
|
||||
- Blasphemous Multiworld: [GitHub](https://github.com/BrandenEK/Blasphemous-Multiworld)
|
||||
You will need the [Multiworld](https://github.com/BrandenEK/Blasphemous.Randomizer.Multiworld) mod to play an Archipelago randomizer.
|
||||
|
||||
Optional:
|
||||
- In-game map tracker: [GitHub](https://github.com/BrandenEK/Blasphemous-Rando-Map)
|
||||
- Quick Prie Dieu warp mod: [GitHub](https://github.com/BadMagic100/Blasphemous-PrieWarp)
|
||||
- Boots of Pleading mod: [GitHub](https://github.com/BrandenEK/Blasphemous-Boots-of-Pleading)
|
||||
- Double Jump mod: [GitHub](https://github.com/BrandenEK/Blasphemous-Double-Jump)
|
||||
Some optional mods are also recommended:
|
||||
- [Rando Map](https://github.com/BrandenEK/Blasphemous.Randomizer.MapTracker)
|
||||
- [Boots of Pleading](https://github.com/BrandenEK/Blasphemous.BootsOfPleading) (Required if the "Boots of Pleading" option is enabled)
|
||||
- [Double Jump](https://github.com/BrandenEK/Blasphemous.DoubleJump) (Required if the "Purified Hand of the Nun" option is enabled)
|
||||
|
||||
## Mod Installer (Recommended)
|
||||
To connect to a multiworld: Choose a save file and enter the address, your name, and the password (if the server has one) into the menu.
|
||||
|
||||
1. Download the [Mod Installer](https://github.com/BrandenEK/Blasphemous-Mod-Installer),
|
||||
and point it to your install directory for Blasphemous.
|
||||
|
||||
2. Install the `Modding API`, `Randomizer`, and `Multiworld` mods. Optionally, you can also install the
|
||||
`Rando Map`, `PrieWarp`, `Boots of Pleading`, and `Double Jump` mods, and set up the PopTracker pack if desired.
|
||||
|
||||
3. Start Blasphemous. To verfy that the mods are working, look for a version number for both
|
||||
the Randomizer and Multiworld on the title screen.
|
||||
|
||||
## Manual Installation
|
||||
|
||||
1. Download the [Modding API](https://github.com/BrandenEK/Blasphemous-Modding-API/releases), and follow
|
||||
the [installation instructions](https://github.com/BrandenEK/Blasphemous-Modding-API#installation) on the GitHub page.
|
||||
|
||||
2. After the Modding API has been installed, download the
|
||||
[Randomizer](https://github.com/BrandenEK/Blasphemous-Randomizer/releases) and
|
||||
[Multiworld](https://github.com/BrandenEK/Blasphemous-Multiworld/releases) archives, and extract the contents of both
|
||||
into the `Modding` folder. Then, add any desired additional mods.
|
||||
|
||||
3. Start Blasphemous. To verfy that the mods are working, look for a version number for both
|
||||
the Randomizer and Multiworld on the title screen.
|
||||
|
||||
## Connecting
|
||||
|
||||
To connect to an Archipelago server, open the in-game console by pressing backslash `\` and use
|
||||
the command `multiworld connect [address:port] [name] [password]`.
|
||||
The port and password are both optional - if no port is provided then the default port of 38281 is used.
|
||||
**Make sure to connect to the server before attempting to start a new save file.**
|
||||
After connecting, there are some commands you can use in the console, which can be opened by pressing backslash `\`:
|
||||
- `ap status` - Display connection status.
|
||||
- `ap say [message]` - Send a message to the server.
|
||||
- `ap hint [item]` - Request a hint for an item from the server.
|
||||
48070
worlds/blasphemous/region_data.py
generated
Normal file
48070
worlds/blasphemous/region_data.py
generated
Normal file
File diff suppressed because it is too large
Load Diff
7
worlds/blasphemous/test/__init__.py
Normal file
7
worlds/blasphemous/test/__init__.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from test.bases import WorldTestBase
|
||||
from .. import BlasphemousWorld
|
||||
|
||||
|
||||
class BlasphemousTestBase(WorldTestBase):
|
||||
game = "Blasphemous"
|
||||
world: BlasphemousWorld
|
||||
56
worlds/blasphemous/test/test_background_zones.py
Normal file
56
worlds/blasphemous/test/test_background_zones.py
Normal file
@@ -0,0 +1,56 @@
|
||||
from . import BlasphemousTestBase
|
||||
from ..Locations import location_names
|
||||
|
||||
|
||||
class BotSSGauntletTest(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "albero",
|
||||
"wall_climb_shuffle": True,
|
||||
"dash_shuffle": True
|
||||
}
|
||||
|
||||
@property
|
||||
def run_default_tests(self) -> bool:
|
||||
return False
|
||||
|
||||
def test_botss_gauntlet(self) -> None:
|
||||
self.assertAccessDependency([location_names["CO25"]], [["Dash Ability", "Wall Climb Ability"]], True)
|
||||
|
||||
|
||||
class BackgroundZonesTest(BlasphemousTestBase):
|
||||
@property
|
||||
def run_default_tests(self) -> bool:
|
||||
return False
|
||||
|
||||
def test_dc_shroud(self) -> None:
|
||||
self.assertAccessDependency([location_names["RB03"]], [["Shroud of Dreamt Sins"]], True)
|
||||
|
||||
def test_wothp_bronze_cells(self) -> None:
|
||||
bronze_locations = [
|
||||
location_names["QI70"],
|
||||
location_names["RESCUED_CHERUB_03"]
|
||||
]
|
||||
|
||||
self.assertAccessDependency(bronze_locations, [["Key of the Secular"]], True)
|
||||
|
||||
def test_wothp_silver_cells(self) -> None:
|
||||
silver_locations = [
|
||||
location_names["CO24"],
|
||||
location_names["RESCUED_CHERUB_34"],
|
||||
location_names["CO37"],
|
||||
location_names["RESCUED_CHERUB_04"]
|
||||
]
|
||||
|
||||
self.assertAccessDependency(silver_locations, [["Key of the Scribe"]], True)
|
||||
|
||||
def test_wothp_gold_cells(self) -> None:
|
||||
gold_locations = [
|
||||
location_names["QI51"],
|
||||
location_names["CO26"],
|
||||
location_names["CO02"]
|
||||
]
|
||||
|
||||
self.assertAccessDependency(gold_locations, [["Key of the Inquisitor"]], True)
|
||||
|
||||
def test_wothp_quirce(self) -> None:
|
||||
self.assertAccessDependency([location_names["BS14"]], [["Key of the Secular", "Key of the Scribe", "Key of the Inquisitor"]], True)
|
||||
135
worlds/blasphemous/test/test_starting_locations.py
Normal file
135
worlds/blasphemous/test/test_starting_locations.py
Normal file
@@ -0,0 +1,135 @@
|
||||
from . import BlasphemousTestBase
|
||||
|
||||
|
||||
class TestBrotherhoodEasy(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "brotherhood",
|
||||
"difficulty": "easy"
|
||||
}
|
||||
|
||||
|
||||
class TestBrotherhoodNormal(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "brotherhood",
|
||||
"difficulty": "normal"
|
||||
}
|
||||
|
||||
|
||||
class TestBrotherhoodHard(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "brotherhood",
|
||||
"difficulty": "hard"
|
||||
}
|
||||
|
||||
|
||||
class TestAlberoEasy(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "albero",
|
||||
"difficulty": "easy"
|
||||
}
|
||||
|
||||
|
||||
class TestAlberoNormal(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "albero",
|
||||
"difficulty": "normal"
|
||||
}
|
||||
|
||||
|
||||
class TestAlberoHard(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "albero",
|
||||
"difficulty": "hard"
|
||||
}
|
||||
|
||||
|
||||
class TestConventEasy(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "convent",
|
||||
"difficulty": "easy"
|
||||
}
|
||||
|
||||
|
||||
class TestConventNormal(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "convent",
|
||||
"difficulty": "normal"
|
||||
}
|
||||
|
||||
|
||||
class TestConventHard(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "convent",
|
||||
"difficulty": "hard"
|
||||
}
|
||||
|
||||
|
||||
class TestGrievanceEasy(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "grievance",
|
||||
"difficulty": "easy"
|
||||
}
|
||||
|
||||
|
||||
class TestGrievanceNormal(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "grievance",
|
||||
"difficulty": "normal"
|
||||
}
|
||||
|
||||
|
||||
class TestGrievanceHard(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "grievance",
|
||||
"difficulty": "hard"
|
||||
}
|
||||
|
||||
|
||||
class TestKnotOfWordsEasy(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "knot_of_words",
|
||||
"difficulty": "easy"
|
||||
}
|
||||
|
||||
|
||||
class TestKnotOfWordsNormal(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "knot_of_words",
|
||||
"difficulty": "normal"
|
||||
}
|
||||
|
||||
|
||||
class TestKnotOfWordsHard(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "knot_of_words",
|
||||
"difficulty": "hard"
|
||||
}
|
||||
|
||||
|
||||
class TestRooftopsEasy(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "rooftops",
|
||||
"difficulty": "easy"
|
||||
}
|
||||
|
||||
|
||||
class TestRooftopsNormal(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "rooftops",
|
||||
"difficulty": "normal"
|
||||
}
|
||||
|
||||
|
||||
class TestRooftopsHard(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "rooftops",
|
||||
"difficulty": "hard"
|
||||
}
|
||||
|
||||
|
||||
# mourning and havoc can't be selected on easy or normal. hard only
|
||||
class TestMourningHavocHard(BlasphemousTestBase):
|
||||
options = {
|
||||
"starting_location": "mourning_havoc",
|
||||
"difficulty": "hard"
|
||||
}
|
||||
@@ -762,7 +762,7 @@ location_table: List[LocationDict] = [
|
||||
'game_id': "graf385"},
|
||||
{'name': "Tagged 389 Graffiti Spots",
|
||||
'stage': Stages.Misc,
|
||||
'game_id': "graf379"},
|
||||
'game_id': "graf389"},
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -1006,6 +1006,8 @@ def rules(brcworld):
|
||||
lambda state: mataan_challenge2(state, player, limit, glitched))
|
||||
set_rule(multiworld.get_location("Mataan: Score challenge reward", player),
|
||||
lambda state: mataan_challenge3(state, player))
|
||||
set_rule(multiworld.get_location("Mataan: Coil joins the crew", player),
|
||||
lambda state: mataan_deepest(state, player, limit, glitched))
|
||||
if photos:
|
||||
set_rule(multiworld.get_location("Mataan: Trash Polo", player),
|
||||
lambda state: camera(state, player))
|
||||
|
||||
@@ -3,8 +3,8 @@ import typing
|
||||
|
||||
|
||||
class ItemData(typing.NamedTuple):
|
||||
code: typing.Optional[int]
|
||||
progression: bool
|
||||
code: int
|
||||
progression: bool = True
|
||||
|
||||
|
||||
class ChecksFinderItem(Item):
|
||||
@@ -12,16 +12,9 @@ class ChecksFinderItem(Item):
|
||||
|
||||
|
||||
item_table = {
|
||||
"Map Width": ItemData(80000, True),
|
||||
"Map Height": ItemData(80001, True),
|
||||
"Map Bombs": ItemData(80002, True),
|
||||
"Map Width": ItemData(80000),
|
||||
"Map Height": ItemData(80001),
|
||||
"Map Bombs": ItemData(80002),
|
||||
}
|
||||
|
||||
required_items = {
|
||||
}
|
||||
|
||||
item_frequencies = {
|
||||
|
||||
}
|
||||
|
||||
lookup_id_to_name: typing.Dict[int, str] = {data.code: item_name for item_name, data in item_table.items() if data.code}
|
||||
lookup_id_to_name: typing.Dict[int, str] = {data.code: item_name for item_name, data in item_table.items()}
|
||||
|
||||
@@ -3,46 +3,14 @@ import typing
|
||||
|
||||
|
||||
class AdvData(typing.NamedTuple):
|
||||
id: typing.Optional[int]
|
||||
region: str
|
||||
id: int
|
||||
region: str = "Board"
|
||||
|
||||
|
||||
class ChecksFinderAdvancement(Location):
|
||||
class ChecksFinderLocation(Location):
|
||||
game: str = "ChecksFinder"
|
||||
|
||||
|
||||
advancement_table = {
|
||||
"Tile 1": AdvData(81000, 'Board'),
|
||||
"Tile 2": AdvData(81001, 'Board'),
|
||||
"Tile 3": AdvData(81002, 'Board'),
|
||||
"Tile 4": AdvData(81003, 'Board'),
|
||||
"Tile 5": AdvData(81004, 'Board'),
|
||||
"Tile 6": AdvData(81005, 'Board'),
|
||||
"Tile 7": AdvData(81006, 'Board'),
|
||||
"Tile 8": AdvData(81007, 'Board'),
|
||||
"Tile 9": AdvData(81008, 'Board'),
|
||||
"Tile 10": AdvData(81009, 'Board'),
|
||||
"Tile 11": AdvData(81010, 'Board'),
|
||||
"Tile 12": AdvData(81011, 'Board'),
|
||||
"Tile 13": AdvData(81012, 'Board'),
|
||||
"Tile 14": AdvData(81013, 'Board'),
|
||||
"Tile 15": AdvData(81014, 'Board'),
|
||||
"Tile 16": AdvData(81015, 'Board'),
|
||||
"Tile 17": AdvData(81016, 'Board'),
|
||||
"Tile 18": AdvData(81017, 'Board'),
|
||||
"Tile 19": AdvData(81018, 'Board'),
|
||||
"Tile 20": AdvData(81019, 'Board'),
|
||||
"Tile 21": AdvData(81020, 'Board'),
|
||||
"Tile 22": AdvData(81021, 'Board'),
|
||||
"Tile 23": AdvData(81022, 'Board'),
|
||||
"Tile 24": AdvData(81023, 'Board'),
|
||||
"Tile 25": AdvData(81024, 'Board'),
|
||||
}
|
||||
|
||||
exclusion_table = {
|
||||
}
|
||||
|
||||
events_table = {
|
||||
}
|
||||
|
||||
lookup_id_to_name: typing.Dict[int, str] = {data.id: item_name for item_name, data in advancement_table.items() if data.id}
|
||||
base_id = 81000
|
||||
advancement_table = {f"Tile {i+1}": AdvData(base_id+i) for i in range(25)}
|
||||
lookup_id_to_name: typing.Dict[int, str] = {data.id: item_name for item_name, data in advancement_table.items()}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import typing
|
||||
from Options import Option
|
||||
|
||||
|
||||
checksfinder_options: typing.Dict[str, type(Option)] = {
|
||||
}
|
||||
@@ -1,44 +1,24 @@
|
||||
from ..generic.Rules import set_rule
|
||||
from BaseClasses import MultiWorld, CollectionState
|
||||
from worlds.generic.Rules import set_rule
|
||||
from BaseClasses import MultiWorld
|
||||
|
||||
|
||||
def _has_total(state: CollectionState, player: int, total: int):
|
||||
return (state.count('Map Width', player) + state.count('Map Height', player) +
|
||||
state.count('Map Bombs', player)) >= total
|
||||
items = ["Map Width", "Map Height", "Map Bombs"]
|
||||
|
||||
|
||||
# Sets rules on entrances and advancements that are always applied
|
||||
def set_rules(world: MultiWorld, player: int):
|
||||
set_rule(world.get_location("Tile 6", player), lambda state: _has_total(state, player, 1))
|
||||
set_rule(world.get_location("Tile 7", player), lambda state: _has_total(state, player, 2))
|
||||
set_rule(world.get_location("Tile 8", player), lambda state: _has_total(state, player, 3))
|
||||
set_rule(world.get_location("Tile 9", player), lambda state: _has_total(state, player, 4))
|
||||
set_rule(world.get_location("Tile 10", player), lambda state: _has_total(state, player, 5))
|
||||
set_rule(world.get_location("Tile 11", player), lambda state: _has_total(state, player, 6))
|
||||
set_rule(world.get_location("Tile 12", player), lambda state: _has_total(state, player, 7))
|
||||
set_rule(world.get_location("Tile 13", player), lambda state: _has_total(state, player, 8))
|
||||
set_rule(world.get_location("Tile 14", player), lambda state: _has_total(state, player, 9))
|
||||
set_rule(world.get_location("Tile 15", player), lambda state: _has_total(state, player, 10))
|
||||
set_rule(world.get_location("Tile 16", player), lambda state: _has_total(state, player, 11))
|
||||
set_rule(world.get_location("Tile 17", player), lambda state: _has_total(state, player, 12))
|
||||
set_rule(world.get_location("Tile 18", player), lambda state: _has_total(state, player, 13))
|
||||
set_rule(world.get_location("Tile 19", player), lambda state: _has_total(state, player, 14))
|
||||
set_rule(world.get_location("Tile 20", player), lambda state: _has_total(state, player, 15))
|
||||
set_rule(world.get_location("Tile 21", player), lambda state: _has_total(state, player, 16))
|
||||
set_rule(world.get_location("Tile 22", player), lambda state: _has_total(state, player, 17))
|
||||
set_rule(world.get_location("Tile 23", player), lambda state: _has_total(state, player, 18))
|
||||
set_rule(world.get_location("Tile 24", player), lambda state: _has_total(state, player, 19))
|
||||
set_rule(world.get_location("Tile 25", player), lambda state: _has_total(state, player, 20))
|
||||
def set_rules(multiworld: MultiWorld, player: int):
|
||||
for i in range(20):
|
||||
set_rule(multiworld.get_location(f"Tile {i+6}", player), lambda state, i=i: state.has_from_list(items, player, i+1))
|
||||
|
||||
|
||||
# Sets rules on completion condition
|
||||
def set_completion_rules(world: MultiWorld, player: int):
|
||||
|
||||
width_req = 10-5
|
||||
height_req = 10-5
|
||||
bomb_req = 20-5
|
||||
completion_requirements = lambda state: \
|
||||
state.has("Map Width", player, width_req) and \
|
||||
state.has("Map Height", player, height_req) and \
|
||||
state.has("Map Bombs", player, bomb_req)
|
||||
world.completion_condition[player] = lambda state: completion_requirements(state)
|
||||
def set_completion_rules(multiworld: MultiWorld, player: int):
|
||||
width_req = 5 # 10 - 5
|
||||
height_req = 5 # 10 - 5
|
||||
bomb_req = 15 # 20 - 5
|
||||
multiworld.completion_condition[player] = lambda state: state.has_all_counts(
|
||||
{
|
||||
"Map Width": width_req,
|
||||
"Map Height": height_req,
|
||||
"Map Bombs": bomb_req,
|
||||
}, player)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
from BaseClasses import Region, Entrance, Item, Tutorial, ItemClassification
|
||||
from .Items import ChecksFinderItem, item_table, required_items
|
||||
from .Locations import ChecksFinderAdvancement, advancement_table, exclusion_table
|
||||
from .Options import checksfinder_options
|
||||
from BaseClasses import Region, Entrance, Tutorial, ItemClassification
|
||||
from .Items import ChecksFinderItem, item_table
|
||||
from .Locations import ChecksFinderLocation, advancement_table
|
||||
from Options import PerGameCommonOptions
|
||||
from .Rules import set_rules, set_completion_rules
|
||||
from ..AutoWorld import World, WebWorld
|
||||
from worlds.AutoWorld import World, WebWorld
|
||||
|
||||
client_version = 7
|
||||
|
||||
@@ -25,38 +25,34 @@ class ChecksFinderWorld(World):
|
||||
ChecksFinder is a game where you avoid mines and find checks inside the board
|
||||
with the mines! You win when you get all your items and beat the board!
|
||||
"""
|
||||
game: str = "ChecksFinder"
|
||||
option_definitions = checksfinder_options
|
||||
topology_present = True
|
||||
game = "ChecksFinder"
|
||||
options_dataclass = PerGameCommonOptions
|
||||
web = ChecksFinderWeb()
|
||||
|
||||
item_name_to_id = {name: data.code for name, data in item_table.items()}
|
||||
location_name_to_id = {name: data.id for name, data in advancement_table.items()}
|
||||
|
||||
def _get_checksfinder_data(self):
|
||||
return {
|
||||
'world_seed': self.multiworld.per_slot_randoms[self.player].getrandbits(32),
|
||||
'seed_name': self.multiworld.seed_name,
|
||||
'player_name': self.multiworld.get_player_name(self.player),
|
||||
'player_id': self.player,
|
||||
'client_version': client_version,
|
||||
'race': self.multiworld.is_race,
|
||||
}
|
||||
def create_regions(self):
|
||||
menu = Region("Menu", self.player, self.multiworld)
|
||||
board = Region("Board", self.player, self.multiworld)
|
||||
board.locations += [ChecksFinderLocation(self.player, loc_name, loc_data.id, board)
|
||||
for loc_name, loc_data in advancement_table.items()]
|
||||
|
||||
connection = Entrance(self.player, "New Board", menu)
|
||||
menu.exits.append(connection)
|
||||
connection.connect(board)
|
||||
self.multiworld.regions += [menu, board]
|
||||
|
||||
def create_items(self):
|
||||
|
||||
# Generate item pool
|
||||
itempool = []
|
||||
# Add all required progression items
|
||||
for (name, num) in required_items.items():
|
||||
itempool += [name] * num
|
||||
# Add the map width and height stuff
|
||||
itempool += ["Map Width"] * (10-5)
|
||||
itempool += ["Map Height"] * (10-5)
|
||||
itempool += ["Map Width"] * 5 # 10 - 5
|
||||
itempool += ["Map Height"] * 5 # 10 - 5
|
||||
# Add the map bombs
|
||||
itempool += ["Map Bombs"] * (20-5)
|
||||
itempool += ["Map Bombs"] * 15 # 20 - 5
|
||||
# Convert itempool into real items
|
||||
itempool = [item for item in map(lambda name: self.create_item(name), itempool)]
|
||||
itempool = [self.create_item(item) for item in itempool]
|
||||
|
||||
self.multiworld.itempool += itempool
|
||||
|
||||
@@ -64,28 +60,16 @@ class ChecksFinderWorld(World):
|
||||
set_rules(self.multiworld, self.player)
|
||||
set_completion_rules(self.multiworld, self.player)
|
||||
|
||||
def create_regions(self):
|
||||
menu = Region("Menu", self.player, self.multiworld)
|
||||
board = Region("Board", self.player, self.multiworld)
|
||||
board.locations += [ChecksFinderAdvancement(self.player, loc_name, loc_data.id, board)
|
||||
for loc_name, loc_data in advancement_table.items() if loc_data.region == board.name]
|
||||
|
||||
connection = Entrance(self.player, "New Board", menu)
|
||||
menu.exits.append(connection)
|
||||
connection.connect(board)
|
||||
self.multiworld.regions += [menu, board]
|
||||
|
||||
def fill_slot_data(self):
|
||||
slot_data = self._get_checksfinder_data()
|
||||
for option_name in checksfinder_options:
|
||||
option = getattr(self.multiworld, option_name)[self.player]
|
||||
if slot_data.get(option_name, None) is None and type(option.value) in {str, int}:
|
||||
slot_data[option_name] = int(option.value)
|
||||
return slot_data
|
||||
return {
|
||||
"world_seed": self.random.getrandbits(32),
|
||||
"seed_name": self.multiworld.seed_name,
|
||||
"player_name": self.player_name,
|
||||
"player_id": self.player,
|
||||
"client_version": client_version,
|
||||
"race": self.multiworld.is_race,
|
||||
}
|
||||
|
||||
def create_item(self, name: str) -> Item:
|
||||
def create_item(self, name: str) -> ChecksFinderItem:
|
||||
item_data = item_table[name]
|
||||
item = ChecksFinderItem(name,
|
||||
ItemClassification.progression if item_data.progression else ItemClassification.filler,
|
||||
item_data.code, self.player)
|
||||
return item
|
||||
return ChecksFinderItem(name, ItemClassification.progression, item_data.code, self.player)
|
||||
|
||||
@@ -24,8 +24,3 @@ next to an icon, the number is how many you have gotten and the icon represents
|
||||
Victory is achieved when the player wins a board they were given after they have received all of their Map Width, Map
|
||||
Height, and Map Bomb items. The game will say at the bottom of the screen how many of each you have received.
|
||||
|
||||
## Unique Local Commands
|
||||
|
||||
The following command is only available when using the ChecksFinderClient to play with Archipelago.
|
||||
|
||||
- `/resync` Manually trigger a resync.
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
- ChecksFinder from
|
||||
the [Github releases Page for the game](https://github.com/jonloveslegos/ChecksFinder/releases) (latest version)
|
||||
- Archipelago from the [Archipelago Releases Page](https://github.com/ArchipelagoMW/Archipelago/releases)
|
||||
|
||||
## Configuring your YAML file
|
||||
|
||||
@@ -17,28 +16,15 @@ guide: [Basic Multiworld Setup Guide](/tutorial/Archipelago/setup/en)
|
||||
|
||||
You can customize your options by visiting the [ChecksFinder Player Options Page](/games/ChecksFinder/player-options)
|
||||
|
||||
### Generating a ChecksFinder game
|
||||
## Joining a MultiWorld Game
|
||||
|
||||
**ChecksFinder is meant to be played _alongside_ another game! You may not be playing it for long periods of time if
|
||||
you play it by itself with another person!**
|
||||
|
||||
When you join a multiworld game, you will be asked to provide your YAML file to whoever is hosting. Once that is done,
|
||||
the host will provide you with either a link to download your data file, or with a zip file containing everyone's data
|
||||
files. You do not have a file inside that zip though!
|
||||
|
||||
You need to start ChecksFinder client yourself, it is located within the Archipelago folder.
|
||||
|
||||
### Connect to the MultiServer
|
||||
|
||||
First start ChecksFinder.
|
||||
|
||||
Once both ChecksFinder and the client are started. In the client at the top type in the spot labeled `Server` type the
|
||||
`Ip Address` and `Port` separated with a `:` symbol.
|
||||
|
||||
The client will then ask for the username you chose, input that in the text box at the bottom of the client.
|
||||
|
||||
### Play the game
|
||||
|
||||
When the console tells you that you have joined the room, you're all set. Congratulations on successfully joining a
|
||||
multiworld game!
|
||||
1. Start ChecksFinder
|
||||
2. Enter the following information:
|
||||
- Enter the server url (starting from `wss://` for https connection like archipelago.gg, and starting from `ws://` for http connection and local multiserver)
|
||||
- Enter server port
|
||||
- Enter the name of the slot you wish to connect to
|
||||
- Enter the room password (optional)
|
||||
- Press `Play Online` to connect
|
||||
3. Start playing!
|
||||
|
||||
Game options and controls are described in the readme on the github repository for the game
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
from typing import Callable, Dict, NamedTuple, Optional
|
||||
from typing import Callable, Dict, NamedTuple, Optional, TYPE_CHECKING
|
||||
|
||||
from BaseClasses import Item, ItemClassification, MultiWorld
|
||||
from BaseClasses import Item, ItemClassification
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from . import CliqueWorld
|
||||
|
||||
|
||||
class CliqueItem(Item):
|
||||
@@ -10,7 +13,7 @@ class CliqueItem(Item):
|
||||
class CliqueItemData(NamedTuple):
|
||||
code: Optional[int] = None
|
||||
type: ItemClassification = ItemClassification.filler
|
||||
can_create: Callable[[MultiWorld, int], bool] = lambda multiworld, player: True
|
||||
can_create: Callable[["CliqueWorld"], bool] = lambda world: True
|
||||
|
||||
|
||||
item_data_table: Dict[str, CliqueItemData] = {
|
||||
@@ -21,11 +24,11 @@ item_data_table: Dict[str, CliqueItemData] = {
|
||||
"Button Activation": CliqueItemData(
|
||||
code=69696968,
|
||||
type=ItemClassification.progression,
|
||||
can_create=lambda multiworld, player: bool(getattr(multiworld, "hard_mode")[player]),
|
||||
can_create=lambda world: world.options.hard_mode,
|
||||
),
|
||||
"A Cool Filler Item (No Satisfaction Guaranteed)": CliqueItemData(
|
||||
code=69696967,
|
||||
can_create=lambda multiworld, player: False # Only created from `get_filler_item_name`.
|
||||
can_create=lambda world: False # Only created from `get_filler_item_name`.
|
||||
),
|
||||
"The Urge to Push": CliqueItemData(
|
||||
type=ItemClassification.progression,
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
from typing import Callable, Dict, NamedTuple, Optional
|
||||
from typing import Callable, Dict, NamedTuple, Optional, TYPE_CHECKING
|
||||
|
||||
from BaseClasses import Location, MultiWorld
|
||||
from BaseClasses import Location
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from . import CliqueWorld
|
||||
|
||||
|
||||
class CliqueLocation(Location):
|
||||
@@ -10,7 +13,7 @@ class CliqueLocation(Location):
|
||||
class CliqueLocationData(NamedTuple):
|
||||
region: str
|
||||
address: Optional[int] = None
|
||||
can_create: Callable[[MultiWorld, int], bool] = lambda multiworld, player: True
|
||||
can_create: Callable[["CliqueWorld"], bool] = lambda world: True
|
||||
locked_item: Optional[str] = None
|
||||
|
||||
|
||||
@@ -22,7 +25,7 @@ location_data_table: Dict[str, CliqueLocationData] = {
|
||||
"The Item on the Desk": CliqueLocationData(
|
||||
region="The Button Realm",
|
||||
address=69696968,
|
||||
can_create=lambda multiworld, player: bool(getattr(multiworld, "hard_mode")[player]),
|
||||
can_create=lambda world: world.options.hard_mode,
|
||||
),
|
||||
"In the Player's Mind": CliqueLocationData(
|
||||
region="The Button Realm",
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from typing import Dict
|
||||
|
||||
from Options import Choice, Option, Toggle
|
||||
from dataclasses import dataclass
|
||||
from Options import Choice, Toggle, PerGameCommonOptions, StartInventoryPool
|
||||
|
||||
|
||||
class HardMode(Toggle):
|
||||
@@ -25,10 +24,11 @@ class ButtonColor(Choice):
|
||||
option_black = 11
|
||||
|
||||
|
||||
clique_options: Dict[str, type(Option)] = {
|
||||
"color": ButtonColor,
|
||||
"hard_mode": HardMode,
|
||||
@dataclass
|
||||
class CliqueOptions(PerGameCommonOptions):
|
||||
color: ButtonColor
|
||||
hard_mode: HardMode
|
||||
start_inventory_from_pool: StartInventoryPool
|
||||
|
||||
# DeathLink is always on. Always.
|
||||
# "death_link": DeathLink,
|
||||
}
|
||||
# death_link: DeathLink
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
from typing import Callable
|
||||
from typing import Callable, TYPE_CHECKING
|
||||
|
||||
from BaseClasses import CollectionState, MultiWorld
|
||||
from BaseClasses import CollectionState
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from . import CliqueWorld
|
||||
|
||||
|
||||
def get_button_rule(multiworld: MultiWorld, player: int) -> Callable[[CollectionState], bool]:
|
||||
if getattr(multiworld, "hard_mode")[player]:
|
||||
return lambda state: state.has("Button Activation", player)
|
||||
def get_button_rule(world: "CliqueWorld") -> Callable[[CollectionState], bool]:
|
||||
if world.options.hard_mode:
|
||||
return lambda state: state.has("Button Activation", world.player)
|
||||
|
||||
return lambda state: True
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
from typing import List
|
||||
from typing import List, Dict, Any
|
||||
|
||||
from BaseClasses import Region, Tutorial
|
||||
from worlds.AutoWorld import WebWorld, World
|
||||
from .Items import CliqueItem, item_data_table, item_table
|
||||
from .Locations import CliqueLocation, location_data_table, location_table, locked_locations
|
||||
from .Options import clique_options
|
||||
from .Options import CliqueOptions
|
||||
from .Regions import region_data_table
|
||||
from .Rules import get_button_rule
|
||||
|
||||
@@ -38,7 +38,8 @@ class CliqueWorld(World):
|
||||
|
||||
game = "Clique"
|
||||
web = CliqueWebWorld()
|
||||
option_definitions = clique_options
|
||||
options: CliqueOptions
|
||||
options_dataclass = CliqueOptions
|
||||
location_name_to_id = location_table
|
||||
item_name_to_id = item_table
|
||||
|
||||
@@ -48,7 +49,7 @@ class CliqueWorld(World):
|
||||
def create_items(self) -> None:
|
||||
item_pool: List[CliqueItem] = []
|
||||
for name, item in item_data_table.items():
|
||||
if item.code and item.can_create(self.multiworld, self.player):
|
||||
if item.code and item.can_create(self):
|
||||
item_pool.append(self.create_item(name))
|
||||
|
||||
self.multiworld.itempool += item_pool
|
||||
@@ -61,41 +62,40 @@ class CliqueWorld(World):
|
||||
|
||||
# Create locations.
|
||||
for region_name, region_data in region_data_table.items():
|
||||
region = self.multiworld.get_region(region_name, self.player)
|
||||
region = self.get_region(region_name)
|
||||
region.add_locations({
|
||||
location_name: location_data.address for location_name, location_data in location_data_table.items()
|
||||
if location_data.region == region_name and location_data.can_create(self.multiworld, self.player)
|
||||
if location_data.region == region_name and location_data.can_create(self)
|
||||
}, CliqueLocation)
|
||||
region.add_exits(region_data_table[region_name].connecting_regions)
|
||||
|
||||
# Place locked locations.
|
||||
for location_name, location_data in locked_locations.items():
|
||||
# Ignore locations we never created.
|
||||
if not location_data.can_create(self.multiworld, self.player):
|
||||
if not location_data.can_create(self):
|
||||
continue
|
||||
|
||||
locked_item = self.create_item(location_data_table[location_name].locked_item)
|
||||
self.multiworld.get_location(location_name, self.player).place_locked_item(locked_item)
|
||||
self.get_location(location_name).place_locked_item(locked_item)
|
||||
|
||||
# Set priority location for the Big Red Button!
|
||||
self.multiworld.priority_locations[self.player].value.add("The Big Red Button")
|
||||
self.options.priority_locations.value.add("The Big Red Button")
|
||||
|
||||
def get_filler_item_name(self) -> str:
|
||||
return "A Cool Filler Item (No Satisfaction Guaranteed)"
|
||||
|
||||
def set_rules(self) -> None:
|
||||
button_rule = get_button_rule(self.multiworld, self.player)
|
||||
self.multiworld.get_location("The Big Red Button", self.player).access_rule = button_rule
|
||||
self.multiworld.get_location("In the Player's Mind", self.player).access_rule = button_rule
|
||||
button_rule = get_button_rule(self)
|
||||
self.get_location("The Big Red Button").access_rule = button_rule
|
||||
self.get_location("In the Player's Mind").access_rule = button_rule
|
||||
|
||||
# Do not allow button activations on buttons.
|
||||
self.multiworld.get_location("The Big Red Button", self.player).item_rule =\
|
||||
lambda item: item.name != "Button Activation"
|
||||
self.get_location("The Big Red Button").item_rule = lambda item: item.name != "Button Activation"
|
||||
|
||||
# Completion condition.
|
||||
self.multiworld.completion_condition[self.player] = lambda state: state.has("The Urge to Push", self.player)
|
||||
|
||||
def fill_slot_data(self):
|
||||
def fill_slot_data(self) -> Dict[str, Any]:
|
||||
return {
|
||||
"color": getattr(self.multiworld, "color")[self.player].current_key
|
||||
"color": self.options.color.current_key
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from dataclasses import dataclass
|
||||
from Options import OptionGroup, Choice, DefaultOnToggle, Range, Toggle, PerGameCommonOptions, StartInventoryPool
|
||||
from Options import (OptionGroup, Choice, DefaultOnToggle, ItemsAccessibility, PerGameCommonOptions, Range, Toggle,
|
||||
StartInventoryPool)
|
||||
|
||||
|
||||
class CharacterStages(Choice):
|
||||
@@ -521,6 +522,7 @@ class DeathLink(Choice):
|
||||
|
||||
@dataclass
|
||||
class CV64Options(PerGameCommonOptions):
|
||||
accessibility: ItemsAccessibility
|
||||
start_inventory_from_pool: StartInventoryPool
|
||||
character_stages: CharacterStages
|
||||
stage_shuffle: StageShuffle
|
||||
|
||||
264
worlds/dark_souls_3/Bosses.py
Normal file
264
worlds/dark_souls_3/Bosses.py
Normal file
@@ -0,0 +1,264 @@
|
||||
# In almost all cases, we leave boss and enemy randomization up to the static randomizer. But for
|
||||
# Yhorm specifically we need to know where he ends up in order to ensure that the Storm Ruler is
|
||||
# available before his fight.
|
||||
|
||||
from dataclasses import dataclass, field
|
||||
from typing import Set
|
||||
|
||||
|
||||
@dataclass
|
||||
class DS3BossInfo:
|
||||
"""The set of locations a given boss location blocks access to."""
|
||||
|
||||
name: str
|
||||
"""The boss's name."""
|
||||
|
||||
id: int
|
||||
"""The game's ID for this particular boss."""
|
||||
|
||||
dlc: bool = False
|
||||
"""This boss appears in one of the game's DLCs."""
|
||||
|
||||
before_storm_ruler: bool = False
|
||||
"""Whether this location appears before it's possible to get Storm Ruler in vanilla.
|
||||
|
||||
This is used to determine whether it's safe to place Yhorm here if weapons
|
||||
aren't randomized.
|
||||
"""
|
||||
|
||||
locations: Set[str] = field(default_factory=set)
|
||||
"""Additional individual locations that can't be accessed until the boss is dead."""
|
||||
|
||||
|
||||
# Note: the static randomizer splits up some bosses into separate fights for separate phases, each
|
||||
# of which can be individually replaced by Yhorm.
|
||||
all_bosses = [
|
||||
DS3BossInfo("Iudex Gundyr", 4000800, before_storm_ruler = True, locations = {
|
||||
"CA: Coiled Sword - boss drop"
|
||||
}),
|
||||
DS3BossInfo("Vordt of the Boreal Valley", 3000800, before_storm_ruler = True, locations = {
|
||||
"HWL: Soul of Boreal Valley Vordt"
|
||||
}),
|
||||
DS3BossInfo("Curse-rotted Greatwood", 3100800, locations = {
|
||||
"US: Soul of the Rotted Greatwood",
|
||||
"US: Transposing Kiln - boss drop",
|
||||
"US: Wargod Wooden Shield - Pit of Hollows",
|
||||
"FS: Hawkwood's Shield - gravestone after Hawkwood leaves",
|
||||
"FS: Sunset Shield - by grave after killing Hodrick w/Sirris",
|
||||
"US: Sunset Helm - Pit of Hollows after killing Hodrick w/Sirris",
|
||||
"US: Sunset Armor - pit of hollows after killing Hodrick w/Sirris",
|
||||
"US: Sunset Gauntlets - pit of hollows after killing Hodrick w/Sirris",
|
||||
"US: Sunset Leggings - pit of hollows after killing Hodrick w/Sirris",
|
||||
"FS: Sunless Talisman - Sirris, kill GA boss",
|
||||
"FS: Sunless Veil - shop, Sirris quest, kill GA boss",
|
||||
"FS: Sunless Armor - shop, Sirris quest, kill GA boss",
|
||||
"FS: Sunless Gauntlets - shop, Sirris quest, kill GA boss",
|
||||
"FS: Sunless Leggings - shop, Sirris quest, kill GA boss",
|
||||
}),
|
||||
DS3BossInfo("Crystal Sage", 3300850, locations = {
|
||||
"RS: Soul of a Crystal Sage",
|
||||
"FS: Sage's Big Hat - shop after killing RS boss",
|
||||
"FS: Hawkwood's Shield - gravestone after Hawkwood leaves",
|
||||
}),
|
||||
DS3BossInfo("Deacons of the Deep", 3500800, locations = {
|
||||
"CD: Soul of the Deacons of the Deep",
|
||||
"CD: Small Doll - boss drop",
|
||||
"FS: Hawkwood's Shield - gravestone after Hawkwood leaves",
|
||||
}),
|
||||
DS3BossInfo("Abyss Watchers", 3300801, before_storm_ruler = True, locations = {
|
||||
"FK: Soul of the Blood of the Wolf",
|
||||
"FK: Cinders of a Lord - Abyss Watcher",
|
||||
"FS: Undead Legion Helm - shop after killing FK boss",
|
||||
"FS: Undead Legion Armor - shop after killing FK boss",
|
||||
"FS: Undead Legion Gauntlet - shop after killing FK boss",
|
||||
"FS: Undead Legion Leggings - shop after killing FK boss",
|
||||
"FS: Farron Ring - Hawkwood",
|
||||
"FS: Hawkwood's Shield - gravestone after Hawkwood leaves",
|
||||
}),
|
||||
DS3BossInfo("High Lord Wolnir", 3800800, before_storm_ruler = True, locations = {
|
||||
"CC: Soul of High Lord Wolnir",
|
||||
"FS: Wolnir's Crown - shop after killing CC boss",
|
||||
"CC: Homeward Bone - Irithyll bridge",
|
||||
"CC: Pontiff's Right Eye - Irithyll bridge, miniboss drop",
|
||||
}),
|
||||
DS3BossInfo("Pontiff Sulyvahn", 3700850, locations = {
|
||||
"IBV: Soul of Pontiff Sulyvahn",
|
||||
}),
|
||||
DS3BossInfo("Old Demon King", 3800830, locations = {
|
||||
"SL: Soul of the Old Demon King",
|
||||
}),
|
||||
DS3BossInfo("Aldrich, Devourer of Gods", 3700800, locations = {
|
||||
"AL: Soul of Aldrich",
|
||||
"AL: Cinders of a Lord - Aldrich",
|
||||
"FS: Smough's Helm - shop after killing AL boss",
|
||||
"FS: Smough's Armor - shop after killing AL boss",
|
||||
"FS: Smough's Gauntlets - shop after killing AL boss",
|
||||
"FS: Smough's Leggings - shop after killing AL boss",
|
||||
"AL: Sun Princess Ring - dark cathedral, after boss",
|
||||
"FS: Leonhard's Garb - shop after killing Leonhard",
|
||||
"FS: Leonhard's Gauntlets - shop after killing Leonhard",
|
||||
"FS: Leonhard's Trousers - shop after killing Leonhard",
|
||||
}),
|
||||
DS3BossInfo("Dancer of the Boreal Valley", 3000899, locations = {
|
||||
"HWL: Soul of the Dancer",
|
||||
"FS: Dancer's Crown - shop after killing LC entry boss",
|
||||
"FS: Dancer's Armor - shop after killing LC entry boss",
|
||||
"FS: Dancer's Gauntlets - shop after killing LC entry boss",
|
||||
"FS: Dancer's Leggings - shop after killing LC entry boss",
|
||||
}),
|
||||
DS3BossInfo("Dragonslayer Armour", 3010800, locations = {
|
||||
"LC: Soul of Dragonslayer Armour",
|
||||
"FS: Morne's Helm - shop after killing Eygon or LC boss",
|
||||
"FS: Morne's Armor - shop after killing Eygon or LC boss",
|
||||
"FS: Morne's Gauntlets - shop after killing Eygon or LC boss",
|
||||
"FS: Morne's Leggings - shop after killing Eygon or LC boss",
|
||||
"LC: Titanite Chunk - down stairs after boss",
|
||||
}),
|
||||
DS3BossInfo("Consumed King Oceiros", 3000830, locations = {
|
||||
"CKG: Soul of Consumed Oceiros",
|
||||
"CKG: Titanite Scale - tomb, chest #1",
|
||||
"CKG: Titanite Scale - tomb, chest #2",
|
||||
"CKG: Drakeblood Helm - tomb, after killing AP mausoleum NPC",
|
||||
"CKG: Drakeblood Armor - tomb, after killing AP mausoleum NPC",
|
||||
"CKG: Drakeblood Gauntlets - tomb, after killing AP mausoleum NPC",
|
||||
"CKG: Drakeblood Leggings - tomb, after killing AP mausoleum NPC",
|
||||
}),
|
||||
DS3BossInfo("Champion Gundyr", 4000830, locations = {
|
||||
"UG: Soul of Champion Gundyr",
|
||||
"FS: Gundyr's Helm - shop after killing UG boss",
|
||||
"FS: Gundyr's Armor - shop after killing UG boss",
|
||||
"FS: Gundyr's Gauntlets - shop after killing UG boss",
|
||||
"FS: Gundyr's Leggings - shop after killing UG boss",
|
||||
"UG: Hornet Ring - environs, right of main path after killing FK boss",
|
||||
"UG: Chaos Blade - environs, left of shrine",
|
||||
"UG: Blacksmith Hammer - shrine, Andre's room",
|
||||
"UG: Eyes of a Fire Keeper - shrine, Irina's room",
|
||||
"UG: Coiled Sword Fragment - shrine, dead bonfire",
|
||||
"UG: Soul of a Crestfallen Knight - environs, above shrine entrance",
|
||||
"UG: Life Ring+3 - shrine, behind big throne",
|
||||
"UG: Ring of Steel Protection+1 - environs, behind bell tower",
|
||||
"FS: Ring of Sacrifice - Yuria shop",
|
||||
"UG: Ember - shop",
|
||||
"UG: Priestess Ring - shop",
|
||||
"UG: Wolf Knight Helm - shop after killing FK boss",
|
||||
"UG: Wolf Knight Armor - shop after killing FK boss",
|
||||
"UG: Wolf Knight Gauntlets - shop after killing FK boss",
|
||||
"UG: Wolf Knight Leggings - shop after killing FK boss",
|
||||
}),
|
||||
DS3BossInfo("Ancient Wyvern", 3200800),
|
||||
DS3BossInfo("King of the Storm", 3200850, locations = {
|
||||
"AP: Soul of the Nameless King",
|
||||
"FS: Golden Crown - shop after killing AP boss",
|
||||
"FS: Dragonscale Armor - shop after killing AP boss",
|
||||
"FS: Golden Bracelets - shop after killing AP boss",
|
||||
"FS: Dragonscale Waistcloth - shop after killing AP boss",
|
||||
"AP: Titanite Slab - plaza",
|
||||
"AP: Covetous Gold Serpent Ring+2 - plaza",
|
||||
"AP: Dragonslayer Helm - plaza",
|
||||
"AP: Dragonslayer Armor - plaza",
|
||||
"AP: Dragonslayer Gauntlets - plaza",
|
||||
"AP: Dragonslayer Leggings - plaza",
|
||||
}),
|
||||
DS3BossInfo("Nameless King", 3200851, locations = {
|
||||
"AP: Soul of the Nameless King",
|
||||
"FS: Golden Crown - shop after killing AP boss",
|
||||
"FS: Dragonscale Armor - shop after killing AP boss",
|
||||
"FS: Golden Bracelets - shop after killing AP boss",
|
||||
"FS: Dragonscale Waistcloth - shop after killing AP boss",
|
||||
"AP: Titanite Slab - plaza",
|
||||
"AP: Covetous Gold Serpent Ring+2 - plaza",
|
||||
"AP: Dragonslayer Helm - plaza",
|
||||
"AP: Dragonslayer Armor - plaza",
|
||||
"AP: Dragonslayer Gauntlets - plaza",
|
||||
"AP: Dragonslayer Leggings - plaza",
|
||||
}),
|
||||
DS3BossInfo("Lothric, Younger Prince", 3410830, locations = {
|
||||
"GA: Soul of the Twin Princes",
|
||||
"GA: Cinders of a Lord - Lothric Prince",
|
||||
}),
|
||||
DS3BossInfo("Lorian, Elder Prince", 3410832, locations = {
|
||||
"GA: Soul of the Twin Princes",
|
||||
"GA: Cinders of a Lord - Lothric Prince",
|
||||
"FS: Lorian's Helm - shop after killing GA boss",
|
||||
"FS: Lorian's Armor - shop after killing GA boss",
|
||||
"FS: Lorian's Gauntlets - shop after killing GA boss",
|
||||
"FS: Lorian's Leggings - shop after killing GA boss",
|
||||
}),
|
||||
DS3BossInfo("Champion's Gravetender and Gravetender Greatwolf", 4500860, dlc = True,
|
||||
locations = {"PW1: Valorheart - boss drop"}),
|
||||
DS3BossInfo("Sister Friede", 4500801, dlc = True, locations = {
|
||||
"PW2: Soul of Sister Friede",
|
||||
"PW2: Titanite Slab - boss drop",
|
||||
"PW1: Titanite Slab - Corvian",
|
||||
"FS: Ordained Hood - shop after killing PW2 boss",
|
||||
"FS: Ordained Dress - shop after killing PW2 boss",
|
||||
"FS: Ordained Trousers - shop after killing PW2 boss",
|
||||
}),
|
||||
DS3BossInfo("Blackflame Friede", 4500800, dlc = True, locations = {
|
||||
"PW2: Soul of Sister Friede",
|
||||
"PW1: Titanite Slab - Corvian",
|
||||
"FS: Ordained Hood - shop after killing PW2 boss",
|
||||
"FS: Ordained Dress - shop after killing PW2 boss",
|
||||
"FS: Ordained Trousers - shop after killing PW2 boss",
|
||||
}),
|
||||
DS3BossInfo("Demon Prince", 5000801, dlc = True, locations = {
|
||||
"DH: Soul of the Demon Prince",
|
||||
"DH: Small Envoy Banner - boss drop",
|
||||
}),
|
||||
DS3BossInfo("Halflight, Spear of the Church", 5100800, dlc = True, locations = {
|
||||
"RC: Titanite Slab - mid boss drop",
|
||||
"RC: Titanite Slab - ashes, NPC drop",
|
||||
"RC: Titanite Slab - ashes, mob drop",
|
||||
"RC: Filianore's Spear Ornament - mid boss drop",
|
||||
"RC: Crucifix of the Mad King - ashes, NPC drop",
|
||||
"RC: Shira's Crown - Shira's room after killing ashes NPC",
|
||||
"RC: Shira's Armor - Shira's room after killing ashes NPC",
|
||||
"RC: Shira's Gloves - Shira's room after killing ashes NPC",
|
||||
"RC: Shira's Trousers - Shira's room after killing ashes NPC",
|
||||
}),
|
||||
DS3BossInfo("Darkeater Midir", 5100850, dlc = True, locations = {
|
||||
"RC: Soul of Darkeater Midir",
|
||||
"RC: Spears of the Church - hidden boss drop",
|
||||
}),
|
||||
DS3BossInfo("Slave Knight Gael 1", 5110801, dlc = True, locations = {
|
||||
"RC: Soul of Slave Knight Gael",
|
||||
"RC: Blood of the Dark Soul - end boss drop",
|
||||
# These are accessible before you trigger the boss, but once you do you
|
||||
# have to beat it before getting them.
|
||||
"RC: Titanite Slab - ashes, mob drop",
|
||||
"RC: Titanite Slab - ashes, NPC drop",
|
||||
"RC: Sacred Chime of Filianore - ashes, NPC drop",
|
||||
"RC: Crucifix of the Mad King - ashes, NPC drop",
|
||||
"RC: Shira's Crown - Shira's room after killing ashes NPC",
|
||||
"RC: Shira's Armor - Shira's room after killing ashes NPC",
|
||||
"RC: Shira's Gloves - Shira's room after killing ashes NPC",
|
||||
"RC: Shira's Trousers - Shira's room after killing ashes NPC",
|
||||
}),
|
||||
DS3BossInfo("Slave Knight Gael 2", 5110800, dlc = True, locations = {
|
||||
"RC: Soul of Slave Knight Gael",
|
||||
"RC: Blood of the Dark Soul - end boss drop",
|
||||
# These are accessible before you trigger the boss, but once you do you
|
||||
# have to beat it before getting them.
|
||||
"RC: Titanite Slab - ashes, mob drop",
|
||||
"RC: Titanite Slab - ashes, NPC drop",
|
||||
"RC: Sacred Chime of Filianore - ashes, NPC drop",
|
||||
"RC: Crucifix of the Mad King - ashes, NPC drop",
|
||||
"RC: Shira's Crown - Shira's room after killing ashes NPC",
|
||||
"RC: Shira's Armor - Shira's room after killing ashes NPC",
|
||||
"RC: Shira's Gloves - Shira's room after killing ashes NPC",
|
||||
"RC: Shira's Trousers - Shira's room after killing ashes NPC",
|
||||
}),
|
||||
DS3BossInfo("Lords of Cinder", 4100800, locations = {
|
||||
"KFF: Soul of the Lords",
|
||||
"FS: Billed Mask - Yuria after killing KFF boss",
|
||||
"FS: Black Dress - Yuria after killing KFF boss",
|
||||
"FS: Black Gauntlets - Yuria after killing KFF boss",
|
||||
"FS: Black Leggings - Yuria after killing KFF boss"
|
||||
}),
|
||||
]
|
||||
|
||||
default_yhorm_location = DS3BossInfo("Yhorm the Giant", 3900800, locations = {
|
||||
"PC: Soul of Yhorm the Giant",
|
||||
"PC: Cinders of a Lord - Yhorm the Giant",
|
||||
"PC: Siegbräu - Siegward after killing boss",
|
||||
})
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,80 +1,78 @@
|
||||
import typing
|
||||
from dataclasses import dataclass
|
||||
import json
|
||||
from typing import Any, Dict
|
||||
|
||||
from Options import Toggle, DefaultOnToggle, Option, Range, Choice, ItemDict, DeathLink
|
||||
from Options import Choice, DeathLink, DefaultOnToggle, ExcludeLocations, NamedRange, OptionDict, \
|
||||
OptionGroup, PerGameCommonOptions, Range, Removed, Toggle
|
||||
|
||||
## Game Options
|
||||
|
||||
|
||||
class RandomizeWeaponLocations(DefaultOnToggle):
|
||||
"""Randomizes weapons (+76 locations)"""
|
||||
display_name = "Randomize Weapon Locations"
|
||||
class EarlySmallLothricBanner(Choice):
|
||||
"""Force Small Lothric Banner into an early sphere in your world or across all worlds."""
|
||||
display_name = "Early Small Lothric Banner"
|
||||
option_off = 0
|
||||
option_early_global = 1
|
||||
option_early_local = 2
|
||||
default = option_off
|
||||
|
||||
|
||||
class RandomizeShieldLocations(DefaultOnToggle):
|
||||
"""Randomizes shields (+24 locations)"""
|
||||
display_name = "Randomize Shield Locations"
|
||||
class LateBasinOfVowsOption(Choice):
|
||||
"""Guarantee that you don't need to enter Lothric Castle until later in the run.
|
||||
|
||||
- **Off:** You may have to enter Lothric Castle and the areas beyond it immediately after High
|
||||
Wall of Lothric.
|
||||
- **After Small Lothric Banner:** You may have to enter Lothric Castle after Catacombs of
|
||||
Carthus.
|
||||
- **After Small Doll:** You won't have to enter Lothric Castle until after Irithyll of the
|
||||
Boreal Valley.
|
||||
"""
|
||||
display_name = "Late Basin of Vows"
|
||||
option_off = 0
|
||||
alias_false = 0
|
||||
option_after_small_lothric_banner = 1
|
||||
alias_true = 1
|
||||
option_after_small_doll = 2
|
||||
|
||||
|
||||
class RandomizeArmorLocations(DefaultOnToggle):
|
||||
"""Randomizes armor pieces (+97 locations)"""
|
||||
display_name = "Randomize Armor Locations"
|
||||
class LateDLCOption(Choice):
|
||||
"""Guarantee that you don't need to enter the DLC until later in the run.
|
||||
|
||||
- **Off:** You may have to enter the DLC after Catacombs of Carthus.
|
||||
- **After Small Doll:** You may have to enter the DLC after Irithyll of the Boreal Valley.
|
||||
- **After Basin:** You won't have to enter the DLC until after Lothric Castle.
|
||||
"""
|
||||
display_name = "Late DLC"
|
||||
option_off = 0
|
||||
alias_false = 0
|
||||
option_after_small_doll = 1
|
||||
alias_true = 1
|
||||
option_after_basin = 2
|
||||
|
||||
|
||||
class RandomizeRingLocations(DefaultOnToggle):
|
||||
"""Randomizes rings (+49 locations)"""
|
||||
display_name = "Randomize Ring Locations"
|
||||
class EnableDLCOption(Toggle):
|
||||
"""Include DLC locations, items, and enemies in the randomized pools.
|
||||
|
||||
To use this option, you must own both the "Ashes of Ariandel" and the "Ringed City" DLCs.
|
||||
"""
|
||||
display_name = "Enable DLC"
|
||||
|
||||
|
||||
class RandomizeSpellLocations(DefaultOnToggle):
|
||||
"""Randomizes spells (+18 locations)"""
|
||||
display_name = "Randomize Spell Locations"
|
||||
class EnableNGPOption(Toggle):
|
||||
"""Include items and locations exclusive to NG+ cycles."""
|
||||
display_name = "Enable NG+"
|
||||
|
||||
|
||||
class RandomizeKeyLocations(DefaultOnToggle):
|
||||
"""Randomizes items which unlock doors or bypass barriers"""
|
||||
display_name = "Randomize Key Locations"
|
||||
## Equipment
|
||||
|
||||
class RandomizeStartingLoadout(DefaultOnToggle):
|
||||
"""Randomizes the equipment characters begin with."""
|
||||
display_name = "Randomize Starting Loadout"
|
||||
|
||||
|
||||
class RandomizeBossSoulLocations(DefaultOnToggle):
|
||||
"""Randomizes Boss Souls (+18 Locations)"""
|
||||
display_name = "Randomize Boss Soul Locations"
|
||||
|
||||
|
||||
class RandomizeNPCLocations(Toggle):
|
||||
"""Randomizes friendly NPC drops (meaning you will probably have to kill them) (+14 locations)"""
|
||||
display_name = "Randomize NPC Locations"
|
||||
|
||||
|
||||
class RandomizeMiscLocations(Toggle):
|
||||
"""Randomizes miscellaneous items (ashes, tomes, scrolls, etc.) to the pool. (+36 locations)"""
|
||||
display_name = "Randomize Miscellaneous Locations"
|
||||
|
||||
|
||||
class RandomizeHealthLocations(Toggle):
|
||||
"""Randomizes health upgrade items. (+21 locations)"""
|
||||
display_name = "Randomize Health Upgrade Locations"
|
||||
|
||||
|
||||
class RandomizeProgressiveLocationsOption(Toggle):
|
||||
"""Randomizes upgrade materials and consumables such as the titanite shards, firebombs, resin, etc...
|
||||
|
||||
Instead of specific locations, these are progressive, so Titanite Shard #1 is the first titanite shard
|
||||
you pick up, regardless of whether it's from an enemy drop late in the game or an item on the ground in the
|
||||
first 5 minutes."""
|
||||
display_name = "Randomize Progressive Locations"
|
||||
|
||||
|
||||
class PoolTypeOption(Choice):
|
||||
"""Changes which non-progression items you add to the pool
|
||||
|
||||
Shuffle: Items are picked from the locations being randomized
|
||||
Various: Items are picked from a list of all items in the game, but are the same type of item they replace"""
|
||||
display_name = "Pool Type"
|
||||
option_shuffle = 0
|
||||
option_various = 1
|
||||
|
||||
|
||||
class GuaranteedItemsOption(ItemDict):
|
||||
"""Guarantees that the specified items will be in the item pool"""
|
||||
display_name = "Guaranteed Items"
|
||||
class RequireOneHandedStartingWeapons(DefaultOnToggle):
|
||||
"""Require starting equipment to be usable one-handed."""
|
||||
display_name = "Require One-Handed Starting Weapons"
|
||||
|
||||
|
||||
class AutoEquipOption(Toggle):
|
||||
@@ -83,47 +81,56 @@ class AutoEquipOption(Toggle):
|
||||
|
||||
|
||||
class LockEquipOption(Toggle):
|
||||
"""Lock the equipment slots so you cannot change your armor or your left/right weapons. Works great with the
|
||||
Auto-equip option."""
|
||||
"""Lock the equipment slots so you cannot change your armor or your left/right weapons.
|
||||
|
||||
Works great with the Auto-equip option.
|
||||
"""
|
||||
display_name = "Lock Equipment Slots"
|
||||
|
||||
|
||||
class NoEquipLoadOption(Toggle):
|
||||
"""Disable the equip load constraint from the game."""
|
||||
display_name = "No Equip Load"
|
||||
|
||||
|
||||
class NoWeaponRequirementsOption(Toggle):
|
||||
"""Disable the weapon requirements by removing any movement or damage penalties.
|
||||
Permitting you to use any weapon early"""
|
||||
"""Disable the weapon requirements by removing any movement or damage penalties, permitting you
|
||||
to use any weapon early.
|
||||
"""
|
||||
display_name = "No Weapon Requirements"
|
||||
|
||||
|
||||
class NoSpellRequirementsOption(Toggle):
|
||||
"""Disable the spell requirements permitting you to use any spell"""
|
||||
"""Disable the spell requirements permitting you to use any spell."""
|
||||
display_name = "No Spell Requirements"
|
||||
|
||||
|
||||
class NoEquipLoadOption(Toggle):
|
||||
"""Disable the equip load constraint from the game"""
|
||||
display_name = "No Equip Load"
|
||||
|
||||
## Weapons
|
||||
|
||||
class RandomizeInfusionOption(Toggle):
|
||||
"""Enable this option to infuse a percentage of the pool of weapons and shields."""
|
||||
display_name = "Randomize Infusion"
|
||||
|
||||
|
||||
class RandomizeInfusionPercentageOption(Range):
|
||||
"""The percentage of weapons/shields in the pool to be infused if Randomize Infusion is toggled"""
|
||||
class RandomizeInfusionPercentageOption(NamedRange):
|
||||
"""The percentage of weapons/shields in the pool to be infused if Randomize Infusion is toggled.
|
||||
"""
|
||||
display_name = "Percentage of Infused Weapons"
|
||||
range_start = 0
|
||||
range_end = 100
|
||||
default = 33
|
||||
# 3/155 weapons are infused in the base game, or about 2%
|
||||
special_range_names = {"similar to base game": 2}
|
||||
|
||||
|
||||
class RandomizeWeaponLevelOption(Choice):
|
||||
"""Enable this option to upgrade a percentage of the pool of weapons to a random value between the minimum and
|
||||
maximum levels defined.
|
||||
"""Enable this option to upgrade a percentage of the pool of weapons to a random value between
|
||||
the minimum and maximum levels defined.
|
||||
|
||||
All: All weapons are eligible, both basic and epic
|
||||
Basic: Only weapons that can be upgraded to +10
|
||||
Epic: Only weapons that can be upgraded to +5"""
|
||||
- **All:** All weapons are eligible, both basic and epic
|
||||
- **Basic:** Only weapons that can be upgraded to +10
|
||||
- **Epic:** Only weapons that can be upgraded to +5
|
||||
"""
|
||||
display_name = "Randomize Weapon Level"
|
||||
option_none = 0
|
||||
option_all = 1
|
||||
@@ -132,7 +139,7 @@ class RandomizeWeaponLevelOption(Choice):
|
||||
|
||||
|
||||
class RandomizeWeaponLevelPercentageOption(Range):
|
||||
"""The percentage of weapons in the pool to be upgraded if randomize weapons level is toggled"""
|
||||
"""The percentage of weapons in the pool to be upgraded if randomize weapons level is toggled."""
|
||||
display_name = "Percentage of Randomized Weapons"
|
||||
range_start = 0
|
||||
range_end = 100
|
||||
@@ -140,7 +147,7 @@ class RandomizeWeaponLevelPercentageOption(Range):
|
||||
|
||||
|
||||
class MinLevelsIn5WeaponPoolOption(Range):
|
||||
"""The minimum upgraded value of a weapon in the pool of weapons that can only reach +5"""
|
||||
"""The minimum upgraded value of a weapon in the pool of weapons that can only reach +5."""
|
||||
display_name = "Minimum Level of +5 Weapons"
|
||||
range_start = 0
|
||||
range_end = 5
|
||||
@@ -148,7 +155,7 @@ class MinLevelsIn5WeaponPoolOption(Range):
|
||||
|
||||
|
||||
class MaxLevelsIn5WeaponPoolOption(Range):
|
||||
"""The maximum upgraded value of a weapon in the pool of weapons that can only reach +5"""
|
||||
"""The maximum upgraded value of a weapon in the pool of weapons that can only reach +5."""
|
||||
display_name = "Maximum Level of +5 Weapons"
|
||||
range_start = 0
|
||||
range_end = 5
|
||||
@@ -156,7 +163,7 @@ class MaxLevelsIn5WeaponPoolOption(Range):
|
||||
|
||||
|
||||
class MinLevelsIn10WeaponPoolOption(Range):
|
||||
"""The minimum upgraded value of a weapon in the pool of weapons that can reach +10"""
|
||||
"""The minimum upgraded value of a weapon in the pool of weapons that can reach +10."""
|
||||
display_name = "Minimum Level of +10 Weapons"
|
||||
range_start = 0
|
||||
range_end = 10
|
||||
@@ -164,72 +171,308 @@ class MinLevelsIn10WeaponPoolOption(Range):
|
||||
|
||||
|
||||
class MaxLevelsIn10WeaponPoolOption(Range):
|
||||
"""The maximum upgraded value of a weapon in the pool of weapons that can reach +10"""
|
||||
"""The maximum upgraded value of a weapon in the pool of weapons that can reach +10."""
|
||||
display_name = "Maximum Level of +10 Weapons"
|
||||
range_start = 0
|
||||
range_end = 10
|
||||
default = 10
|
||||
|
||||
|
||||
class EarlySmallLothricBanner(Choice):
|
||||
"""This option makes it so the user can choose to force the Small Lothric Banner into an early sphere in their world or
|
||||
into an early sphere across all worlds."""
|
||||
display_name = "Early Small Lothric Banner"
|
||||
option_off = 0
|
||||
option_early_global = 1
|
||||
option_early_local = 2
|
||||
default = option_off
|
||||
## Item Smoothing
|
||||
|
||||
class SmoothSoulItemsOption(DefaultOnToggle):
|
||||
"""Distribute soul items in a similar order as the base game.
|
||||
|
||||
By default, soul items will be distributed totally randomly. If this is set, less valuable soul
|
||||
items will generally appear in earlier spheres and more valuable ones will generally appear
|
||||
later.
|
||||
"""
|
||||
display_name = "Smooth Soul Items"
|
||||
|
||||
|
||||
class LateBasinOfVowsOption(Toggle):
|
||||
"""This option makes it so the Basin of Vows is still randomized, but guarantees you that you wont have to venture into
|
||||
Lothric Castle to find your Small Lothric Banner to get out of High Wall of Lothric. So you may find Basin of Vows early,
|
||||
but you wont have to fight Dancer to find your Small Lothric Banner."""
|
||||
display_name = "Late Basin of Vows"
|
||||
class SmoothUpgradeItemsOption(DefaultOnToggle):
|
||||
"""Distribute upgrade items in a similar order as the base game.
|
||||
|
||||
By default, upgrade items will be distributed totally randomly. If this is set, lower-level
|
||||
upgrade items will generally appear in earlier spheres and higher-level ones will generally
|
||||
appear later.
|
||||
"""
|
||||
display_name = "Smooth Upgrade Items"
|
||||
|
||||
|
||||
class LateDLCOption(Toggle):
|
||||
"""This option makes it so you are guaranteed to find your Small Doll without having to venture off into the DLC,
|
||||
effectively putting anything in the DLC in logic after finding both Contraption Key and Small Doll,
|
||||
and being able to get into Irithyll of the Boreal Valley."""
|
||||
display_name = "Late DLC"
|
||||
class SmoothUpgradedWeaponsOption(DefaultOnToggle):
|
||||
"""Distribute upgraded weapons in a similar order as the base game.
|
||||
|
||||
By default, upgraded weapons will be distributed totally randomly. If this is set, lower-level
|
||||
weapons will generally appear in earlier spheres and higher-level ones will generally appear
|
||||
later.
|
||||
"""
|
||||
display_name = "Smooth Upgraded Weapons"
|
||||
|
||||
|
||||
class EnableDLCOption(Toggle):
|
||||
"""To use this option, you must own both the ASHES OF ARIANDEL and the RINGED CITY DLC"""
|
||||
display_name = "Enable DLC"
|
||||
### Enemies
|
||||
|
||||
class RandomizeEnemiesOption(DefaultOnToggle):
|
||||
"""Randomize enemy and boss placements."""
|
||||
display_name = "Randomize Enemies"
|
||||
|
||||
|
||||
dark_souls_options: typing.Dict[str, Option] = {
|
||||
"enable_weapon_locations": RandomizeWeaponLocations,
|
||||
"enable_shield_locations": RandomizeShieldLocations,
|
||||
"enable_armor_locations": RandomizeArmorLocations,
|
||||
"enable_ring_locations": RandomizeRingLocations,
|
||||
"enable_spell_locations": RandomizeSpellLocations,
|
||||
"enable_key_locations": RandomizeKeyLocations,
|
||||
"enable_boss_locations": RandomizeBossSoulLocations,
|
||||
"enable_npc_locations": RandomizeNPCLocations,
|
||||
"enable_misc_locations": RandomizeMiscLocations,
|
||||
"enable_health_upgrade_locations": RandomizeHealthLocations,
|
||||
"enable_progressive_locations": RandomizeProgressiveLocationsOption,
|
||||
"pool_type": PoolTypeOption,
|
||||
"guaranteed_items": GuaranteedItemsOption,
|
||||
"auto_equip": AutoEquipOption,
|
||||
"lock_equip": LockEquipOption,
|
||||
"no_weapon_requirements": NoWeaponRequirementsOption,
|
||||
"randomize_infusion": RandomizeInfusionOption,
|
||||
"randomize_infusion_percentage": RandomizeInfusionPercentageOption,
|
||||
"randomize_weapon_level": RandomizeWeaponLevelOption,
|
||||
"randomize_weapon_level_percentage": RandomizeWeaponLevelPercentageOption,
|
||||
"min_levels_in_5": MinLevelsIn5WeaponPoolOption,
|
||||
"max_levels_in_5": MaxLevelsIn5WeaponPoolOption,
|
||||
"min_levels_in_10": MinLevelsIn10WeaponPoolOption,
|
||||
"max_levels_in_10": MaxLevelsIn10WeaponPoolOption,
|
||||
"early_banner": EarlySmallLothricBanner,
|
||||
"late_basin_of_vows": LateBasinOfVowsOption,
|
||||
"late_dlc": LateDLCOption,
|
||||
"no_spell_requirements": NoSpellRequirementsOption,
|
||||
"no_equip_load": NoEquipLoadOption,
|
||||
"death_link": DeathLink,
|
||||
"enable_dlc": EnableDLCOption,
|
||||
}
|
||||
class SimpleEarlyBossesOption(DefaultOnToggle):
|
||||
"""Avoid replacing Iudex Gundyr and Vordt with late bosses.
|
||||
|
||||
This excludes all bosses after Dancer of the Boreal Valley from these two boss fights. Disable
|
||||
it for a chance at a much harder early game.
|
||||
|
||||
This is ignored unless enemies are randomized.
|
||||
"""
|
||||
display_name = "Simple Early Bosses"
|
||||
|
||||
|
||||
class ScaleEnemiesOption(DefaultOnToggle):
|
||||
"""Scale randomized enemy stats to match the areas in which they appear.
|
||||
|
||||
Disabling this will tend to make the early game much more difficult and the late game much
|
||||
easier.
|
||||
|
||||
This is ignored unless enemies are randomized.
|
||||
"""
|
||||
display_name = "Scale Enemies"
|
||||
|
||||
|
||||
class RandomizeMimicsWithEnemiesOption(Toggle):
|
||||
"""Mix Mimics into the main enemy pool.
|
||||
|
||||
If this is enabled, Mimics will be replaced by normal enemies who drop the Mimic rewards on
|
||||
death, and Mimics will be placed randomly in place of normal enemies. It's recommended to enable
|
||||
Impatient Mimics as well if you enable this.
|
||||
|
||||
This is ignored unless enemies are randomized.
|
||||
"""
|
||||
display_name = "Randomize Mimics With Enemies"
|
||||
|
||||
|
||||
class RandomizeSmallCrystalLizardsWithEnemiesOption(Toggle):
|
||||
"""Mix small Crystal Lizards into the main enemy pool.
|
||||
|
||||
If this is enabled, Crystal Lizards will be replaced by normal enemies who drop the Crystal
|
||||
Lizard rewards on death, and Crystal Lizards will be placed randomly in place of normal enemies.
|
||||
|
||||
This is ignored unless enemies are randomized.
|
||||
"""
|
||||
display_name = "Randomize Small Crystal Lizards With Enemies"
|
||||
|
||||
|
||||
class ReduceHarmlessEnemiesOption(Toggle):
|
||||
"""Reduce the frequency that "harmless" enemies appear.
|
||||
|
||||
Enable this to add a bit of extra challenge. This severely limits the number of enemies that are
|
||||
slow to aggro, slow to attack, and do very little damage that appear in the enemy pool.
|
||||
|
||||
This is ignored unless enemies are randomized.
|
||||
"""
|
||||
display_name = "Reduce Harmless Enemies"
|
||||
|
||||
|
||||
class AllChestsAreMimicsOption(Toggle):
|
||||
"""Replace all chests with mimics that drop the same items.
|
||||
|
||||
If "Randomize Mimics With Enemies" is set, these chests will instead be replaced with random
|
||||
enemies that drop the same items.
|
||||
|
||||
This is ignored unless enemies are randomized.
|
||||
"""
|
||||
display_name = "All Chests Are Mimics"
|
||||
|
||||
|
||||
class ImpatientMimicsOption(Toggle):
|
||||
"""Mimics attack as soon as you get close instead of waiting for you to open them.
|
||||
|
||||
This is ignored unless enemies are randomized.
|
||||
"""
|
||||
display_name = "Impatient Mimics"
|
||||
|
||||
|
||||
class RandomEnemyPresetOption(OptionDict):
|
||||
"""The YAML preset for the static enemy randomizer.
|
||||
|
||||
See the static randomizer documentation in `randomizer\\presets\\README.txt` for details.
|
||||
Include this as nested YAML. For example:
|
||||
|
||||
.. code-block:: YAML
|
||||
|
||||
random_enemy_preset:
|
||||
RemoveSource: Ancient Wyvern; Darkeater Midir
|
||||
DontRandomize: Iudex Gundyr
|
||||
"""
|
||||
display_name = "Random Enemy Preset"
|
||||
supports_weighting = False
|
||||
default = {}
|
||||
|
||||
valid_keys = ["Description", "RecommendFullRandomization", "RecommendNoEnemyProgression",
|
||||
"OopsAll", "Boss", "Miniboss", "Basic", "BuffBasicEnemiesAsBosses",
|
||||
"DontRandomize", "RemoveSource", "Enemies"]
|
||||
|
||||
@classmethod
|
||||
def get_option_name(cls, value: Dict[str, Any]) -> str:
|
||||
return json.dumps(value)
|
||||
|
||||
|
||||
## Item & Location
|
||||
|
||||
class DS3ExcludeLocations(ExcludeLocations):
|
||||
"""Prevent these locations from having an important item."""
|
||||
default = frozenset({"Hidden", "Small Crystal Lizards", "Upgrade", "Small Souls", "Miscellaneous"})
|
||||
|
||||
|
||||
class ExcludedLocationBehaviorOption(Choice):
|
||||
"""How to choose items for excluded locations in DS3.
|
||||
|
||||
- **Allow Useful:** Excluded locations can't have progression items, but they can have useful
|
||||
items.
|
||||
- **Forbid Useful:** Neither progression items nor useful items can be placed in excluded
|
||||
locations.
|
||||
- **Do Not Randomize:** Excluded locations always contain the same item as in vanilla Dark Souls
|
||||
III.
|
||||
|
||||
A "progression item" is anything that's required to unlock another location in some game. A
|
||||
"useful item" is something each game defines individually, usually items that are quite
|
||||
desirable but not strictly necessary.
|
||||
"""
|
||||
display_name = "Excluded Locations Behavior"
|
||||
option_allow_useful = 1
|
||||
option_forbid_useful = 2
|
||||
option_do_not_randomize = 3
|
||||
default = 2
|
||||
|
||||
|
||||
class MissableLocationBehaviorOption(Choice):
|
||||
"""Which items can be placed in locations that can be permanently missed.
|
||||
|
||||
- **Allow Useful:** Missable locations can't have progression items, but they can have useful
|
||||
items.
|
||||
- **Forbid Useful:** Neither progression items nor useful items can be placed in missable
|
||||
locations.
|
||||
- **Do Not Randomize:** Missable locations always contain the same item as in vanilla Dark Souls
|
||||
III.
|
||||
|
||||
A "progression item" is anything that's required to unlock another location in some game. A
|
||||
"useful item" is something each game defines individually, usually items that are quite
|
||||
desirable but not strictly necessary.
|
||||
"""
|
||||
display_name = "Missable Locations Behavior"
|
||||
option_allow_useful = 1
|
||||
option_forbid_useful = 2
|
||||
option_do_not_randomize = 3
|
||||
default = 2
|
||||
|
||||
|
||||
@dataclass
|
||||
class DarkSouls3Options(PerGameCommonOptions):
|
||||
# Game Options
|
||||
early_banner: EarlySmallLothricBanner
|
||||
late_basin_of_vows: LateBasinOfVowsOption
|
||||
late_dlc: LateDLCOption
|
||||
death_link: DeathLink
|
||||
enable_dlc: EnableDLCOption
|
||||
enable_ngp: EnableNGPOption
|
||||
|
||||
# Equipment
|
||||
random_starting_loadout: RandomizeStartingLoadout
|
||||
require_one_handed_starting_weapons: RequireOneHandedStartingWeapons
|
||||
auto_equip: AutoEquipOption
|
||||
lock_equip: LockEquipOption
|
||||
no_equip_load: NoEquipLoadOption
|
||||
no_weapon_requirements: NoWeaponRequirementsOption
|
||||
no_spell_requirements: NoSpellRequirementsOption
|
||||
|
||||
# Weapons
|
||||
randomize_infusion: RandomizeInfusionOption
|
||||
randomize_infusion_percentage: RandomizeInfusionPercentageOption
|
||||
randomize_weapon_level: RandomizeWeaponLevelOption
|
||||
randomize_weapon_level_percentage: RandomizeWeaponLevelPercentageOption
|
||||
min_levels_in_5: MinLevelsIn5WeaponPoolOption
|
||||
max_levels_in_5: MaxLevelsIn5WeaponPoolOption
|
||||
min_levels_in_10: MinLevelsIn10WeaponPoolOption
|
||||
max_levels_in_10: MaxLevelsIn10WeaponPoolOption
|
||||
|
||||
# Item Smoothing
|
||||
smooth_soul_items: SmoothSoulItemsOption
|
||||
smooth_upgrade_items: SmoothUpgradeItemsOption
|
||||
smooth_upgraded_weapons: SmoothUpgradedWeaponsOption
|
||||
|
||||
# Enemies
|
||||
randomize_enemies: RandomizeEnemiesOption
|
||||
simple_early_bosses: SimpleEarlyBossesOption
|
||||
scale_enemies: ScaleEnemiesOption
|
||||
randomize_mimics_with_enemies: RandomizeMimicsWithEnemiesOption
|
||||
randomize_small_crystal_lizards_with_enemies: RandomizeSmallCrystalLizardsWithEnemiesOption
|
||||
reduce_harmless_enemies: ReduceHarmlessEnemiesOption
|
||||
all_chests_are_mimics: AllChestsAreMimicsOption
|
||||
impatient_mimics: ImpatientMimicsOption
|
||||
random_enemy_preset: RandomEnemyPresetOption
|
||||
|
||||
# Item & Location
|
||||
exclude_locations: DS3ExcludeLocations
|
||||
excluded_location_behavior: ExcludedLocationBehaviorOption
|
||||
missable_location_behavior: MissableLocationBehaviorOption
|
||||
|
||||
# Removed
|
||||
pool_type: Removed
|
||||
enable_weapon_locations: Removed
|
||||
enable_shield_locations: Removed
|
||||
enable_armor_locations: Removed
|
||||
enable_ring_locations: Removed
|
||||
enable_spell_locations: Removed
|
||||
enable_key_locations: Removed
|
||||
enable_boss_locations: Removed
|
||||
enable_npc_locations: Removed
|
||||
enable_misc_locations: Removed
|
||||
enable_health_upgrade_locations: Removed
|
||||
enable_progressive_locations: Removed
|
||||
guaranteed_items: Removed
|
||||
excluded_locations: Removed
|
||||
missable_locations: Removed
|
||||
|
||||
|
||||
option_groups = [
|
||||
OptionGroup("Equipment", [
|
||||
RandomizeStartingLoadout,
|
||||
RequireOneHandedStartingWeapons,
|
||||
AutoEquipOption,
|
||||
LockEquipOption,
|
||||
NoEquipLoadOption,
|
||||
NoWeaponRequirementsOption,
|
||||
NoSpellRequirementsOption,
|
||||
]),
|
||||
OptionGroup("Weapons", [
|
||||
RandomizeInfusionOption,
|
||||
RandomizeInfusionPercentageOption,
|
||||
RandomizeWeaponLevelOption,
|
||||
RandomizeWeaponLevelPercentageOption,
|
||||
MinLevelsIn5WeaponPoolOption,
|
||||
MaxLevelsIn5WeaponPoolOption,
|
||||
MinLevelsIn10WeaponPoolOption,
|
||||
MaxLevelsIn10WeaponPoolOption,
|
||||
]),
|
||||
OptionGroup("Item Smoothing", [
|
||||
SmoothSoulItemsOption,
|
||||
SmoothUpgradeItemsOption,
|
||||
SmoothUpgradedWeaponsOption,
|
||||
]),
|
||||
OptionGroup("Enemies", [
|
||||
RandomizeEnemiesOption,
|
||||
SimpleEarlyBossesOption,
|
||||
ScaleEnemiesOption,
|
||||
RandomizeMimicsWithEnemiesOption,
|
||||
RandomizeSmallCrystalLizardsWithEnemiesOption,
|
||||
ReduceHarmlessEnemiesOption,
|
||||
AllChestsAreMimicsOption,
|
||||
ImpatientMimicsOption,
|
||||
RandomEnemyPresetOption,
|
||||
]),
|
||||
OptionGroup("Item & Location Options", [
|
||||
DS3ExcludeLocations,
|
||||
ExcludedLocationBehaviorOption,
|
||||
MissableLocationBehaviorOption,
|
||||
])
|
||||
]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
97
worlds/dark_souls_3/detailed_location_descriptions.py
Normal file
97
worlds/dark_souls_3/detailed_location_descriptions.py
Normal file
@@ -0,0 +1,97 @@
|
||||
# python -m worlds.dark_souls_3.detailed_location_descriptions \
|
||||
# worlds/dark_souls_3/detailed_location_descriptions.py
|
||||
#
|
||||
# This script downloads the static randomizer's descriptions for each location and adds them to
|
||||
# the location documentation.
|
||||
|
||||
from collections import defaultdict
|
||||
import html
|
||||
import os
|
||||
import re
|
||||
import requests
|
||||
import yaml
|
||||
|
||||
from .Locations import location_dictionary
|
||||
|
||||
|
||||
location_re = re.compile(r'^([A-Z0-9]+): (.*?)(?:$| - )')
|
||||
|
||||
if __name__ == '__main__':
|
||||
# TODO: update this to the main branch of the main randomizer once Archipelago support is merged
|
||||
url = 'https://raw.githubusercontent.com/nex3/SoulsRandomizers/archipelago-server/dist/Base/annotations.txt'
|
||||
response = requests.get(url)
|
||||
if response.status_code != 200:
|
||||
raise Exception(f"Got {response.status_code} when downloading static randomizer locations")
|
||||
annotations = yaml.load(response.text, Loader=yaml.Loader)
|
||||
|
||||
static_to_archi_regions = {
|
||||
area['Name']: area['Archipelago']
|
||||
for area in annotations['Areas']
|
||||
}
|
||||
|
||||
descriptions_by_key = {slot['Key']: slot['Text'] for slot in annotations['Slots']}
|
||||
|
||||
# A map from (region, item name) pairs to all the descriptions that match those pairs.
|
||||
descriptions_by_location = defaultdict(list)
|
||||
|
||||
# A map from item names to all the descriptions for those item names.
|
||||
descriptions_by_item = defaultdict(list)
|
||||
|
||||
for slot in annotations['Slots']:
|
||||
region = static_to_archi_regions[slot['Area']]
|
||||
for item in slot['DebugText']:
|
||||
name = item.split(" - ")[0]
|
||||
descriptions_by_location[(region, name)].append(slot['Text'])
|
||||
descriptions_by_item[name].append(slot['Text'])
|
||||
counts_by_location = {
|
||||
location: len(descriptions) for (location, descriptions) in descriptions_by_location.items()
|
||||
}
|
||||
|
||||
location_names_to_descriptions = {}
|
||||
for location in location_dictionary.values():
|
||||
if location.ap_code is None: continue
|
||||
if location.static:
|
||||
location_names_to_descriptions[location.name] = descriptions_by_key[location.static]
|
||||
continue
|
||||
|
||||
match = location_re.match(location.name)
|
||||
if not match:
|
||||
raise Exception(f"Location name \"{location.name}\" doesn't match expected format.")
|
||||
|
||||
item_candidates = descriptions_by_item[match[2]]
|
||||
if len(item_candidates) == 1:
|
||||
location_names_to_descriptions[location.name] = item_candidates[0]
|
||||
continue
|
||||
|
||||
key = (match[1], match[2])
|
||||
if key not in descriptions_by_location:
|
||||
raise Exception(f'No static randomizer location found matching "{match[1]}: {match[2]}".')
|
||||
|
||||
candidates = descriptions_by_location[key]
|
||||
if len(candidates) == 0:
|
||||
raise Exception(
|
||||
f'There are only {counts_by_location[key]} locations in the static randomizer ' +
|
||||
f'matching "{match[1]}: {match[2]}", but there are more in Archipelago.'
|
||||
)
|
||||
|
||||
location_names_to_descriptions[location.name] = candidates.pop(0)
|
||||
|
||||
table = "<table><tr><th>Location name</th><th>Detailed description</th>\n"
|
||||
for (name, description) in sorted(
|
||||
location_names_to_descriptions.items(),
|
||||
key = lambda pair: pair[0]
|
||||
):
|
||||
table += f"<tr><td>{html.escape(name)}</td><td>{html.escape(description)}</td></tr>\n"
|
||||
table += "</table>\n"
|
||||
|
||||
with open(os.path.join(os.path.dirname(__file__), 'docs/locations_en.md'), 'r+') as f:
|
||||
original = f.read()
|
||||
start_flag = "<!-- begin location table -->\n"
|
||||
start = original.index(start_flag) + len(start_flag)
|
||||
end = original.index("<!-- end location table -->")
|
||||
|
||||
f.seek(0)
|
||||
f.write(original[:start] + table + original[end:])
|
||||
f.truncate()
|
||||
|
||||
print("Updated docs/locations_en.md!")
|
||||
@@ -1,28 +1,201 @@
|
||||
# Dark Souls III
|
||||
|
||||
Game Page | [Items] | [Locations]
|
||||
|
||||
[Items]: /tutorial/Dark%20Souls%20III/items/en
|
||||
[Locations]: /tutorial/Dark%20Souls%20III/locations/en
|
||||
|
||||
## What do I need to do to randomize DS3?
|
||||
|
||||
See full instructions on [the setup page].
|
||||
|
||||
[the setup page]: /tutorial/Dark%20Souls%20III/setup/en
|
||||
|
||||
## Where is the options page?
|
||||
|
||||
The [player options page for this game](../player-options) contains all the options you need to configure and export a
|
||||
config file.
|
||||
The [player options page for this game][options] contains all the options you
|
||||
need to configure and export a config file.
|
||||
|
||||
[options]: ../player-options
|
||||
|
||||
## What does randomization do to this game?
|
||||
|
||||
Items that can be picked up from static corpses, taken from chests, or earned from defeating enemies or NPCs can be
|
||||
randomized. Common pickups like titanite shards or firebombs can be randomized as "progressive" items. That is, the
|
||||
location "Titanite Shard #5" is the fifth titanite shard you pick up, no matter where it was from. This is also what
|
||||
happens when you randomize Estus Shards and Undead Bone Shards.
|
||||
1. All item locations are randomized, including those in the overworld, in
|
||||
shops, and dropped by enemies. Most locations can contain games from other
|
||||
worlds, and any items from your world can appear in other players' worlds.
|
||||
|
||||
It's also possible to randomize the upgrade level of weapons and shields as well as their infusions (if they can have
|
||||
one). Additionally, there are options that can make the randomized experience more convenient or more interesting, such as
|
||||
removing weapon requirements or auto-equipping whatever equipment you most recently received.
|
||||
2. By default, all enemies and bosses are randomized. This can be disabled by
|
||||
setting "Randomize Enemies" to false.
|
||||
|
||||
The goal is to find the four "Cinders of a Lord" items randomized into the multiworld and defeat the Soul of Cinder.
|
||||
3. By default, the starting equipment for each class is randomized. This can be
|
||||
disabled by setting "Randomize Starting Loadout" to false.
|
||||
|
||||
## What Dark Souls III items can appear in other players' worlds?
|
||||
4. By setting the "Randomize Weapon Level" or "Randomize Infusion" options, you
|
||||
can randomize whether the weapons you find will be upgraded or infused.
|
||||
|
||||
Practically anything can be found in other worlds including pieces of armor, upgraded weapons, key items, consumables,
|
||||
spells, upgrade materials, etc...
|
||||
There are also options that can make playing the game more convenient or
|
||||
bring a new experience, like removing equip loads or auto-equipping weapons as
|
||||
you pick them up. Check out [the options page][options] for more!
|
||||
|
||||
## What does another world's item look like in Dark Souls III?
|
||||
## What's the goal?
|
||||
|
||||
In Dark Souls III, items which are sent to other worlds appear as Prism Stones.
|
||||
Your goal is to find the four "Cinders of a Lord" items randomized into the
|
||||
multiworld and defeat the boss in the Kiln of the First Flame.
|
||||
|
||||
## Do I have to check every item in every area?
|
||||
|
||||
Dark Souls III has about 1500 item locations, which is a lot of checks for a
|
||||
single run! But you don't necessarily need to check all of them. Locations that
|
||||
you can potentially miss, such as rewards for failable quests or soul
|
||||
transposition items, will _never_ have items required for any game to progress.
|
||||
The following types of locations are also guaranteed not to contain progression
|
||||
items by default:
|
||||
|
||||
* **Hidden:** Locations that are particularly difficult to find, such as behind
|
||||
illusory walls, down hidden drops, and so on. Does not include large locations
|
||||
like Untended Graves or Archdragon Peak.
|
||||
|
||||
* **Small Crystal Lizards:** Drops from small crystal lizards.
|
||||
|
||||
* **Upgrade:** Locations that contain upgrade items in vanilla, including
|
||||
titanite, gems, and Shriving Stones.
|
||||
|
||||
* **Small Souls:** Locations that contain soul items in vanilla, not including
|
||||
boss souls.
|
||||
|
||||
* **Miscellaneous:** Locations that contain generic stackable items in vanilla,
|
||||
such as arrows, firebombs, buffs, and so on.
|
||||
|
||||
You can customize which locations are guaranteed not to contain progression
|
||||
items by setting the `exclude_locations` field in your YAML to the [location
|
||||
groups] you want to omit. For example, this is the default setting but without
|
||||
"Hidden" so that hidden locations can contain progression items:
|
||||
|
||||
[location groups]: /tutorial/Dark%20Souls%20III/locations/en#location-groups
|
||||
|
||||
```yaml
|
||||
Dark Souls III:
|
||||
exclude_locations:
|
||||
- Small Crystal Lizards
|
||||
- Upgrade
|
||||
- Small Souls
|
||||
- Miscellaneous
|
||||
```
|
||||
|
||||
This allows _all_ non-missable locations to have progression items, if you're in
|
||||
for the long haul:
|
||||
|
||||
```yaml
|
||||
Dark Souls III:
|
||||
exclude_locations: []
|
||||
```
|
||||
|
||||
## What if I don't want to do the whole game?
|
||||
|
||||
If you want a shorter DS3 randomizer experience, you can exclude entire regions
|
||||
from containing progression items. The items and enemies from those regions will
|
||||
still be included in the randomization pool, but none of them will be mandatory.
|
||||
For example, the following configuration just requires you to play the game
|
||||
through Irithyll of the Boreal Valley:
|
||||
|
||||
```yaml
|
||||
Dark Souls III:
|
||||
# Enable the DLC so it's included in the randomization pool
|
||||
enable_dlc: true
|
||||
|
||||
exclude_locations:
|
||||
# Exclude late-game and DLC regions
|
||||
- Anor Londo
|
||||
- Lothric Castle
|
||||
- Consumed King's Garden
|
||||
- Untended Graves
|
||||
- Grand Archives
|
||||
- Archdragon Peak
|
||||
- Painted World of Ariandel
|
||||
- Dreg Heap
|
||||
- Ringed City
|
||||
|
||||
# Default exclusions
|
||||
- Hidden
|
||||
- Small Crystal Lizards
|
||||
- Upgrade
|
||||
- Small Souls
|
||||
- Miscellaneous
|
||||
```
|
||||
|
||||
## Where can I learn more about Dark Souls III locations?
|
||||
|
||||
Location names have to pack a lot of information into very little space. To
|
||||
better understand them, check out the [location guide], which explains all the
|
||||
names used in locations and provides more detailed descriptions for each
|
||||
individual location.
|
||||
|
||||
[location guide]: /tutorial/Dark%20Souls%20III/locations/en
|
||||
|
||||
## Where can I learn more about Dark Souls III items?
|
||||
|
||||
Check out the [item guide], which explains the named groups available for items.
|
||||
|
||||
[item guide]: /tutorial/Dark%20Souls%20III/items/en
|
||||
|
||||
## What's new from 2.x.x?
|
||||
|
||||
Version 3.0.0 of the Dark Souls III Archipelago client has a number of
|
||||
substantial differences with the older 2.x.x versions. Improvements include:
|
||||
|
||||
* Support for randomizing all item locations, not just unique items.
|
||||
|
||||
* Support for randomizing items in shops, starting loadouts, Path of the Dragon,
|
||||
and more.
|
||||
|
||||
* Built-in integration with the enemy randomizer, including consistent seeding
|
||||
for races.
|
||||
|
||||
* Support for the latest patch for Dark Souls III, 1.15.2. Older patches are
|
||||
*not* supported.
|
||||
|
||||
* Optional smooth distribution for upgrade items, upgraded weapons, and soul
|
||||
items so you're more likely to see weaker items earlier and more powerful
|
||||
items later.
|
||||
|
||||
* More detailed location names that indicate where a location is, not just what
|
||||
it replaces.
|
||||
|
||||
* Other players' item names are visible in DS3.
|
||||
|
||||
* If you pick up items while static, they'll still send once you reconnect.
|
||||
|
||||
However, 2.x.x YAMLs are not compatible with 3.0.0. You'll need to [generate a
|
||||
new YAML configuration] for use with 3.x.x.
|
||||
|
||||
[generating a new YAML configuration]: /games/Dark%20Souls%20III/player-options
|
||||
|
||||
The following options have been removed:
|
||||
|
||||
* `enable_boss_locations` is now controlled by the `soul_locations` option.
|
||||
|
||||
* `enable_progressive_locations` was removed because all locations are now
|
||||
individually randomized rather than replaced with a progressive list.
|
||||
|
||||
* `pool_type` has been removed. Since there are no longer any non-randomized
|
||||
items in randomized categories, there's not a meaningful distinction between
|
||||
"shuffle" and "various" mode.
|
||||
|
||||
* `enable_*_locations` options have all been removed. Instead, you can now add
|
||||
[location group names] to the `exclude_locations` option to prevent them from
|
||||
containing important items.
|
||||
|
||||
[location group names]: /tutorial/Dark%20Souls%20III/locations/en#location-groups
|
||||
|
||||
By default, the Hidden, Small Crystal Lizards, Upgrade, Small Souls, and
|
||||
Miscellaneous groups are in `exclude_locations`. Once you've chosen your
|
||||
excluded locations, you can set `excluded_locations: unrandomized` to preserve
|
||||
the default vanilla item placements for all excluded locations.
|
||||
|
||||
* `guaranteed_items`: In almost all cases, all items from the base game are now
|
||||
included somewhere in the multiworld.
|
||||
|
||||
In addition, the following options have changed:
|
||||
|
||||
* The location names used in options like `exclude_locations` have changed. See
|
||||
the [location guide] for a full description.
|
||||
|
||||
24
worlds/dark_souls_3/docs/items_en.md
Normal file
24
worlds/dark_souls_3/docs/items_en.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Dark Souls III Items
|
||||
|
||||
[Game Page] | Items | [Locations]
|
||||
|
||||
[Game Page]: /games/Dark%20Souls%20III/info/en
|
||||
[Locations]: /tutorial/Dark%20Souls%20III/locations/en
|
||||
|
||||
## Item Groups
|
||||
|
||||
The Dark Souls III randomizer supports a number of item group names, which can
|
||||
be used in YAML options like `local_items` to refer to many items at once:
|
||||
|
||||
* **Progression:** Items which unlock locations.
|
||||
* **Cinders:** All four Cinders of a Lord. Once you have these four, you can
|
||||
fight Soul of Cinder and win the game.
|
||||
* **Miscellaneous:** Generic stackable items, such as arrows, firebombs, buffs,
|
||||
and so on.
|
||||
* **Unique:** Items that are unique per NG cycle, such as scrolls, keys, ashes,
|
||||
and so on. Doesn't include equipment, spells, or souls.
|
||||
* **Boss Souls:** Souls that can be traded with Ludleth, including Soul of
|
||||
Rosaria.
|
||||
* **Small Souls:** Soul items, not including boss souls.
|
||||
* **Upgrade:** Upgrade items, including titanite, gems, and Shriving Stones.
|
||||
* **Healing:** Undead Bone Shards and Estus Shards.
|
||||
2276
worlds/dark_souls_3/docs/locations_en.md
Normal file
2276
worlds/dark_souls_3/docs/locations_en.md
Normal file
File diff suppressed because it is too large
Load Diff
@@ -7,48 +7,49 @@
|
||||
|
||||
## Optional Software
|
||||
|
||||
- [Dark Souls III Maptracker Pack](https://github.com/Br00ty/DS3_AP_Maptracker/releases/latest), for use with [Poptracker](https://github.com/black-sliver/PopTracker/releases)
|
||||
- Map tracker not yet updated for 3.0.0
|
||||
|
||||
## General Concept
|
||||
## Setting Up
|
||||
|
||||
<span style="color:#ff7800">
|
||||
**This mod can ban you permanently from the FromSoftware servers if used online.**
|
||||
</span>
|
||||
The Dark Souls III AP Client is a dinput8.dll triggered when launching Dark Souls III. This .dll file will launch a command
|
||||
prompt where you can read information about your run and write any command to interact with the Archipelago server.
|
||||
First, download the client from the link above. It doesn't need to go into any particular directory;
|
||||
it'll automatically locate _Dark Souls III_ in your Steam installation folder.
|
||||
|
||||
This client has only been tested with the Official Steam version of the game at version 1.15. It does not matter which DLCs are installed. However, you will have to downpatch your Dark Souls III installation from current patch.
|
||||
Version 3.0.0 of the randomizer _only_ supports the latest version of _Dark Souls III_, 1.15.2. This
|
||||
is the latest version, so you don't need to do any downpatching! However, if you've already
|
||||
downpatched your game to use an older version of the randomizer, you'll need to reinstall the latest
|
||||
version before using this version.
|
||||
|
||||
## Downpatching Dark Souls III
|
||||
### One-Time Setup
|
||||
|
||||
To downpatch DS3 for use with Archipelago, use the following instructions from the speedsouls wiki database.
|
||||
Before you first connect to a multiworld, you need to generate the local data files for your world's
|
||||
randomized item and (optionally) enemy locations. You only need to do this once per multiworld.
|
||||
|
||||
1. Launch Steam (in online mode).
|
||||
2. Press the Windows Key + R. This will open the Run window.
|
||||
3. Open the Steam console by typing the following string: `steam://open/console`. Steam should now open in Console Mode.
|
||||
4. Insert the string of the depot you wish to download. For the AP-supported v1.15, you will want to use: `download_depot 374320 374321 4471176929659548333`.
|
||||
5. Steam will now download the depot. Note: There is no progress bar for the download in Steam, but it is still downloading in the background.
|
||||
6. Back up your existing game executable (`DarkSoulsIII.exe`) found in `\Steam\steamapps\common\DARK SOULS III\Game`. Easiest way to do this is to move it to another directory. If you have file extensions enabled, you can instead rename the executable to `DarkSoulsIII.exe.bak`.
|
||||
7. Return to the Steam console. Once the download is complete, it should say so along with the temporary local directory in which the depot has been stored. This is usually something like `\Steam\steamapps\content\app_XXXXXX\depot_XXXXXX`.
|
||||
8. Take the `DarkSoulsIII.exe` from that folder and place it in `\Steam\steamapps\common\DARK SOULS III\Game`.
|
||||
9. Back up and delete your save file (`DS30000.sl2`) in AppData. AppData is hidden by default. To locate it, press Windows Key + R, type `%appdata%` and hit enter. Alternatively: open File Explorer > View > Hidden Items and follow `C:\Users\<your_username>\AppData\Roaming\DarkSoulsIII\<numbers>`.
|
||||
10. If you did all these steps correctly, you should be able to confirm your game version in the upper-left corner after launching Dark Souls III.
|
||||
1. Before you first connect to a multiworld, run `randomizer\DS3Randomizer.exe`.
|
||||
|
||||
2. Put in your Archipelago room address (usually something like `archipelago.gg:12345`), your player
|
||||
name (also known as your "slot name"), and your password if you have one.
|
||||
|
||||
## Installing the Archipelago mod
|
||||
3. Click "Load" and wait a minute or two.
|
||||
|
||||
Get the `dinput8.dll` from the [Dark Souls III AP Client](https://github.com/Marechal-L/Dark-Souls-III-Archipelago-client/releases) and
|
||||
add it at the root folder of your game (e.g. `SteamLibrary\steamapps\common\DARK SOULS III\Game`)
|
||||
### Running and Connecting the Game
|
||||
|
||||
## Joining a MultiWorld Game
|
||||
To run _Dark Souls III_ in Archipelago mode:
|
||||
|
||||
1. Run Steam in offline mode to avoid being banned.
|
||||
2. Launch Dark Souls III.
|
||||
3. Type in `/connect {SERVER_IP}:{SERVER_PORT} {SLOT_NAME} password:{PASSWORD}` in the "Windows Command Prompt" that opened. For example: `/connect archipelago.gg:38281 "Example Name" password:"Example Password"`. The password parameter is only necessary if your game requires one.
|
||||
4. Once connected, create a new game, choose a class and wait for the others before starting.
|
||||
5. You can quit and launch at anytime during a game.
|
||||
1. Start Steam. **Do not run in offline mode.** The mod will make sure you don't connect to the
|
||||
DS3 servers, and running Steam in offline mode will make certain scripted invaders fail to spawn.
|
||||
|
||||
## Where do I get a config file?
|
||||
2. Run `launchmod_darksouls3.bat`. This will start _Dark Souls III_ as well as a command prompt that
|
||||
you can use to interact with the Archipelago server.
|
||||
|
||||
3. Type `/connect {SERVER_IP}:{SERVER_PORT} {SLOT_NAME}` into the command prompt, with the
|
||||
appropriate values filled in. For example: `/connect archipelago.gg:24242 PlayerName`.
|
||||
|
||||
4. Start playing as normal. An "Archipelago connected" message will appear onscreen once you have
|
||||
control of your character and the connection is established.
|
||||
|
||||
## Frequently Asked Questions
|
||||
|
||||
### Where do I get a config file?
|
||||
|
||||
The [Player Options](/games/Dark%20Souls%20III/player-options) page on the website allows you to
|
||||
configure your personal options and export them into a config file.
|
||||
|
||||
27
worlds/dark_souls_3/test/TestDarkSouls3.py
Normal file
27
worlds/dark_souls_3/test/TestDarkSouls3.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from test.TestBase import WorldTestBase
|
||||
|
||||
from worlds.dark_souls_3.Items import item_dictionary
|
||||
from worlds.dark_souls_3.Locations import location_tables
|
||||
from worlds.dark_souls_3.Bosses import all_bosses
|
||||
|
||||
class DarkSouls3Test(WorldTestBase):
|
||||
game = "Dark Souls III"
|
||||
|
||||
def testLocationDefaultItems(self):
|
||||
for locations in location_tables.values():
|
||||
for location in locations:
|
||||
if location.default_item_name:
|
||||
self.assertIn(location.default_item_name, item_dictionary)
|
||||
|
||||
def testLocationsUnique(self):
|
||||
names = set()
|
||||
for locations in location_tables.values():
|
||||
for location in locations:
|
||||
self.assertNotIn(location.name, names)
|
||||
names.add(location.name)
|
||||
|
||||
def testBossLocations(self):
|
||||
all_locations = {location.name for locations in location_tables.values() for location in locations}
|
||||
for boss in all_bosses:
|
||||
for location in boss.locations:
|
||||
self.assertIn(location, all_locations)
|
||||
0
worlds/dark_souls_3/test/__init__.py
Normal file
0
worlds/dark_souls_3/test/__init__.py
Normal file
@@ -8,11 +8,15 @@ from .Locations import DLCQuestLocation, location_table
|
||||
from .Options import DLCQuestOptions
|
||||
from .Regions import create_regions
|
||||
from .Rules import set_rules
|
||||
from .presets import dlcq_options_presets
|
||||
from .option_groups import dlcq_option_groups
|
||||
|
||||
client_version = 0
|
||||
|
||||
|
||||
class DLCqwebworld(WebWorld):
|
||||
options_presets = dlcq_options_presets
|
||||
option_groups = dlcq_option_groups
|
||||
setup_en = Tutorial(
|
||||
"Multiworld Setup Guide",
|
||||
"A guide to setting up the Archipelago DLCQuest game on your computer.",
|
||||
|
||||
27
worlds/dlcquest/option_groups.py
Normal file
27
worlds/dlcquest/option_groups.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from typing import List
|
||||
|
||||
from Options import ProgressionBalancing, Accessibility, OptionGroup
|
||||
from .Options import (Campaign, ItemShuffle, TimeIsMoney, EndingChoice, PermanentCoins, DoubleJumpGlitch, CoinSanity,
|
||||
CoinSanityRange, DeathLink)
|
||||
|
||||
dlcq_option_groups: List[OptionGroup] = [
|
||||
OptionGroup("General", [
|
||||
Campaign,
|
||||
ItemShuffle,
|
||||
CoinSanity,
|
||||
]),
|
||||
OptionGroup("Customization", [
|
||||
EndingChoice,
|
||||
PermanentCoins,
|
||||
CoinSanityRange,
|
||||
]),
|
||||
OptionGroup("Tedious and Grind", [
|
||||
TimeIsMoney,
|
||||
DoubleJumpGlitch,
|
||||
]),
|
||||
OptionGroup("Advanced Options", [
|
||||
DeathLink,
|
||||
ProgressionBalancing,
|
||||
Accessibility,
|
||||
]),
|
||||
]
|
||||
68
worlds/dlcquest/presets.py
Normal file
68
worlds/dlcquest/presets.py
Normal file
@@ -0,0 +1,68 @@
|
||||
from typing import Any, Dict
|
||||
|
||||
from .Options import DoubleJumpGlitch, CoinSanity, CoinSanityRange, PermanentCoins, TimeIsMoney, EndingChoice, Campaign, ItemShuffle
|
||||
|
||||
all_random_settings = {
|
||||
DoubleJumpGlitch.internal_name: "random",
|
||||
CoinSanity.internal_name: "random",
|
||||
CoinSanityRange.internal_name: "random",
|
||||
PermanentCoins.internal_name: "random",
|
||||
TimeIsMoney.internal_name: "random",
|
||||
EndingChoice.internal_name: "random",
|
||||
Campaign.internal_name: "random",
|
||||
ItemShuffle.internal_name: "random",
|
||||
"death_link": "random",
|
||||
}
|
||||
|
||||
main_campaign_settings = {
|
||||
DoubleJumpGlitch.internal_name: DoubleJumpGlitch.option_none,
|
||||
CoinSanity.internal_name: CoinSanity.option_coin,
|
||||
CoinSanityRange.internal_name: 30,
|
||||
PermanentCoins.internal_name: PermanentCoins.option_false,
|
||||
TimeIsMoney.internal_name: TimeIsMoney.option_required,
|
||||
EndingChoice.internal_name: EndingChoice.option_true,
|
||||
Campaign.internal_name: Campaign.option_basic,
|
||||
ItemShuffle.internal_name: ItemShuffle.option_shuffled,
|
||||
}
|
||||
|
||||
lfod_campaign_settings = {
|
||||
DoubleJumpGlitch.internal_name: DoubleJumpGlitch.option_none,
|
||||
CoinSanity.internal_name: CoinSanity.option_coin,
|
||||
CoinSanityRange.internal_name: 30,
|
||||
PermanentCoins.internal_name: PermanentCoins.option_false,
|
||||
TimeIsMoney.internal_name: TimeIsMoney.option_required,
|
||||
EndingChoice.internal_name: EndingChoice.option_true,
|
||||
Campaign.internal_name: Campaign.option_live_freemium_or_die,
|
||||
ItemShuffle.internal_name: ItemShuffle.option_shuffled,
|
||||
}
|
||||
|
||||
easy_settings = {
|
||||
DoubleJumpGlitch.internal_name: DoubleJumpGlitch.option_none,
|
||||
CoinSanity.internal_name: CoinSanity.option_none,
|
||||
CoinSanityRange.internal_name: 40,
|
||||
PermanentCoins.internal_name: PermanentCoins.option_true,
|
||||
TimeIsMoney.internal_name: TimeIsMoney.option_required,
|
||||
EndingChoice.internal_name: EndingChoice.option_true,
|
||||
Campaign.internal_name: Campaign.option_both,
|
||||
ItemShuffle.internal_name: ItemShuffle.option_shuffled,
|
||||
}
|
||||
|
||||
hard_settings = {
|
||||
DoubleJumpGlitch.internal_name: DoubleJumpGlitch.option_simple,
|
||||
CoinSanity.internal_name: CoinSanity.option_coin,
|
||||
CoinSanityRange.internal_name: 30,
|
||||
PermanentCoins.internal_name: PermanentCoins.option_false,
|
||||
TimeIsMoney.internal_name: TimeIsMoney.option_optional,
|
||||
EndingChoice.internal_name: EndingChoice.option_true,
|
||||
Campaign.internal_name: Campaign.option_both,
|
||||
ItemShuffle.internal_name: ItemShuffle.option_shuffled,
|
||||
}
|
||||
|
||||
|
||||
dlcq_options_presets: Dict[str, Dict[str, Any]] = {
|
||||
"All random": all_random_settings,
|
||||
"Main campaign": main_campaign_settings,
|
||||
"LFOD campaign": lfod_campaign_settings,
|
||||
"Both easy": easy_settings,
|
||||
"Both hard": hard_settings,
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## Required Software
|
||||
|
||||
- [DOOM 1993 (e.g. Steam version)](https://store.steampowered.com/app/2280/DOOM_1993/)
|
||||
- [DOOM 1993 (e.g. Steam version)](https://store.steampowered.com/app/2280/DOOM__DOOM_II/)
|
||||
- [Archipelago Crispy DOOM](https://github.com/Daivuk/apdoom/releases)
|
||||
|
||||
## Optional Software
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## Required Software
|
||||
|
||||
- [DOOM II (e.g. Steam version)](https://store.steampowered.com/app/2300/DOOM_II/)
|
||||
- [DOOM II (e.g. Steam version)](https://store.steampowered.com/app/2280/DOOM__DOOM_II/)
|
||||
- [Archipelago Crispy DOOM](https://github.com/Daivuk/apdoom/releases)
|
||||
|
||||
## Optional Software
|
||||
|
||||
@@ -660,11 +660,18 @@ commands.add_command("ap-get-technology", "Grant a technology, used by the Archi
|
||||
end
|
||||
local tech
|
||||
local force = game.forces["player"]
|
||||
if call.parameter == nil then
|
||||
game.print("ap-get-technology is only to be used by the Archipelago Factorio Client")
|
||||
return
|
||||
end
|
||||
chunks = split(call.parameter, "\t")
|
||||
local item_name = chunks[1]
|
||||
local index = chunks[2]
|
||||
local source = chunks[3] or "Archipelago"
|
||||
if index == -1 then -- for coop sync and restoring from an older savegame
|
||||
if index == nil then
|
||||
game.print("ap-get-technology is only to be used by the Archipelago Factorio Client")
|
||||
return
|
||||
elseif index == -1 then -- for coop sync and restoring from an older savegame
|
||||
tech = force.technologies[item_name]
|
||||
if tech.researched ~= true then
|
||||
game.print({"", "Received [technology=" .. tech.name .. "] as it is already checked."})
|
||||
|
||||
@@ -71,7 +71,7 @@ class FFMQClient(SNIClient):
|
||||
received = await snes_read(ctx, RECEIVED_DATA[0], RECEIVED_DATA[1])
|
||||
data = await snes_read(ctx, READ_DATA_START, READ_DATA_END - READ_DATA_START)
|
||||
check_2 = await snes_read(ctx, 0xF53749, 1)
|
||||
if check_1 in (b'\x00', b'\x55') or check_2 in (b'\x00', b'\x55'):
|
||||
if check_1 != b'\x01' or check_2 != b'\x01':
|
||||
return
|
||||
|
||||
def get_range(data_range):
|
||||
|
||||
@@ -222,10 +222,10 @@ for item, data in item_table.items():
|
||||
|
||||
def create_items(self) -> None:
|
||||
items = []
|
||||
starting_weapon = self.multiworld.starting_weapon[self.player].current_key.title().replace("_", " ")
|
||||
starting_weapon = self.options.starting_weapon.current_key.title().replace("_", " ")
|
||||
self.multiworld.push_precollected(self.create_item(starting_weapon))
|
||||
self.multiworld.push_precollected(self.create_item("Steel Armor"))
|
||||
if self.multiworld.sky_coin_mode[self.player] == "start_with":
|
||||
if self.options.sky_coin_mode == "start_with":
|
||||
self.multiworld.push_precollected(self.create_item("Sky Coin"))
|
||||
|
||||
precollected_item_names = {item.name for item in self.multiworld.precollected_items[self.player]}
|
||||
@@ -233,28 +233,28 @@ def create_items(self) -> None:
|
||||
def add_item(item_name):
|
||||
if item_name in ["Steel Armor", "Sky Fragment"] or "Progressive" in item_name:
|
||||
return
|
||||
if item_name.lower().replace(" ", "_") == self.multiworld.starting_weapon[self.player].current_key:
|
||||
if item_name.lower().replace(" ", "_") == self.options.starting_weapon.current_key:
|
||||
return
|
||||
if self.multiworld.progressive_gear[self.player]:
|
||||
if self.options.progressive_gear:
|
||||
for item_group in prog_map:
|
||||
if item_name in self.item_name_groups[item_group]:
|
||||
item_name = prog_map[item_group]
|
||||
break
|
||||
if item_name == "Sky Coin":
|
||||
if self.multiworld.sky_coin_mode[self.player] == "shattered_sky_coin":
|
||||
if self.options.sky_coin_mode == "shattered_sky_coin":
|
||||
for _ in range(40):
|
||||
items.append(self.create_item("Sky Fragment"))
|
||||
return
|
||||
elif self.multiworld.sky_coin_mode[self.player] == "save_the_crystals":
|
||||
elif self.options.sky_coin_mode == "save_the_crystals":
|
||||
items.append(self.create_filler())
|
||||
return
|
||||
if item_name in precollected_item_names:
|
||||
items.append(self.create_filler())
|
||||
return
|
||||
i = self.create_item(item_name)
|
||||
if self.multiworld.logic[self.player] != "friendly" and item_name in ("Magic Mirror", "Mask"):
|
||||
if self.options.logic != "friendly" and item_name in ("Magic Mirror", "Mask"):
|
||||
i.classification = ItemClassification.useful
|
||||
if (self.multiworld.logic[self.player] == "expert" and self.multiworld.map_shuffle[self.player] == "none" and
|
||||
if (self.options.logic == "expert" and self.options.map_shuffle == "none" and
|
||||
item_name == "Exit Book"):
|
||||
i.classification = ItemClassification.progression
|
||||
items.append(i)
|
||||
@@ -263,11 +263,11 @@ def create_items(self) -> None:
|
||||
for item in self.item_name_groups[item_group]:
|
||||
add_item(item)
|
||||
|
||||
if self.multiworld.brown_boxes[self.player] == "include":
|
||||
if self.options.brown_boxes == "include":
|
||||
filler_items = []
|
||||
for item, count in fillers.items():
|
||||
filler_items += [self.create_item(item) for _ in range(count)]
|
||||
if self.multiworld.sky_coin_mode[self.player] == "shattered_sky_coin":
|
||||
if self.options.sky_coin_mode == "shattered_sky_coin":
|
||||
self.multiworld.random.shuffle(filler_items)
|
||||
filler_items = filler_items[39:]
|
||||
items += filler_items
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from Options import Choice, FreeText, Toggle, Range
|
||||
from Options import Choice, FreeText, Toggle, Range, PerGameCommonOptions
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
class Logic(Choice):
|
||||
@@ -321,36 +322,36 @@ class KaelisMomFightsMinotaur(Toggle):
|
||||
default = 0
|
||||
|
||||
|
||||
option_definitions = {
|
||||
"logic": Logic,
|
||||
"brown_boxes": BrownBoxes,
|
||||
"sky_coin_mode": SkyCoinMode,
|
||||
"shattered_sky_coin_quantity": ShatteredSkyCoinQuantity,
|
||||
"starting_weapon": StartingWeapon,
|
||||
"progressive_gear": ProgressiveGear,
|
||||
"leveling_curve": LevelingCurve,
|
||||
"starting_companion": StartingCompanion,
|
||||
"available_companions": AvailableCompanions,
|
||||
"companions_locations": CompanionsLocations,
|
||||
"kaelis_mom_fight_minotaur": KaelisMomFightsMinotaur,
|
||||
"companion_leveling_type": CompanionLevelingType,
|
||||
"companion_spellbook_type": CompanionSpellbookType,
|
||||
"enemies_density": EnemiesDensity,
|
||||
"enemies_scaling_lower": EnemiesScalingLower,
|
||||
"enemies_scaling_upper": EnemiesScalingUpper,
|
||||
"bosses_scaling_lower": BossesScalingLower,
|
||||
"bosses_scaling_upper": BossesScalingUpper,
|
||||
"enemizer_attacks": EnemizerAttacks,
|
||||
"enemizer_groups": EnemizerGroups,
|
||||
"shuffle_res_weak_types": ShuffleResWeakType,
|
||||
"shuffle_enemies_position": ShuffleEnemiesPositions,
|
||||
"progressive_formations": ProgressiveFormations,
|
||||
"doom_castle_mode": DoomCastle,
|
||||
"doom_castle_shortcut": DoomCastleShortcut,
|
||||
"tweak_frustrating_dungeons": TweakFrustratingDungeons,
|
||||
"map_shuffle": MapShuffle,
|
||||
"crest_shuffle": CrestShuffle,
|
||||
"shuffle_battlefield_rewards": ShuffleBattlefieldRewards,
|
||||
"map_shuffle_seed": MapShuffleSeed,
|
||||
"battlefields_battles_quantities": BattlefieldsBattlesQuantities,
|
||||
}
|
||||
@dataclass
|
||||
class FFMQOptions(PerGameCommonOptions):
|
||||
logic: Logic
|
||||
brown_boxes: BrownBoxes
|
||||
sky_coin_mode: SkyCoinMode
|
||||
shattered_sky_coin_quantity: ShatteredSkyCoinQuantity
|
||||
starting_weapon: StartingWeapon
|
||||
progressive_gear: ProgressiveGear
|
||||
leveling_curve: LevelingCurve
|
||||
starting_companion: StartingCompanion
|
||||
available_companions: AvailableCompanions
|
||||
companions_locations: CompanionsLocations
|
||||
kaelis_mom_fight_minotaur: KaelisMomFightsMinotaur
|
||||
companion_leveling_type: CompanionLevelingType
|
||||
companion_spellbook_type: CompanionSpellbookType
|
||||
enemies_density: EnemiesDensity
|
||||
enemies_scaling_lower: EnemiesScalingLower
|
||||
enemies_scaling_upper: EnemiesScalingUpper
|
||||
bosses_scaling_lower: BossesScalingLower
|
||||
bosses_scaling_upper: BossesScalingUpper
|
||||
enemizer_attacks: EnemizerAttacks
|
||||
enemizer_groups: EnemizerGroups
|
||||
shuffle_res_weak_types: ShuffleResWeakType
|
||||
shuffle_enemies_position: ShuffleEnemiesPositions
|
||||
progressive_formations: ProgressiveFormations
|
||||
doom_castle_mode: DoomCastle
|
||||
doom_castle_shortcut: DoomCastleShortcut
|
||||
tweak_frustrating_dungeons: TweakFrustratingDungeons
|
||||
map_shuffle: MapShuffle
|
||||
crest_shuffle: CrestShuffle
|
||||
shuffle_battlefield_rewards: ShuffleBattlefieldRewards
|
||||
map_shuffle_seed: MapShuffleSeed
|
||||
battlefields_battles_quantities: BattlefieldsBattlesQuantities
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import yaml
|
||||
import os
|
||||
import zipfile
|
||||
import Utils
|
||||
from copy import deepcopy
|
||||
from .Regions import object_id_table
|
||||
from Utils import __version__
|
||||
from worlds.Files import APPatch
|
||||
import pkgutil
|
||||
|
||||
settings_template = yaml.load(pkgutil.get_data(__name__, "data/settings.yaml"), yaml.Loader)
|
||||
settings_template = Utils.parse_yaml(pkgutil.get_data(__name__, "data/settings.yaml"))
|
||||
|
||||
|
||||
def generate_output(self, output_directory):
|
||||
@@ -21,7 +21,7 @@ def generate_output(self, output_directory):
|
||||
item_name = "".join(item_name.split(" "))
|
||||
else:
|
||||
if item.advancement or item.useful or (item.trap and
|
||||
self.multiworld.per_slot_randoms[self.player].randint(0, 1)):
|
||||
self.random.randint(0, 1)):
|
||||
item_name = "APItem"
|
||||
else:
|
||||
item_name = "APItemFiller"
|
||||
@@ -46,60 +46,60 @@ def generate_output(self, output_directory):
|
||||
options = deepcopy(settings_template)
|
||||
options["name"] = self.multiworld.player_name[self.player]
|
||||
option_writes = {
|
||||
"enemies_density": cc(self.multiworld.enemies_density[self.player]),
|
||||
"enemies_density": cc(self.options.enemies_density),
|
||||
"chests_shuffle": "Include",
|
||||
"shuffle_boxes_content": self.multiworld.brown_boxes[self.player] == "shuffle",
|
||||
"shuffle_boxes_content": self.options.brown_boxes == "shuffle",
|
||||
"npcs_shuffle": "Include",
|
||||
"battlefields_shuffle": "Include",
|
||||
"logic_options": cc(self.multiworld.logic[self.player]),
|
||||
"shuffle_enemies_position": tf(self.multiworld.shuffle_enemies_position[self.player]),
|
||||
"enemies_scaling_lower": cc(self.multiworld.enemies_scaling_lower[self.player]),
|
||||
"enemies_scaling_upper": cc(self.multiworld.enemies_scaling_upper[self.player]),
|
||||
"bosses_scaling_lower": cc(self.multiworld.bosses_scaling_lower[self.player]),
|
||||
"bosses_scaling_upper": cc(self.multiworld.bosses_scaling_upper[self.player]),
|
||||
"enemizer_attacks": cc(self.multiworld.enemizer_attacks[self.player]),
|
||||
"leveling_curve": cc(self.multiworld.leveling_curve[self.player]),
|
||||
"battles_quantity": cc(self.multiworld.battlefields_battles_quantities[self.player]) if
|
||||
self.multiworld.battlefields_battles_quantities[self.player].value < 5 else
|
||||
"logic_options": cc(self.options.logic),
|
||||
"shuffle_enemies_position": tf(self.options.shuffle_enemies_position),
|
||||
"enemies_scaling_lower": cc(self.options.enemies_scaling_lower),
|
||||
"enemies_scaling_upper": cc(self.options.enemies_scaling_upper),
|
||||
"bosses_scaling_lower": cc(self.options.bosses_scaling_lower),
|
||||
"bosses_scaling_upper": cc(self.options.bosses_scaling_upper),
|
||||
"enemizer_attacks": cc(self.options.enemizer_attacks),
|
||||
"leveling_curve": cc(self.options.leveling_curve),
|
||||
"battles_quantity": cc(self.options.battlefields_battles_quantities) if
|
||||
self.options.battlefields_battles_quantities.value < 5 else
|
||||
"RandomLow" if
|
||||
self.multiworld.battlefields_battles_quantities[self.player].value == 5 else
|
||||
self.options.battlefields_battles_quantities.value == 5 else
|
||||
"RandomHigh",
|
||||
"shuffle_battlefield_rewards": tf(self.multiworld.shuffle_battlefield_rewards[self.player]),
|
||||
"shuffle_battlefield_rewards": tf(self.options.shuffle_battlefield_rewards),
|
||||
"random_starting_weapon": True,
|
||||
"progressive_gear": tf(self.multiworld.progressive_gear[self.player]),
|
||||
"tweaked_dungeons": tf(self.multiworld.tweak_frustrating_dungeons[self.player]),
|
||||
"doom_castle_mode": cc(self.multiworld.doom_castle_mode[self.player]),
|
||||
"doom_castle_shortcut": tf(self.multiworld.doom_castle_shortcut[self.player]),
|
||||
"sky_coin_mode": cc(self.multiworld.sky_coin_mode[self.player]),
|
||||
"sky_coin_fragments_qty": cc(self.multiworld.shattered_sky_coin_quantity[self.player]),
|
||||
"progressive_gear": tf(self.options.progressive_gear),
|
||||
"tweaked_dungeons": tf(self.options.tweak_frustrating_dungeons),
|
||||
"doom_castle_mode": cc(self.options.doom_castle_mode),
|
||||
"doom_castle_shortcut": tf(self.options.doom_castle_shortcut),
|
||||
"sky_coin_mode": cc(self.options.sky_coin_mode),
|
||||
"sky_coin_fragments_qty": cc(self.options.shattered_sky_coin_quantity),
|
||||
"enable_spoilers": False,
|
||||
"progressive_formations": cc(self.multiworld.progressive_formations[self.player]),
|
||||
"map_shuffling": cc(self.multiworld.map_shuffle[self.player]),
|
||||
"crest_shuffle": tf(self.multiworld.crest_shuffle[self.player]),
|
||||
"enemizer_groups": cc(self.multiworld.enemizer_groups[self.player]),
|
||||
"shuffle_res_weak_type": tf(self.multiworld.shuffle_res_weak_types[self.player]),
|
||||
"companion_leveling_type": cc(self.multiworld.companion_leveling_type[self.player]),
|
||||
"companion_spellbook_type": cc(self.multiworld.companion_spellbook_type[self.player]),
|
||||
"starting_companion": cc(self.multiworld.starting_companion[self.player]),
|
||||
"progressive_formations": cc(self.options.progressive_formations),
|
||||
"map_shuffling": cc(self.options.map_shuffle),
|
||||
"crest_shuffle": tf(self.options.crest_shuffle),
|
||||
"enemizer_groups": cc(self.options.enemizer_groups),
|
||||
"shuffle_res_weak_type": tf(self.options.shuffle_res_weak_types),
|
||||
"companion_leveling_type": cc(self.options.companion_leveling_type),
|
||||
"companion_spellbook_type": cc(self.options.companion_spellbook_type),
|
||||
"starting_companion": cc(self.options.starting_companion),
|
||||
"available_companions": ["Zero", "One", "Two",
|
||||
"Three", "Four"][self.multiworld.available_companions[self.player].value],
|
||||
"companions_locations": cc(self.multiworld.companions_locations[self.player]),
|
||||
"kaelis_mom_fight_minotaur": tf(self.multiworld.kaelis_mom_fight_minotaur[self.player]),
|
||||
"Three", "Four"][self.options.available_companions.value],
|
||||
"companions_locations": cc(self.options.companions_locations),
|
||||
"kaelis_mom_fight_minotaur": tf(self.options.kaelis_mom_fight_minotaur),
|
||||
}
|
||||
|
||||
for option, data in option_writes.items():
|
||||
options["Final Fantasy Mystic Quest"][option][data] = 1
|
||||
|
||||
rom_name = f'MQ{__version__.replace(".", "")[0:3]}_{self.player}_{self.multiworld.seed_name:11}'[:21]
|
||||
rom_name = f'MQ{Utils.__version__.replace(".", "")[0:3]}_{self.player}_{self.multiworld.seed_name:11}'[:21]
|
||||
self.rom_name = bytearray(rom_name,
|
||||
'utf8')
|
||||
self.rom_name_available_event.set()
|
||||
|
||||
setup = {"version": "1.5", "name": self.multiworld.player_name[self.player], "romname": rom_name, "seed":
|
||||
hex(self.multiworld.per_slot_randoms[self.player].randint(0, 0xFFFFFFFF)).split("0x")[1].upper()}
|
||||
hex(self.random.randint(0, 0xFFFFFFFF)).split("0x")[1].upper()}
|
||||
|
||||
starting_items = [output_item_name(item) for item in self.multiworld.precollected_items[self.player]]
|
||||
if self.multiworld.sky_coin_mode[self.player] == "shattered_sky_coin":
|
||||
if self.options.sky_coin_mode == "shattered_sky_coin":
|
||||
starting_items.append("SkyCoin")
|
||||
|
||||
file_path = os.path.join(output_directory, f"{self.multiworld.get_out_file_name_base(self.player)}.apmq")
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
from BaseClasses import Region, MultiWorld, Entrance, Location, LocationProgressType, ItemClassification
|
||||
from worlds.generic.Rules import add_rule
|
||||
from .data.rooms import rooms, entrances
|
||||
from .Items import item_groups, yaml_item
|
||||
import pkgutil
|
||||
import yaml
|
||||
|
||||
rooms = yaml.load(pkgutil.get_data(__name__, "data/rooms.yaml"), yaml.Loader)
|
||||
entrance_names = {entrance["id"]: entrance["name"] for entrance in yaml.load(pkgutil.get_data(__name__, "data/entrances.yaml"), yaml.Loader)}
|
||||
entrance_names = {entrance["id"]: entrance["name"] for entrance in entrances}
|
||||
|
||||
object_id_table = {}
|
||||
object_type_table = {}
|
||||
@@ -69,7 +67,7 @@ def create_regions(self):
|
||||
location_table else None, object["type"], object["access"],
|
||||
self.create_item(yaml_item(object["on_trigger"][0])) if object["type"] == "Trigger" else None) for object in
|
||||
room["game_objects"] if "Hero Chest" not in object["name"] and object["type"] not in ("BattlefieldGp",
|
||||
"BattlefieldXp") and (object["type"] != "Box" or self.multiworld.brown_boxes[self.player] == "include") and
|
||||
"BattlefieldXp") and (object["type"] != "Box" or self.options.brown_boxes == "include") and
|
||||
not (object["name"] == "Kaeli Companion" and not object["on_trigger"])], room["links"]))
|
||||
|
||||
dark_king_room = self.multiworld.get_region("Doom Castle Dark King Room", self.player)
|
||||
@@ -91,15 +89,13 @@ def create_regions(self):
|
||||
if "entrance" in link and link["entrance"] != -1:
|
||||
spoiler = False
|
||||
if link["entrance"] in crest_warps:
|
||||
if self.multiworld.crest_shuffle[self.player]:
|
||||
if self.options.crest_shuffle:
|
||||
spoiler = True
|
||||
elif self.multiworld.map_shuffle[self.player] == "everything":
|
||||
elif self.options.map_shuffle == "everything":
|
||||
spoiler = True
|
||||
elif "Subregion" in region.name and self.multiworld.map_shuffle[self.player] not in ("dungeons",
|
||||
"none"):
|
||||
elif "Subregion" in region.name and self.options.map_shuffle not in ("dungeons", "none"):
|
||||
spoiler = True
|
||||
elif "Subregion" not in region.name and self.multiworld.map_shuffle[self.player] not in ("none",
|
||||
"overworld"):
|
||||
elif "Subregion" not in region.name and self.options.map_shuffle not in ("none", "overworld"):
|
||||
spoiler = True
|
||||
|
||||
if spoiler:
|
||||
@@ -111,6 +107,7 @@ def create_regions(self):
|
||||
connection.connect(connect_room)
|
||||
break
|
||||
|
||||
|
||||
non_dead_end_crest_rooms = [
|
||||
'Libra Temple', 'Aquaria Gemini Room', "GrenadeMan's Mobius Room", 'Fireburg Gemini Room',
|
||||
'Sealed Temple', 'Alive Forest', 'Kaidge Temple Upper Ledge',
|
||||
@@ -140,7 +137,7 @@ def set_rules(self) -> None:
|
||||
add_rule(self.multiworld.get_location("Gidrah", self.player), hard_boss_logic)
|
||||
add_rule(self.multiworld.get_location("Dullahan", self.player), hard_boss_logic)
|
||||
|
||||
if self.multiworld.map_shuffle[self.player]:
|
||||
if self.options.map_shuffle:
|
||||
for boss in ("Freezer Crab", "Ice Golem", "Jinn", "Medusa", "Dualhead Hydra"):
|
||||
loc = self.multiworld.get_location(boss, self.player)
|
||||
checked_regions = {loc.parent_region}
|
||||
@@ -158,12 +155,12 @@ def set_rules(self) -> None:
|
||||
return True
|
||||
check_foresta(loc.parent_region)
|
||||
|
||||
if self.multiworld.logic[self.player] == "friendly":
|
||||
if self.options.logic == "friendly":
|
||||
process_rules(self.multiworld.get_entrance("Overworld - Ice Pyramid", self.player),
|
||||
["MagicMirror"])
|
||||
process_rules(self.multiworld.get_entrance("Overworld - Volcano", self.player),
|
||||
["Mask"])
|
||||
if self.multiworld.map_shuffle[self.player] in ("none", "overworld"):
|
||||
if self.options.map_shuffle in ("none", "overworld"):
|
||||
process_rules(self.multiworld.get_entrance("Overworld - Bone Dungeon", self.player),
|
||||
["Bomb"])
|
||||
process_rules(self.multiworld.get_entrance("Overworld - Wintry Cave", self.player),
|
||||
@@ -185,8 +182,8 @@ def set_rules(self) -> None:
|
||||
process_rules(self.multiworld.get_entrance("Overworld - Mac Ship Doom", self.player),
|
||||
["DragonClaw", "CaptainCap"])
|
||||
|
||||
if self.multiworld.logic[self.player] == "expert":
|
||||
if self.multiworld.map_shuffle[self.player] == "none" and not self.multiworld.crest_shuffle[self.player]:
|
||||
if self.options.logic == "expert":
|
||||
if self.options.map_shuffle == "none" and not self.options.crest_shuffle:
|
||||
inner_room = self.multiworld.get_region("Wintry Temple Inner Room", self.player)
|
||||
connection = Entrance(self.player, "Sealed Temple Exit Trick", inner_room)
|
||||
connection.connect(self.multiworld.get_region("Wintry Temple Outer Room", self.player))
|
||||
@@ -198,14 +195,14 @@ def set_rules(self) -> None:
|
||||
if entrance.connected_region.name in non_dead_end_crest_rooms:
|
||||
entrance.access_rule = lambda state: False
|
||||
|
||||
if self.multiworld.sky_coin_mode[self.player] == "shattered_sky_coin":
|
||||
logic_coins = [16, 24, 32, 32, 38][self.multiworld.shattered_sky_coin_quantity[self.player].value]
|
||||
if self.options.sky_coin_mode == "shattered_sky_coin":
|
||||
logic_coins = [16, 24, 32, 32, 38][self.options.shattered_sky_coin_quantity.value]
|
||||
self.multiworld.get_entrance("Focus Tower 1F - Sky Door", self.player).access_rule = \
|
||||
lambda state: state.has("Sky Fragment", self.player, logic_coins)
|
||||
elif self.multiworld.sky_coin_mode[self.player] == "save_the_crystals":
|
||||
elif self.options.sky_coin_mode == "save_the_crystals":
|
||||
self.multiworld.get_entrance("Focus Tower 1F - Sky Door", self.player).access_rule = \
|
||||
lambda state: state.has_all(["Flamerus Rex", "Dualhead Hydra", "Ice Golem", "Pazuzu"], self.player)
|
||||
elif self.multiworld.sky_coin_mode[self.player] in ("standard", "start_with"):
|
||||
elif self.options.sky_coin_mode in ("standard", "start_with"):
|
||||
self.multiworld.get_entrance("Focus Tower 1F - Sky Door", self.player).access_rule = \
|
||||
lambda state: state.has("Sky Coin", self.player)
|
||||
|
||||
@@ -213,26 +210,24 @@ def set_rules(self) -> None:
|
||||
def stage_set_rules(multiworld):
|
||||
# If there's no enemies, there's no repeatable income sources
|
||||
no_enemies_players = [player for player in multiworld.get_game_players("Final Fantasy Mystic Quest")
|
||||
if multiworld.enemies_density[player] == "none"]
|
||||
if multiworld.worlds[player].options.enemies_density == "none"]
|
||||
if (len([item for item in multiworld.itempool if item.classification in (ItemClassification.filler,
|
||||
ItemClassification.trap)]) > len([player for player in no_enemies_players if
|
||||
multiworld.accessibility[player] == "minimal"]) * 3):
|
||||
multiworld.worlds[player].options.accessibility == "minimal"]) * 3):
|
||||
for player in no_enemies_players:
|
||||
for location in vendor_locations:
|
||||
if multiworld.accessibility[player] == "locations":
|
||||
if multiworld.worlds[player].options.accessibility == "full":
|
||||
multiworld.get_location(location, player).progress_type = LocationProgressType.EXCLUDED
|
||||
else:
|
||||
multiworld.get_location(location, player).access_rule = lambda state: False
|
||||
else:
|
||||
# There are not enough junk items to fill non-minimal players' vendors. Just set an item rule not allowing
|
||||
# advancement items so that useful items can be placed
|
||||
# advancement items so that useful items can be placed.
|
||||
for player in no_enemies_players:
|
||||
for location in vendor_locations:
|
||||
multiworld.get_location(location, player).item_rule = lambda item: not item.advancement
|
||||
|
||||
|
||||
|
||||
|
||||
class FFMQLocation(Location):
|
||||
game = "Final Fantasy Mystic Quest"
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ from .Regions import create_regions, location_table, set_rules, stage_set_rules,
|
||||
non_dead_end_crest_warps
|
||||
from .Items import item_table, item_groups, create_items, FFMQItem, fillers
|
||||
from .Output import generate_output
|
||||
from .Options import option_definitions
|
||||
from .Options import FFMQOptions
|
||||
from .Client import FFMQClient
|
||||
|
||||
|
||||
@@ -25,14 +25,25 @@ from .Client import FFMQClient
|
||||
|
||||
|
||||
class FFMQWebWorld(WebWorld):
|
||||
tutorials = [Tutorial(
|
||||
setup_en = Tutorial(
|
||||
"Multiworld Setup Guide",
|
||||
"A guide to playing Final Fantasy Mystic Quest with Archipelago.",
|
||||
"English",
|
||||
"setup_en.md",
|
||||
"setup/en",
|
||||
["Alchav"]
|
||||
)]
|
||||
)
|
||||
|
||||
setup_fr = Tutorial(
|
||||
setup_en.tutorial_name,
|
||||
setup_en.description,
|
||||
"Français",
|
||||
"setup_fr.md",
|
||||
"setup/fr",
|
||||
["Artea"]
|
||||
)
|
||||
|
||||
tutorials = [setup_en, setup_fr]
|
||||
|
||||
|
||||
class FFMQWorld(World):
|
||||
@@ -45,7 +56,8 @@ class FFMQWorld(World):
|
||||
|
||||
item_name_to_id = {name: data.id for name, data in item_table.items() if data.id is not None}
|
||||
location_name_to_id = location_table
|
||||
option_definitions = option_definitions
|
||||
options_dataclass = FFMQOptions
|
||||
options: FFMQOptions
|
||||
|
||||
topology_present = True
|
||||
|
||||
@@ -67,20 +79,14 @@ class FFMQWorld(World):
|
||||
super().__init__(world, player)
|
||||
|
||||
def generate_early(self):
|
||||
if self.multiworld.sky_coin_mode[self.player] == "shattered_sky_coin":
|
||||
self.multiworld.brown_boxes[self.player].value = 1
|
||||
if self.multiworld.enemies_scaling_lower[self.player].value > \
|
||||
self.multiworld.enemies_scaling_upper[self.player].value:
|
||||
(self.multiworld.enemies_scaling_lower[self.player].value,
|
||||
self.multiworld.enemies_scaling_upper[self.player].value) =\
|
||||
(self.multiworld.enemies_scaling_upper[self.player].value,
|
||||
self.multiworld.enemies_scaling_lower[self.player].value)
|
||||
if self.multiworld.bosses_scaling_lower[self.player].value > \
|
||||
self.multiworld.bosses_scaling_upper[self.player].value:
|
||||
(self.multiworld.bosses_scaling_lower[self.player].value,
|
||||
self.multiworld.bosses_scaling_upper[self.player].value) =\
|
||||
(self.multiworld.bosses_scaling_upper[self.player].value,
|
||||
self.multiworld.bosses_scaling_lower[self.player].value)
|
||||
if self.options.sky_coin_mode == "shattered_sky_coin":
|
||||
self.options.brown_boxes.value = 1
|
||||
if self.options.enemies_scaling_lower.value > self.options.enemies_scaling_upper.value:
|
||||
self.options.enemies_scaling_lower.value, self.options.enemies_scaling_upper.value = \
|
||||
self.options.enemies_scaling_upper.value, self.options.enemies_scaling_lower.value
|
||||
if self.options.bosses_scaling_lower.value > self.options.bosses_scaling_upper.value:
|
||||
self.options.bosses_scaling_lower.value, self.options.bosses_scaling_upper.value = \
|
||||
self.options.bosses_scaling_upper.value, self.options.bosses_scaling_lower.value
|
||||
|
||||
@classmethod
|
||||
def stage_generate_early(cls, multiworld):
|
||||
@@ -94,20 +100,20 @@ class FFMQWorld(World):
|
||||
rooms_data = {}
|
||||
|
||||
for world in multiworld.get_game_worlds("Final Fantasy Mystic Quest"):
|
||||
if (world.multiworld.map_shuffle[world.player] or world.multiworld.crest_shuffle[world.player] or
|
||||
world.multiworld.crest_shuffle[world.player]):
|
||||
if world.multiworld.map_shuffle_seed[world.player].value.isdigit():
|
||||
multiworld.random.seed(int(world.multiworld.map_shuffle_seed[world.player].value))
|
||||
elif world.multiworld.map_shuffle_seed[world.player].value != "random":
|
||||
multiworld.random.seed(int(hash(world.multiworld.map_shuffle_seed[world.player].value))
|
||||
+ int(world.multiworld.seed))
|
||||
if (world.options.map_shuffle or world.options.crest_shuffle or world.options.shuffle_battlefield_rewards
|
||||
or world.options.companions_locations):
|
||||
if world.options.map_shuffle_seed.value.isdigit():
|
||||
multiworld.random.seed(int(world.options.map_shuffle_seed.value))
|
||||
elif world.options.map_shuffle_seed.value != "random":
|
||||
multiworld.random.seed(int(hash(world.options.map_shuffle_seed.value))
|
||||
+ int(world.multiworld.seed))
|
||||
|
||||
seed = hex(multiworld.random.randint(0, 0xFFFFFFFF)).split("0x")[1].upper()
|
||||
map_shuffle = multiworld.map_shuffle[world.player].value
|
||||
crest_shuffle = multiworld.crest_shuffle[world.player].current_key
|
||||
battlefield_shuffle = multiworld.shuffle_battlefield_rewards[world.player].current_key
|
||||
companion_shuffle = multiworld.companions_locations[world.player].value
|
||||
kaeli_mom = multiworld.kaelis_mom_fight_minotaur[world.player].current_key
|
||||
map_shuffle = world.options.map_shuffle.value
|
||||
crest_shuffle = world.options.crest_shuffle.current_key
|
||||
battlefield_shuffle = world.options.shuffle_battlefield_rewards.current_key
|
||||
companion_shuffle = world.options.companions_locations.value
|
||||
kaeli_mom = world.options.kaelis_mom_fight_minotaur.current_key
|
||||
|
||||
query = f"s={seed}&m={map_shuffle}&c={crest_shuffle}&b={battlefield_shuffle}&cs={companion_shuffle}&km={kaeli_mom}"
|
||||
|
||||
@@ -175,14 +181,14 @@ class FFMQWorld(World):
|
||||
|
||||
def extend_hint_information(self, hint_data):
|
||||
hint_data[self.player] = {}
|
||||
if self.multiworld.map_shuffle[self.player]:
|
||||
if self.options.map_shuffle:
|
||||
single_location_regions = ["Subregion Volcano Battlefield", "Subregion Mac's Ship", "Subregion Doom Castle"]
|
||||
for subregion in ["Subregion Foresta", "Subregion Aquaria", "Subregion Frozen Fields", "Subregion Fireburg",
|
||||
"Subregion Volcano Battlefield", "Subregion Windia", "Subregion Mac's Ship",
|
||||
"Subregion Doom Castle"]:
|
||||
region = self.multiworld.get_region(subregion, self.player)
|
||||
for location in region.locations:
|
||||
if location.address and self.multiworld.map_shuffle[self.player] != "dungeons":
|
||||
if location.address and self.options.map_shuffle != "dungeons":
|
||||
hint_data[self.player][location.address] = (subregion.split("Subregion ")[-1]
|
||||
+ (" Region" if subregion not in
|
||||
single_location_regions else ""))
|
||||
@@ -202,14 +208,13 @@ class FFMQWorld(World):
|
||||
for location in exit_check.connected_region.locations:
|
||||
if location.address:
|
||||
hint = []
|
||||
if self.multiworld.map_shuffle[self.player] != "dungeons":
|
||||
if self.options.map_shuffle != "dungeons":
|
||||
hint.append((subregion.split("Subregion ")[-1] + (" Region" if subregion not
|
||||
in single_location_regions else "")))
|
||||
if self.multiworld.map_shuffle[self.player] != "overworld" and subregion not in \
|
||||
("Subregion Mac's Ship", "Subregion Doom Castle"):
|
||||
if self.options.map_shuffle != "overworld":
|
||||
hint.append(overworld_spot.name.split("Overworld - ")[-1].replace("Pazuzu",
|
||||
"Pazuzu's"))
|
||||
hint = " - ".join(hint)
|
||||
hint = " - ".join(hint).replace(" - Mac Ship", "")
|
||||
if location.address in hint_data[self.player]:
|
||||
hint_data[self.player][location.address] += f"/{hint}"
|
||||
else:
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
2
worlds/ffmq/data/rooms.py
Normal file
2
worlds/ffmq/data/rooms.py
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,8 @@
|
||||
# Final Fantasy Mystic Quest
|
||||
|
||||
## Game page in other languages:
|
||||
* [Français](/games/Final%20Fantasy%20Mystic%20Quest/info/fr)
|
||||
|
||||
## Where is the options page?
|
||||
|
||||
The [player options page for this game](../player-options) contains all the options you need to configure and export a
|
||||
|
||||
36
worlds/ffmq/docs/fr_Final Fantasy Mystic Quest.md
Normal file
36
worlds/ffmq/docs/fr_Final Fantasy Mystic Quest.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# Final Fantasy Mystic Quest
|
||||
|
||||
## Page d'info dans d'autres langues :
|
||||
* [English](/games/Final%20Fantasy%20Mystic%20Quest/info/en)
|
||||
|
||||
## Où se situe la page d'options?
|
||||
|
||||
La [page de configuration](../player-options) contient toutes les options nécessaires pour créer un fichier de configuration.
|
||||
|
||||
## Qu'est-ce qui est rendu aléatoire dans ce jeu?
|
||||
|
||||
Outre les objets mélangés, il y a plusieurs options pour aussi mélanger les villes et donjons, les pièces dans les donjons, les téléporteurs et les champs de bataille.
|
||||
Il y a aussi plusieurs autres options afin d'ajuster la difficulté du jeu et la vitesse d'une partie.
|
||||
|
||||
## Quels objets et emplacements sont mélangés?
|
||||
|
||||
Les objets normalement reçus des coffres rouges, des PNJ et des champs de bataille sont mélangés. Vous pouvez aussi
|
||||
inclure les objets des coffres bruns (qui contiennent normalement des consommables) dans les objets mélangés.
|
||||
|
||||
## Quels objets peuvent être dans les mondes des autres joueurs?
|
||||
|
||||
Tous les objets qui ont été déterminés mélangés dans les options peuvent être placés dans d'autres mondes.
|
||||
|
||||
## À quoi ressemblent les objets des autres joueurs dans Final Fantasy Mystic Quest?
|
||||
|
||||
Les emplacements qui étaient à l'origine des coffres (rouges ou bruns si ceux-ci sont inclus) apparaîtront comme des coffres.
|
||||
Les coffres rouges seront des objets utiles ou de progression, alors que les coffres bruns seront des objets de remplissage.
|
||||
Les pièges peuvent apparaître comme des coffres rouges ou bruns.
|
||||
Lorsque vous ouvrirez un coffre contenant un objet d'un autre joueur, vous recevrez l'icône d'Archipelago et
|
||||
la boîte de dialogue vous indiquera avoir reçu un "Archipelago Item".
|
||||
|
||||
|
||||
## Lorsqu'un joueur reçoit un objet, qu'arrive-t-il?
|
||||
|
||||
Une boîte de dialogue apparaîtra pour vous montrer l'objet que vous avez reçu. Vous ne pourrez pas recevoir d'objet si vous êtes
|
||||
en combat, dans la mappemonde ou dans les menus (à l'exception de lorsque vous fermez le menu).
|
||||
@@ -17,6 +17,12 @@ The Archipelago community cannot supply you with this.
|
||||
|
||||
## Installation Procedures
|
||||
|
||||
### Linux Setup
|
||||
|
||||
1. Download and install [Archipelago](<https://github.com/ArchipelagoMW/Archipelago/releases/latest>). **The installer
|
||||
file is located in the assets section at the bottom of the version information. You'll likely be looking for the `.AppImage`.**
|
||||
2. It is recommended to use either RetroArch or BizHawk if you run on linux, as snes9x-rr isn't compatible.
|
||||
|
||||
### Windows Setup
|
||||
|
||||
1. Download and install [Archipelago](<https://github.com/ArchipelagoMW/Archipelago/releases/latest>). **The installer
|
||||
@@ -75,8 +81,7 @@ Manually launch the SNI Client, and run the patched ROM in your chosen software
|
||||
|
||||
#### With an emulator
|
||||
|
||||
When the client launched automatically, SNI should have also automatically launched in the background. If this is its
|
||||
first time launching, you may be prompted to allow it to communicate through the Windows Firewall.
|
||||
If this is the first time SNI launches, you may be prompted to allow it to communicate through the Windows Firewall.
|
||||
|
||||
##### snes9x-rr
|
||||
|
||||
@@ -133,10 +138,10 @@ page: [usb2snes Supported Platforms Page](http://usb2snes.com/#supported-platfor
|
||||
|
||||
### Connect to the Archipelago Server
|
||||
|
||||
The patch file which launched your client should have automatically connected you to the AP Server. There are a few
|
||||
reasons this may not happen however, including if the game is hosted on the website but was generated elsewhere. If the
|
||||
client window shows "Server Status: Not Connected", simply ask the host for the address of the server, and copy/paste it
|
||||
into the "Server" input field then press enter.
|
||||
SNI serves as the interface between your emulator and the server. Since you launched it manually, you need to tell it what server to connect to.
|
||||
If the server is hosted on Archipelago.gg, get the port the server hosts your game on at the top of the game room (last line before the worlds are listed).
|
||||
In the SNI client, either type `/connect address` (where `address` is the address of the server, for example `/connect archipelago.gg:12345`), or type the address and port on the "Server" input field, then press `Connect`.
|
||||
If the server is hosted locally, simply ask the host for the address of the server, and copy/paste it into the "Server" input field then press `Connect`.
|
||||
|
||||
The client will attempt to reconnect to the new server address, and should momentarily show "Server Status: Connected".
|
||||
|
||||
|
||||
178
worlds/ffmq/docs/setup_fr.md
Normal file
178
worlds/ffmq/docs/setup_fr.md
Normal file
@@ -0,0 +1,178 @@
|
||||
# Final Fantasy Mystic Quest Setup Guide
|
||||
|
||||
## Logiciels requis
|
||||
|
||||
- [Archipelago](https://github.com/ArchipelagoMW/Archipelago/releases)
|
||||
- Une solution logicielle ou matérielle capable de charger et de lancer des fichiers ROM de SNES
|
||||
- Un émulateur capable d'éxécuter des scripts Lua
|
||||
- snes9x-rr de: [snes9x rr](https://github.com/gocha/snes9x-rr/releases),
|
||||
- BizHawk from: [BizHawk Website](http://tasvideos.org/BizHawk.html),
|
||||
- RetroArch 1.10.1 or newer from: [RetroArch Website](https://retroarch.com?page=platforms). Ou,
|
||||
- Un SD2SNES, [FXPak Pro](https://krikzz.com/store/home/54-fxpak-pro.html), ou une autre solution matérielle
|
||||
compatible
|
||||
- Le fichier ROM de la v1.0 ou v1.1 NA de Final Fantasy Mystic Quest obtenu légalement, sûrement nommé `Final Fantasy - Mystic Quest (U) (V1.0).sfc` ou `Final Fantasy - Mystic Quest (U) (V1.1).sfc`
|
||||
La communauté d'Archipelago ne peut vous fournir avec ce fichier.
|
||||
|
||||
## Procédure d'installation
|
||||
|
||||
### Installation sur Linux
|
||||
|
||||
1. Téléchargez et installez [Archipelago](<https://github.com/ArchipelagoMW/Archipelago/releases/latest>).
|
||||
** Le fichier d'installation est situé dans la section "assets" dans le bas de la fenêtre d'information de la version. Vous voulez probablement le `.AppImage`**
|
||||
2. L'utilisation de RetroArch ou BizHawk est recommandé pour les utilisateurs linux, puisque snes9x-rr n'est pas compatible.
|
||||
|
||||
### Installation sur Windows
|
||||
|
||||
1. Téléchargez et installez [Archipelago](<https://github.com/ArchipelagoMW/Archipelago/releases/latest>).
|
||||
** Le fichier d'installation est situé dans la section "assets" dans le bas de la fenêtre d'information de la version.**
|
||||
2. Si vous utilisez un émulateur, il est recommandé d'assigner votre émulateur capable d'éxécuter des scripts Lua comme
|
||||
programme par défaut pour ouvrir vos ROMs.
|
||||
1. Extrayez votre dossier d'émulateur sur votre Bureau, ou à un endroit dont vous vous souviendrez.
|
||||
2. Faites un clic droit sur un fichier ROM et sélectionnez **Ouvrir avec...**
|
||||
3. Cochez la case à côté de **Toujours utiliser cette application pour ouvrir les fichiers `.sfc`**
|
||||
4. Descendez jusqu'en bas de la liste et sélectionnez **Rechercher une autre application sur ce PC**
|
||||
5. Naviguez dans les dossiers jusqu'au fichier `.exe` de votre émulateur et choisissez **Ouvrir**. Ce fichier
|
||||
devrait se trouver dans le dossier que vous avez extrait à la première étape.
|
||||
|
||||
|
||||
## Créer son fichier de configuration (.yaml)
|
||||
|
||||
### Qu'est-ce qu'un fichier de configuration et pourquoi en ai-je besoin ?
|
||||
|
||||
Votre fichier de configuration contient un ensemble d'options de configuration pour indiquer au générateur
|
||||
comment il devrait générer votre seed. Chaque joueur d'un multiworld devra fournir son propre fichier de configuration. Cela permet
|
||||
à chaque joueur d'apprécier une expérience personalisée. Les différents joueurs d'un même multiworld
|
||||
pouront avoir des options de génération différentes.
|
||||
Vous pouvez lire le [guide pour créer un YAML de base](/tutorial/Archipelago/setup/en) en anglais.
|
||||
|
||||
### Où est-ce que j'obtiens un fichier de configuration ?
|
||||
|
||||
La [page d'options sur le site](/games/Final%20Fantasy%20Mystic%20Quest/player-options) vous permet de choisir vos
|
||||
options de génération et de les exporter vers un fichier de configuration.
|
||||
Il vous est aussi possible de trouver le fichier de configuration modèle de Mystic Quest dans votre répertoire d'installation d'Archipelago,
|
||||
dans le dossier Players/Templates.
|
||||
|
||||
### Vérifier son fichier de configuration
|
||||
|
||||
Si vous voulez valider votre fichier de configuration pour être sûr qu'il fonctionne, vous pouvez le vérifier sur la page du
|
||||
[Validateur de YAML](/mysterycheck).
|
||||
|
||||
## Générer une partie pour un joueur
|
||||
|
||||
1. Aller sur la page [Génération de partie](/games/Final%20Fantasy%20Mystic%20Quest/player-options), configurez vos options,
|
||||
et cliquez sur le bouton "Generate Game".
|
||||
2. Il vous sera alors présenté une page d'informations sur la seed
|
||||
3. Cliquez sur le lien "Create New Room".
|
||||
4. Vous verrez s'afficher la page du server, de laquelle vous pourrez télécharger votre fichier patch `.apmq`.
|
||||
5. Rendez-vous sur le [site FFMQR](https://ffmqrando.net/Archipelago).
|
||||
Sur cette page, sélectionnez votre ROM Final Fantasy Mystic Quest original dans le boîte "ROM", puis votre ficher patch `.apmq` dans la boîte "Load Archipelago Config File".
|
||||
Cliquez sur "Generate". Un téléchargement avec votre ROM aléatoire devrait s'amorcer.
|
||||
6. Puisque cette partie est à un seul joueur, vous n'avez plus besoin du client Archipelago ni du serveur, sentez-vous libre de les fermer.
|
||||
|
||||
## Rejoindre un MultiWorld
|
||||
|
||||
### Obtenir son patch et créer sa ROM
|
||||
|
||||
Quand vous rejoignez un multiworld, il vous sera demandé de fournir votre fichier de configuration à celui qui héberge la partie ou
|
||||
s'occupe de la génération. Une fois cela fait, l'hôte vous fournira soit un lien pour télécharger votre patch, soit un
|
||||
fichier `.zip` contenant les patchs de tous les joueurs. Votre patch devrait avoir l'extension `.apmq`.
|
||||
|
||||
Allez au [site FFMQR](https://ffmqrando.net/Archipelago) et sélectionnez votre ROM Final Fantasy Mystic Quest original dans le boîte "ROM", puis votre ficher patch `.apmq` dans la boîte "Load Archipelago Config File".
|
||||
Cliquez sur "Generate". Un téléchargement avec votre ROM aléatoire devrait s'amorcer.
|
||||
|
||||
Ouvrez le client SNI (sur Windows ArchipelagoSNIClient.exe, sur Linux ouvrez le `.appImage` puis cliquez sur SNI Client), puis ouvrez le ROM téléchargé avec votre émulateur choisi.
|
||||
|
||||
### Se connecter au client
|
||||
|
||||
#### Avec un émulateur
|
||||
|
||||
Quand le client se lance automatiquement, QUsb2Snes devrait également se lancer automatiquement en arrière-plan. Si
|
||||
c'est la première fois qu'il démarre, il vous sera peut-être demandé de l'autoriser à communiquer à travers le pare-feu
|
||||
Windows.
|
||||
|
||||
##### snes9x-rr
|
||||
|
||||
1. Chargez votre ROM si ce n'est pas déjà fait.
|
||||
2. Cliquez sur le menu "File" et survolez l'option **Lua Scripting**
|
||||
3. Cliquez alors sur **New Lua Script Window...**
|
||||
4. Dans la nouvelle fenêtre, sélectionnez **Browse...**
|
||||
5. Sélectionnez le fichier connecteur lua fourni avec votre client
|
||||
- Regardez dans le dossier Archipelago et cherchez `/SNI/lua/x64` ou `/SNI/lua/x86`, dépendemment de si votre emulateur
|
||||
est 64-bit ou 32-bit.
|
||||
6. Si vous obtenez une erreur `socket.dll missing` ou une erreur similaire lorsque vous chargez le script lua, vous devez naviguer dans le dossier
|
||||
contenant le script lua, puis copier le fichier `socket.dll` dans le dossier d'installation de votre emulateur snes9x.
|
||||
|
||||
##### BizHawk
|
||||
|
||||
1. Assurez vous d'avoir le coeur BSNES chargé. Cela est possible en cliquant sur le menu "Tools" de BizHawk et suivant
|
||||
ces options de menu :
|
||||
`Config --> Cores --> SNES --> BSNES`
|
||||
Une fois le coeur changé, vous devez redémarrer BizHawk.
|
||||
2. Chargez votre ROM si ce n'est pas déjà fait.
|
||||
3. Cliquez sur le menu "Tools" et cliquez sur **Lua Console**
|
||||
4. Cliquez sur le bouton pour ouvrir un nouveau script Lua, soit par le bouton avec un icône "Ouvrir un dossier",
|
||||
en cliquant `Open Script...` dans le menu Script ou en appuyant sur `ctrl-O`.
|
||||
5. Sélectionnez le fichier `Connector.lua` inclus avec le client
|
||||
- Regardez dans le dossier Archipelago et cherchez `/SNI/lua/x64` ou `/SNI/lua/x86`, dépendemment de si votre emulateur
|
||||
est 64-bit ou 32-bit. Notez que les versions les plus récentes de BizHawk ne sont que 64-bit.
|
||||
|
||||
##### RetroArch 1.10.1 ou plus récent
|
||||
|
||||
Vous ne devez faire ces étapes qu'une fois. À noter que RetroArch 1.9.x ne fonctionnera pas puisqu'il s'agit d'une version moins récente que 1.10.1.
|
||||
|
||||
1. Entrez dans le menu principal de RetroArch.
|
||||
2. Allez dans Settings --> User Interface. Activez l'option "Show Advanced Settings".
|
||||
3. Allez dans Settings --> Network. Activez l'option "Network Commands", qui se trouve sous "Request Device 16".
|
||||
Laissez le "Network Command Port" à sa valeur par defaut, qui devrait être 55355.
|
||||
|
||||
|
||||

|
||||
4. Allez dans le Menu Principal --> Online Updater --> Core Downloader. Trouvez et sélectionnez "Nintendo - SNES / SFC (bsnes-mercury
|
||||
Performance)".
|
||||
|
||||
Lorsque vous chargez un ROM pour Archipelago, assurez vous de toujours sélectionner le coeur **bsnes-mercury**.
|
||||
Ce sont les seuls coeurs qui permettent à des outils extérieurs de lire les données du ROM.
|
||||
|
||||
#### Avec une solution matérielle
|
||||
|
||||
Ce guide suppose que vous avez téléchargé le bon micro-logiciel pour votre appareil. Si ce n'est pas déjà le cas, faites
|
||||
le maintenant. Les utilisateurs de SD2SNES et de FXPak Pro peuvent télécharger le micro-logiciel approprié
|
||||
[ici](https://github.com/RedGuyyyy/sd2snes/releases). Pour les autres solutions, de l'aide peut être trouvée
|
||||
[sur cette page](http://usb2snes.com/#supported-platforms).
|
||||
|
||||
1. Fermez votre émulateur, qui s'est potentiellement lancé automatiquement.
|
||||
2. Ouvrez votre appareil et chargez le ROM.
|
||||
|
||||
### Se connecter au MultiServer
|
||||
|
||||
Puisque vous avez lancé SNI manuellement, vous devrez probablement lui indiquer l'adresse à laquelle il doit se connecter.
|
||||
Si le serveur est hébergé sur le site d'Archipelago, vous verrez l'adresse à laquelle vous connecter dans le haut de la page, dernière ligne avant la liste des mondes.
|
||||
Tapez `/connect adresse` (ou le "adresse" est remplacé par l'adresse archipelago, par exemple `/connect archipelago.gg:12345`) dans la boîte de commande au bas de votre client SNI, ou encore écrivez l'adresse dans la boîte "server" dans le haut du client, puis cliquez `Connect`.
|
||||
Si le serveur n'est pas hébergé sur le site d'Archipelago, demandez à l'hôte l'adresse du serveur, puis tapez `/connect adresse` (ou "adresse" est remplacé par l'adresse fourni par l'hôte) ou copiez/collez cette adresse dans le champ "Server" puis appuyez sur "Connect".
|
||||
|
||||
Le client essaiera de vous reconnecter à la nouvelle adresse du serveur, et devrait mentionner "Server Status:
|
||||
Connected". Si le client ne se connecte pas après quelques instants, il faudra peut-être rafraîchir la page de
|
||||
l'interface Web.
|
||||
|
||||
### Jouer au jeu
|
||||
|
||||
Une fois que l'interface Web affiche que la SNES et le serveur sont connectés, vous êtes prêt à jouer. Félicitations
|
||||
pour avoir rejoint un multiworld !
|
||||
|
||||
## Héberger un MultiWorld
|
||||
|
||||
La méthode recommandée pour héberger une partie est d'utiliser le service d'hébergement fourni par
|
||||
Archipelago. Le processus est relativement simple :
|
||||
|
||||
1. Récupérez les fichiers de configuration (.yaml) des joueurs.
|
||||
2. Créez une archive zip contenant ces fichiers de configuration.
|
||||
3. Téléversez l'archive zip sur le lien ci-dessous.
|
||||
- Generate page: [WebHost Seed Generation Page](/generate)
|
||||
4. Attendez un moment que la seed soit générée.
|
||||
5. Lorsque la seed est générée, vous serez redirigé vers une page d'informations "Seed Info".
|
||||
6. Cliquez sur "Create New Room". Cela vous amènera à la page du serveur. Fournissez le lien de cette page aux autres
|
||||
joueurs afin qu'ils puissent récupérer leurs patchs.
|
||||
7. Remarquez qu'un lien vers le traqueur du MultiWorld est en haut de la page de la salle. Vous devriez également
|
||||
fournir ce lien aux joueurs pour qu'ils puissent suivre la progression de la partie. N'importe quelle personne voulant
|
||||
observer devrait avoir accès à ce lien.
|
||||
8. Une fois que tous les joueurs ont rejoint, vous pouvez commencer à jouer.
|
||||
@@ -102,10 +102,10 @@ See the plando guide for more info on plando options. Plando
|
||||
guide: [Archipelago Plando Guide](/tutorial/Archipelago/plando/en)
|
||||
|
||||
* `accessibility` determines the level of access to the game the generation will expect you to have in order to reach
|
||||
your completion goal. This supports `items`, `locations`, and `minimal` and is set to `locations` by default.
|
||||
* `locations` will guarantee all locations are accessible in your world.
|
||||
your completion goal. This supports `full`, `items`, and `minimal` and is set to `full` by default.
|
||||
* `full` will guarantee all locations are accessible in your world.
|
||||
* `items` will guarantee you can acquire all logically relevant items in your world. Some items, such as keys, may
|
||||
be self-locking.
|
||||
be self-locking. This value only exists in and affects some worlds.
|
||||
* `minimal` will only guarantee that the seed is beatable. You will be guaranteed able to finish the seed logically
|
||||
but may not be able to access all locations or acquire all items. A good example of this is having a big key in
|
||||
the big chest in a dungeon in ALTTP making it impossible to get and finish the dungeon.
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import typing
|
||||
import re
|
||||
from dataclasses import dataclass, make_dataclass
|
||||
|
||||
from .ExtractedData import logic_options, starts, pool_options
|
||||
from .Rules import cost_terms
|
||||
from schema import And, Schema, Optional
|
||||
|
||||
from Options import Option, DefaultOnToggle, Toggle, Choice, Range, OptionDict, NamedRange, DeathLink
|
||||
from Options import Option, DefaultOnToggle, Toggle, Choice, Range, OptionDict, NamedRange, DeathLink, PerGameCommonOptions
|
||||
from .Charms import vanilla_costs, names as charm_names
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
@@ -403,9 +405,20 @@ class Goal(Choice):
|
||||
option_radiance = 3
|
||||
option_godhome = 4
|
||||
option_godhome_flower = 5
|
||||
option_grub_hunt = 6
|
||||
default = 0
|
||||
|
||||
|
||||
class GrubHuntGoal(NamedRange):
|
||||
"""The amount of grubs required to finish Grub Hunt.
|
||||
On 'All' any grubs from item links replacements etc. will be counted"""
|
||||
display_name = "Grub Hunt Goal"
|
||||
range_start = 1
|
||||
range_end = 46
|
||||
special_range_names = {"all": -1}
|
||||
default = 46
|
||||
|
||||
|
||||
class WhitePalace(Choice):
|
||||
"""
|
||||
Whether or not to include White Palace or not. Note: Even if excluded, the King Fragment check may still be
|
||||
@@ -520,7 +533,7 @@ hollow_knight_options: typing.Dict[str, type(Option)] = {
|
||||
**{
|
||||
option.__name__: option
|
||||
for option in (
|
||||
StartLocation, Goal, WhitePalace, ExtraPlatforms, AddUnshuffledLocations, StartingGeo,
|
||||
StartLocation, Goal, GrubHuntGoal, WhitePalace, ExtraPlatforms, AddUnshuffledLocations, StartingGeo,
|
||||
DeathLink, DeathLinkShade, DeathLinkBreaksFragileCharms,
|
||||
MinimumGeoPrice, MaximumGeoPrice,
|
||||
MinimumGrubPrice, MaximumGrubPrice,
|
||||
@@ -538,3 +551,5 @@ hollow_knight_options: typing.Dict[str, type(Option)] = {
|
||||
},
|
||||
**cost_sanity_weights
|
||||
}
|
||||
|
||||
HKOptions = make_dataclass("HKOptions", [(name, option) for name, option in hollow_knight_options.items()], bases=(PerGameCommonOptions,))
|
||||
|
||||
@@ -49,3 +49,42 @@ def set_rules(hk_world: World):
|
||||
if term == "GEO": # No geo logic!
|
||||
continue
|
||||
add_rule(location, lambda state, term=term, amount=amount: state.count(term, player) >= amount)
|
||||
|
||||
|
||||
def _hk_nail_combat(state, player) -> bool:
|
||||
return state.has_any({'LEFTSLASH', 'RIGHTSLASH', 'UPSLASH'}, player)
|
||||
|
||||
|
||||
def _hk_can_beat_thk(state, player) -> bool:
|
||||
return (
|
||||
state.has('Opened_Black_Egg_Temple', player)
|
||||
and (state.count('FIREBALL', player) + state.count('SCREAM', player) + state.count('QUAKE', player)) > 1
|
||||
and _hk_nail_combat(state, player)
|
||||
and (
|
||||
state.has_any({'LEFTDASH', 'RIGHTDASH'}, player)
|
||||
or state._hk_option(player, 'ProficientCombat')
|
||||
)
|
||||
and state.has('FOCUS', player)
|
||||
)
|
||||
|
||||
|
||||
def _hk_siblings_ending(state, player) -> bool:
|
||||
return _hk_can_beat_thk(state, player) and state.has('WHITEFRAGMENT', player, 3)
|
||||
|
||||
|
||||
def _hk_can_beat_radiance(state, player) -> bool:
|
||||
return (
|
||||
state.has('Opened_Black_Egg_Temple', player)
|
||||
and _hk_nail_combat(state, player)
|
||||
and state.has('WHITEFRAGMENT', player, 3)
|
||||
and state.has('DREAMNAIL', player)
|
||||
and (
|
||||
(state.has('LEFTCLAW', player) and state.has('RIGHTCLAW', player))
|
||||
or state.has('WINGS', player)
|
||||
)
|
||||
and (state.count('FIREBALL', player) + state.count('SCREAM', player) + state.count('QUAKE', player)) > 1
|
||||
and (
|
||||
(state.has('LEFTDASH', player, 2) and state.has('RIGHTDASH', player, 2)) # Both Shade Cloaks
|
||||
or (state._hk_option(player, 'ProficientCombat') and state.has('QUAKE', player)) # or Dive
|
||||
)
|
||||
)
|
||||
|
||||
@@ -5,19 +5,20 @@ import typing
|
||||
from copy import deepcopy
|
||||
import itertools
|
||||
import operator
|
||||
from collections import defaultdict, Counter
|
||||
|
||||
logger = logging.getLogger("Hollow Knight")
|
||||
|
||||
from .Items import item_table, lookup_type_to_names, item_name_groups
|
||||
from .Regions import create_regions
|
||||
from .Rules import set_rules, cost_terms
|
||||
from .Rules import set_rules, cost_terms, _hk_can_beat_thk, _hk_siblings_ending, _hk_can_beat_radiance
|
||||
from .Options import hollow_knight_options, hollow_knight_randomize_options, Goal, WhitePalace, CostSanity, \
|
||||
shop_to_option
|
||||
shop_to_option, HKOptions, GrubHuntGoal
|
||||
from .ExtractedData import locations, starts, multi_locations, location_to_region_lookup, \
|
||||
event_names, item_effects, connectors, one_ways, vanilla_shop_costs, vanilla_location_costs
|
||||
from .Charms import names as charm_names
|
||||
|
||||
from BaseClasses import Region, Location, MultiWorld, Item, LocationProgressType, Tutorial, ItemClassification
|
||||
from BaseClasses import Region, Location, MultiWorld, Item, LocationProgressType, Tutorial, ItemClassification, CollectionState
|
||||
from worlds.AutoWorld import World, LogicMixin, WebWorld
|
||||
|
||||
path_of_pain_locations = {
|
||||
@@ -142,7 +143,8 @@ class HKWorld(World):
|
||||
As the enigmatic Knight, you’ll traverse the depths, unravel its mysteries and conquer its evils.
|
||||
""" # from https://www.hollowknight.com
|
||||
game: str = "Hollow Knight"
|
||||
option_definitions = hollow_knight_options
|
||||
options_dataclass = HKOptions
|
||||
options: HKOptions
|
||||
|
||||
web = HKWeb()
|
||||
|
||||
@@ -154,40 +156,42 @@ class HKWorld(World):
|
||||
ranges: typing.Dict[str, typing.Tuple[int, int]]
|
||||
charm_costs: typing.List[int]
|
||||
cached_filler_items = {}
|
||||
grub_count: int
|
||||
|
||||
def __init__(self, world, player):
|
||||
super(HKWorld, self).__init__(world, player)
|
||||
def __init__(self, multiworld, player):
|
||||
super(HKWorld, self).__init__(multiworld, player)
|
||||
self.created_multi_locations: typing.Dict[str, typing.List[HKLocation]] = {
|
||||
location: list() for location in multi_locations
|
||||
}
|
||||
self.ranges = {}
|
||||
self.created_shop_items = 0
|
||||
self.vanilla_shop_costs = deepcopy(vanilla_shop_costs)
|
||||
self.grub_count = 0
|
||||
|
||||
def generate_early(self):
|
||||
world = self.multiworld
|
||||
charm_costs = world.RandomCharmCosts[self.player].get_costs(world.random)
|
||||
self.charm_costs = world.PlandoCharmCosts[self.player].get_costs(charm_costs)
|
||||
# world.exclude_locations[self.player].value.update(white_palace_locations)
|
||||
options = self.options
|
||||
charm_costs = options.RandomCharmCosts.get_costs(self.random)
|
||||
self.charm_costs = options.PlandoCharmCosts.get_costs(charm_costs)
|
||||
# options.exclude_locations.value.update(white_palace_locations)
|
||||
for term, data in cost_terms.items():
|
||||
mini = getattr(world, f"Minimum{data.option}Price")[self.player]
|
||||
maxi = getattr(world, f"Maximum{data.option}Price")[self.player]
|
||||
mini = getattr(options, f"Minimum{data.option}Price")
|
||||
maxi = getattr(options, f"Maximum{data.option}Price")
|
||||
# if minimum > maximum, set minimum to maximum
|
||||
mini.value = min(mini.value, maxi.value)
|
||||
self.ranges[term] = mini.value, maxi.value
|
||||
world.push_precollected(HKItem(starts[world.StartLocation[self.player].current_key],
|
||||
self.multiworld.push_precollected(HKItem(starts[options.StartLocation.current_key],
|
||||
True, None, "Event", self.player))
|
||||
|
||||
def white_palace_exclusions(self):
|
||||
exclusions = set()
|
||||
wp = self.multiworld.WhitePalace[self.player]
|
||||
wp = self.options.WhitePalace
|
||||
if wp <= WhitePalace.option_nopathofpain:
|
||||
exclusions.update(path_of_pain_locations)
|
||||
if wp <= WhitePalace.option_kingfragment:
|
||||
exclusions.update(white_palace_checks)
|
||||
if wp == WhitePalace.option_exclude:
|
||||
exclusions.add("King_Fragment")
|
||||
if self.multiworld.RandomizeCharms[self.player]:
|
||||
if self.options.RandomizeCharms:
|
||||
# If charms are randomized, this will be junk-filled -- so transitions and events are not progression
|
||||
exclusions.update(white_palace_transitions)
|
||||
exclusions.update(white_palace_events)
|
||||
@@ -200,7 +204,7 @@ class HKWorld(World):
|
||||
|
||||
# check for any goal that godhome events are relevant to
|
||||
all_event_names = event_names.copy()
|
||||
if self.multiworld.Goal[self.player] in [Goal.option_godhome, Goal.option_godhome_flower]:
|
||||
if self.options.Goal in [Goal.option_godhome, Goal.option_godhome_flower, Goal.option_any]:
|
||||
from .GodhomeData import godhome_event_names
|
||||
all_event_names.update(set(godhome_event_names))
|
||||
|
||||
@@ -230,12 +234,12 @@ class HKWorld(World):
|
||||
pool: typing.List[HKItem] = []
|
||||
wp_exclusions = self.white_palace_exclusions()
|
||||
junk_replace: typing.Set[str] = set()
|
||||
if self.multiworld.RemoveSpellUpgrades[self.player]:
|
||||
if self.options.RemoveSpellUpgrades:
|
||||
junk_replace.update(("Abyss_Shriek", "Shade_Soul", "Descending_Dark"))
|
||||
|
||||
randomized_starting_items = set()
|
||||
for attr, items in randomizable_starting_items.items():
|
||||
if getattr(self.multiworld, attr)[self.player]:
|
||||
if getattr(self.options, attr):
|
||||
randomized_starting_items.update(items)
|
||||
|
||||
# noinspection PyShadowingNames
|
||||
@@ -257,7 +261,7 @@ class HKWorld(World):
|
||||
if item_name in junk_replace:
|
||||
item_name = self.get_filler_item_name()
|
||||
|
||||
item = self.create_item(item_name) if not vanilla or location_name == "Start" or self.multiworld.AddUnshuffledLocations[self.player] else self.create_event(item_name)
|
||||
item = self.create_item(item_name) if not vanilla or location_name == "Start" or self.options.AddUnshuffledLocations else self.create_event(item_name)
|
||||
|
||||
if location_name == "Start":
|
||||
if item_name in randomized_starting_items:
|
||||
@@ -281,55 +285,55 @@ class HKWorld(World):
|
||||
location.progress_type = LocationProgressType.EXCLUDED
|
||||
|
||||
for option_key, option in hollow_knight_randomize_options.items():
|
||||
randomized = getattr(self.multiworld, option_key)[self.player]
|
||||
if all([not randomized, option_key in logicless_options, not self.multiworld.AddUnshuffledLocations[self.player]]):
|
||||
randomized = getattr(self.options, option_key)
|
||||
if all([not randomized, option_key in logicless_options, not self.options.AddUnshuffledLocations]):
|
||||
continue
|
||||
for item_name, location_name in zip(option.items, option.locations):
|
||||
if item_name in junk_replace:
|
||||
item_name = self.get_filler_item_name()
|
||||
|
||||
if (item_name == "Crystal_Heart" and self.multiworld.SplitCrystalHeart[self.player]) or \
|
||||
(item_name == "Mothwing_Cloak" and self.multiworld.SplitMothwingCloak[self.player]):
|
||||
if (item_name == "Crystal_Heart" and self.options.SplitCrystalHeart) or \
|
||||
(item_name == "Mothwing_Cloak" and self.options.SplitMothwingCloak):
|
||||
_add("Left_" + item_name, location_name, randomized)
|
||||
_add("Right_" + item_name, "Split_" + location_name, randomized)
|
||||
continue
|
||||
if item_name == "Mantis_Claw" and self.multiworld.SplitMantisClaw[self.player]:
|
||||
if item_name == "Mantis_Claw" and self.options.SplitMantisClaw:
|
||||
_add("Left_" + item_name, "Left_" + location_name, randomized)
|
||||
_add("Right_" + item_name, "Right_" + location_name, randomized)
|
||||
continue
|
||||
if item_name == "Shade_Cloak" and self.multiworld.SplitMothwingCloak[self.player]:
|
||||
if self.multiworld.random.randint(0, 1):
|
||||
if item_name == "Shade_Cloak" and self.options.SplitMothwingCloak:
|
||||
if self.random.randint(0, 1):
|
||||
item_name = "Left_Mothwing_Cloak"
|
||||
else:
|
||||
item_name = "Right_Mothwing_Cloak"
|
||||
if item_name == "Grimmchild2" and self.multiworld.RandomizeGrimmkinFlames[self.player] and self.multiworld.RandomizeCharms[self.player]:
|
||||
if item_name == "Grimmchild2" and self.options.RandomizeGrimmkinFlames and self.options.RandomizeCharms:
|
||||
_add("Grimmchild1", location_name, randomized)
|
||||
continue
|
||||
|
||||
_add(item_name, location_name, randomized)
|
||||
|
||||
if self.multiworld.RandomizeElevatorPass[self.player]:
|
||||
if self.options.RandomizeElevatorPass:
|
||||
randomized = True
|
||||
_add("Elevator_Pass", "Elevator_Pass", randomized)
|
||||
|
||||
for shop, locations in self.created_multi_locations.items():
|
||||
for _ in range(len(locations), getattr(self.multiworld, shop_to_option[shop])[self.player].value):
|
||||
for _ in range(len(locations), getattr(self.options, shop_to_option[shop]).value):
|
||||
loc = self.create_location(shop)
|
||||
unfilled_locations += 1
|
||||
|
||||
# Balance the pool
|
||||
item_count = len(pool)
|
||||
additional_shop_items = max(item_count - unfilled_locations, self.multiworld.ExtraShopSlots[self.player].value)
|
||||
additional_shop_items = max(item_count - unfilled_locations, self.options.ExtraShopSlots.value)
|
||||
|
||||
# Add additional shop items, as needed.
|
||||
if additional_shop_items > 0:
|
||||
shops = list(shop for shop, locations in self.created_multi_locations.items() if len(locations) < 16)
|
||||
if not self.multiworld.EggShopSlots[self.player].value: # No eggshop, so don't place items there
|
||||
if not self.options.EggShopSlots: # No eggshop, so don't place items there
|
||||
shops.remove('Egg_Shop')
|
||||
|
||||
if shops:
|
||||
for _ in range(additional_shop_items):
|
||||
shop = self.multiworld.random.choice(shops)
|
||||
shop = self.random.choice(shops)
|
||||
loc = self.create_location(shop)
|
||||
unfilled_locations += 1
|
||||
if len(self.created_multi_locations[shop]) >= 16:
|
||||
@@ -355,7 +359,7 @@ class HKWorld(World):
|
||||
loc.costs = costs
|
||||
|
||||
def apply_costsanity(self):
|
||||
setting = self.multiworld.CostSanity[self.player].value
|
||||
setting = self.options.CostSanity.value
|
||||
if not setting:
|
||||
return # noop
|
||||
|
||||
@@ -369,10 +373,10 @@ class HKWorld(World):
|
||||
|
||||
return {k: v for k, v in weights.items() if v}
|
||||
|
||||
random = self.multiworld.random
|
||||
hybrid_chance = getattr(self.multiworld, f"CostSanityHybridChance")[self.player].value
|
||||
random = self.random
|
||||
hybrid_chance = getattr(self.options, f"CostSanityHybridChance").value
|
||||
weights = {
|
||||
data.term: getattr(self.multiworld, f"CostSanity{data.option}Weight")[self.player].value
|
||||
data.term: getattr(self.options, f"CostSanity{data.option}Weight").value
|
||||
for data in cost_terms.values()
|
||||
}
|
||||
weights_geoless = dict(weights)
|
||||
@@ -427,31 +431,86 @@ class HKWorld(World):
|
||||
location.sort_costs()
|
||||
|
||||
def set_rules(self):
|
||||
world = self.multiworld
|
||||
multiworld = self.multiworld
|
||||
player = self.player
|
||||
goal = world.Goal[player]
|
||||
goal = self.options.Goal
|
||||
if goal == Goal.option_hollowknight:
|
||||
world.completion_condition[player] = lambda state: state._hk_can_beat_thk(player)
|
||||
multiworld.completion_condition[player] = lambda state: _hk_can_beat_thk(state, player)
|
||||
elif goal == Goal.option_siblings:
|
||||
world.completion_condition[player] = lambda state: state._hk_siblings_ending(player)
|
||||
multiworld.completion_condition[player] = lambda state: _hk_siblings_ending(state, player)
|
||||
elif goal == Goal.option_radiance:
|
||||
world.completion_condition[player] = lambda state: state._hk_can_beat_radiance(player)
|
||||
multiworld.completion_condition[player] = lambda state: _hk_can_beat_radiance(state, player)
|
||||
elif goal == Goal.option_godhome:
|
||||
world.completion_condition[player] = lambda state: state.count("Defeated_Pantheon_5", player)
|
||||
multiworld.completion_condition[player] = lambda state: state.count("Defeated_Pantheon_5", player)
|
||||
elif goal == Goal.option_godhome_flower:
|
||||
world.completion_condition[player] = lambda state: state.count("Godhome_Flower_Quest", player)
|
||||
multiworld.completion_condition[player] = lambda state: state.count("Godhome_Flower_Quest", player)
|
||||
elif goal == Goal.option_grub_hunt:
|
||||
pass # will set in stage_pre_fill()
|
||||
else:
|
||||
# Any goal
|
||||
world.completion_condition[player] = lambda state: state._hk_can_beat_thk(player) or state._hk_can_beat_radiance(player)
|
||||
multiworld.completion_condition[player] = lambda state: _hk_siblings_ending(state, player) and \
|
||||
_hk_can_beat_radiance(state, player) and state.count("Godhome_Flower_Quest", player)
|
||||
|
||||
set_rules(self)
|
||||
|
||||
@classmethod
|
||||
def stage_pre_fill(cls, multiworld: "MultiWorld"):
|
||||
def set_goal(player, grub_rule: typing.Callable[[CollectionState], bool]):
|
||||
world = multiworld.worlds[player]
|
||||
|
||||
if world.options.Goal == "grub_hunt":
|
||||
multiworld.completion_condition[player] = grub_rule
|
||||
else:
|
||||
old_rule = multiworld.completion_condition[player]
|
||||
multiworld.completion_condition[player] = lambda state: old_rule(state) and grub_rule(state)
|
||||
|
||||
worlds = [world for world in multiworld.get_game_worlds(cls.game) if world.options.Goal in ["any", "grub_hunt"]]
|
||||
if worlds:
|
||||
grubs = [item for item in multiworld.get_items() if item.name == "Grub"]
|
||||
all_grub_players = [world.player for world in worlds if world.options.GrubHuntGoal == GrubHuntGoal.special_range_names["all"]]
|
||||
|
||||
if all_grub_players:
|
||||
group_lookup = defaultdict(set)
|
||||
for group_id, group in multiworld.groups.items():
|
||||
for player in group["players"]:
|
||||
group_lookup[group_id].add(player)
|
||||
|
||||
grub_count_per_player = Counter()
|
||||
per_player_grubs_per_player = defaultdict(Counter)
|
||||
|
||||
for grub in grubs:
|
||||
player = grub.player
|
||||
if player in group_lookup:
|
||||
for real_player in group_lookup[player]:
|
||||
per_player_grubs_per_player[real_player][player] += 1
|
||||
else:
|
||||
per_player_grubs_per_player[player][player] += 1
|
||||
|
||||
if grub.location and grub.location.player in group_lookup.keys():
|
||||
for real_player in group_lookup[grub.location.player]:
|
||||
grub_count_per_player[real_player] += 1
|
||||
else:
|
||||
grub_count_per_player[player] += 1
|
||||
|
||||
for player, count in grub_count_per_player.items():
|
||||
multiworld.worlds[player].grub_count = count
|
||||
|
||||
for player, grub_player_count in per_player_grubs_per_player.items():
|
||||
if player in all_grub_players:
|
||||
set_goal(player, lambda state, g=grub_player_count: all(state.has("Grub", owner, count) for owner, count in g.items()))
|
||||
|
||||
for world in worlds:
|
||||
if world.player not in all_grub_players:
|
||||
world.grub_count = world.options.GrubHuntGoal.value
|
||||
player = world.player
|
||||
set_goal(player, lambda state, p=player, c=world.grub_count: state.has("Grub", p, c))
|
||||
|
||||
def fill_slot_data(self):
|
||||
slot_data = {}
|
||||
|
||||
options = slot_data["options"] = {}
|
||||
for option_name in self.option_definitions:
|
||||
option = getattr(self.multiworld, option_name)[self.player]
|
||||
for option_name in hollow_knight_options:
|
||||
option = getattr(self.options, option_name)
|
||||
try:
|
||||
optionvalue = int(option.value)
|
||||
except TypeError:
|
||||
@@ -460,10 +519,10 @@ class HKWorld(World):
|
||||
options[option_name] = optionvalue
|
||||
|
||||
# 32 bit int
|
||||
slot_data["seed"] = self.multiworld.per_slot_randoms[self.player].randint(-2147483647, 2147483646)
|
||||
slot_data["seed"] = self.random.randint(-2147483647, 2147483646)
|
||||
|
||||
# Backwards compatibility for shop cost data (HKAP < 0.1.0)
|
||||
if not self.multiworld.CostSanity[self.player]:
|
||||
if not self.options.CostSanity:
|
||||
for shop, terms in shop_cost_types.items():
|
||||
unit = cost_terms[next(iter(terms))].option
|
||||
if unit == "Geo":
|
||||
@@ -483,6 +542,8 @@ class HKWorld(World):
|
||||
|
||||
slot_data["notch_costs"] = self.charm_costs
|
||||
|
||||
slot_data["grub_count"] = self.grub_count
|
||||
|
||||
return slot_data
|
||||
|
||||
def create_item(self, name: str) -> HKItem:
|
||||
@@ -498,7 +559,7 @@ class HKWorld(World):
|
||||
basename = name
|
||||
if name in shop_cost_types:
|
||||
costs = {
|
||||
term: self.multiworld.random.randint(*self.ranges[term])
|
||||
term: self.random.randint(*self.ranges[term])
|
||||
for term in shop_cost_types[name]
|
||||
}
|
||||
elif name in vanilla_location_costs:
|
||||
@@ -512,7 +573,7 @@ class HKWorld(World):
|
||||
|
||||
region = self.multiworld.get_region("Menu", self.player)
|
||||
|
||||
if vanilla and not self.multiworld.AddUnshuffledLocations[self.player]:
|
||||
if vanilla and not self.options.AddUnshuffledLocations:
|
||||
loc = HKLocation(self.player, name,
|
||||
None, region, costs=costs, vanilla=vanilla,
|
||||
basename=basename)
|
||||
@@ -554,31 +615,32 @@ class HKWorld(World):
|
||||
for effect_name, effect_value in item_effects.get(item.name, {}).items():
|
||||
if state.prog_items[item.player][effect_name] == effect_value:
|
||||
del state.prog_items[item.player][effect_name]
|
||||
state.prog_items[item.player][effect_name] -= effect_value
|
||||
else:
|
||||
state.prog_items[item.player][effect_name] -= effect_value
|
||||
|
||||
return change
|
||||
|
||||
@classmethod
|
||||
def stage_write_spoiler(cls, world: MultiWorld, spoiler_handle):
|
||||
hk_players = world.get_game_players(cls.game)
|
||||
def stage_write_spoiler(cls, multiworld: MultiWorld, spoiler_handle):
|
||||
hk_players = multiworld.get_game_players(cls.game)
|
||||
spoiler_handle.write('\n\nCharm Notches:')
|
||||
for player in hk_players:
|
||||
name = world.get_player_name(player)
|
||||
name = multiworld.get_player_name(player)
|
||||
spoiler_handle.write(f'\n{name}\n')
|
||||
hk_world: HKWorld = world.worlds[player]
|
||||
hk_world: HKWorld = multiworld.worlds[player]
|
||||
for charm_number, cost in enumerate(hk_world.charm_costs):
|
||||
spoiler_handle.write(f"\n{charm_names[charm_number]}: {cost}")
|
||||
|
||||
spoiler_handle.write('\n\nShop Prices:')
|
||||
for player in hk_players:
|
||||
name = world.get_player_name(player)
|
||||
name = multiworld.get_player_name(player)
|
||||
spoiler_handle.write(f'\n{name}\n')
|
||||
hk_world: HKWorld = world.worlds[player]
|
||||
hk_world: HKWorld = multiworld.worlds[player]
|
||||
|
||||
if world.CostSanity[player].value:
|
||||
if hk_world.options.CostSanity:
|
||||
for loc in sorted(
|
||||
(
|
||||
loc for loc in itertools.chain(*(region.locations for region in world.get_regions(player)))
|
||||
loc for loc in itertools.chain(*(region.locations for region in multiworld.get_regions(player)))
|
||||
if loc.costs
|
||||
), key=operator.attrgetter('name')
|
||||
):
|
||||
@@ -602,15 +664,15 @@ class HKWorld(World):
|
||||
'RandomizeGeoRocks', 'RandomizeSoulTotems', 'RandomizeLoreTablets', 'RandomizeJunkPitChests',
|
||||
'RandomizeRancidEggs'
|
||||
):
|
||||
if getattr(self.multiworld, group):
|
||||
if getattr(self.options, group):
|
||||
fillers.extend(item for item in hollow_knight_randomize_options[group].items if item not in
|
||||
exclusions)
|
||||
self.cached_filler_items[self.player] = fillers
|
||||
return self.multiworld.random.choice(self.cached_filler_items[self.player])
|
||||
return self.random.choice(self.cached_filler_items[self.player])
|
||||
|
||||
|
||||
def create_region(world: MultiWorld, player: int, name: str, location_names=None) -> Region:
|
||||
ret = Region(name, player, world)
|
||||
def create_region(multiworld: MultiWorld, player: int, name: str, location_names=None) -> Region:
|
||||
ret = Region(name, player, multiworld)
|
||||
if location_names:
|
||||
for location in location_names:
|
||||
loc_id = HKWorld.location_name_to_id.get(location, None)
|
||||
@@ -683,42 +745,7 @@ class HKLogicMixin(LogicMixin):
|
||||
return sum(self.multiworld.worlds[player].charm_costs[notch] for notch in notches)
|
||||
|
||||
def _hk_option(self, player: int, option_name: str) -> int:
|
||||
return getattr(self.multiworld, option_name)[player].value
|
||||
return getattr(self.multiworld.worlds[player].options, option_name).value
|
||||
|
||||
def _hk_start(self, player, start_location: str) -> bool:
|
||||
return self.multiworld.StartLocation[player] == start_location
|
||||
|
||||
def _hk_nail_combat(self, player: int) -> bool:
|
||||
return self.has_any({'LEFTSLASH', 'RIGHTSLASH', 'UPSLASH'}, player)
|
||||
|
||||
def _hk_can_beat_thk(self, player: int) -> bool:
|
||||
return (
|
||||
self.has('Opened_Black_Egg_Temple', player)
|
||||
and (self.count('FIREBALL', player) + self.count('SCREAM', player) + self.count('QUAKE', player)) > 1
|
||||
and self._hk_nail_combat(player)
|
||||
and (
|
||||
self.has_any({'LEFTDASH', 'RIGHTDASH'}, player)
|
||||
or self._hk_option(player, 'ProficientCombat')
|
||||
)
|
||||
and self.has('FOCUS', player)
|
||||
)
|
||||
|
||||
def _hk_siblings_ending(self, player: int) -> bool:
|
||||
return self._hk_can_beat_thk(player) and self.has('WHITEFRAGMENT', player, 3)
|
||||
|
||||
def _hk_can_beat_radiance(self, player: int) -> bool:
|
||||
return (
|
||||
self.has('Opened_Black_Egg_Temple', player)
|
||||
and self._hk_nail_combat(player)
|
||||
and self.has('WHITEFRAGMENT', player, 3)
|
||||
and self.has('DREAMNAIL', player)
|
||||
and (
|
||||
(self.has('LEFTCLAW', player) and self.has('RIGHTCLAW', player))
|
||||
or self.has('WINGS', player)
|
||||
)
|
||||
and (self.count('FIREBALL', player) + self.count('SCREAM', player) + self.count('QUAKE', player)) > 1
|
||||
and (
|
||||
(self.has('LEFTDASH', player, 2) and self.has('RIGHTDASH', player, 2)) # Both Shade Cloaks
|
||||
or (self._hk_option(player, 'ProficientCombat') and self.has('QUAKE', player)) # or Dive
|
||||
)
|
||||
)
|
||||
return self.multiworld.worlds[player].options.StartLocation == start_location
|
||||
|
||||
258
worlds/kh1/Client.py
Normal file
258
worlds/kh1/Client.py
Normal file
@@ -0,0 +1,258 @@
|
||||
from __future__ import annotations
|
||||
import os
|
||||
import json
|
||||
import sys
|
||||
import asyncio
|
||||
import shutil
|
||||
import logging
|
||||
import re
|
||||
import time
|
||||
from calendar import timegm
|
||||
|
||||
import ModuleUpdate
|
||||
ModuleUpdate.update()
|
||||
|
||||
import Utils
|
||||
death_link = False
|
||||
item_num = 1
|
||||
|
||||
logger = logging.getLogger("Client")
|
||||
|
||||
if __name__ == "__main__":
|
||||
Utils.init_logging("KH1Client", exception_logger="Client")
|
||||
|
||||
from NetUtils import NetworkItem, ClientStatus
|
||||
from CommonClient import gui_enabled, logger, get_base_parser, ClientCommandProcessor, \
|
||||
CommonContext, server_loop
|
||||
|
||||
|
||||
def check_stdin() -> None:
|
||||
if Utils.is_windows and sys.stdin:
|
||||
print("WARNING: Console input is not routed reliably on Windows, use the GUI instead.")
|
||||
|
||||
class KH1ClientCommandProcessor(ClientCommandProcessor):
|
||||
def _cmd_deathlink(self):
|
||||
"""Toggles Deathlink"""
|
||||
global death_link
|
||||
if death_link:
|
||||
death_link = False
|
||||
self.output(f"Death Link turned off")
|
||||
else:
|
||||
death_link = True
|
||||
self.output(f"Death Link turned on")
|
||||
|
||||
class KH1Context(CommonContext):
|
||||
command_processor: int = KH1ClientCommandProcessor
|
||||
game = "Kingdom Hearts"
|
||||
items_handling = 0b111 # full remote
|
||||
|
||||
def __init__(self, server_address, password):
|
||||
super(KH1Context, self).__init__(server_address, password)
|
||||
self.send_index: int = 0
|
||||
self.syncing = False
|
||||
self.awaiting_bridge = False
|
||||
# self.game_communication_path: files go in this path to pass data between us and the actual game
|
||||
if "localappdata" in os.environ:
|
||||
self.game_communication_path = os.path.expandvars(r"%localappdata%/KH1FM")
|
||||
else:
|
||||
self.game_communication_path = os.path.expandvars(r"$HOME/KH1FM")
|
||||
if not os.path.exists(self.game_communication_path):
|
||||
os.makedirs(self.game_communication_path)
|
||||
for root, dirs, files in os.walk(self.game_communication_path):
|
||||
for file in files:
|
||||
if file.find("obtain") <= -1:
|
||||
os.remove(root+"/"+file)
|
||||
|
||||
async def server_auth(self, password_requested: bool = False):
|
||||
if password_requested and not self.password:
|
||||
await super(KH1Context, self).server_auth(password_requested)
|
||||
await self.get_username()
|
||||
await self.send_connect()
|
||||
|
||||
async def connection_closed(self):
|
||||
await super(KH1Context, self).connection_closed()
|
||||
for root, dirs, files in os.walk(self.game_communication_path):
|
||||
for file in files:
|
||||
if file.find("obtain") <= -1:
|
||||
os.remove(root + "/" + file)
|
||||
global item_num
|
||||
item_num = 1
|
||||
|
||||
@property
|
||||
def endpoints(self):
|
||||
if self.server:
|
||||
return [self.server]
|
||||
else:
|
||||
return []
|
||||
|
||||
async def shutdown(self):
|
||||
await super(KH1Context, self).shutdown()
|
||||
for root, dirs, files in os.walk(self.game_communication_path):
|
||||
for file in files:
|
||||
if file.find("obtain") <= -1:
|
||||
os.remove(root+"/"+file)
|
||||
global item_num
|
||||
item_num = 1
|
||||
|
||||
def on_package(self, cmd: str, args: dict):
|
||||
if cmd in {"Connected"}:
|
||||
if not os.path.exists(self.game_communication_path):
|
||||
os.makedirs(self.game_communication_path)
|
||||
for ss in self.checked_locations:
|
||||
filename = f"send{ss}"
|
||||
with open(os.path.join(self.game_communication_path, filename), 'w') as f:
|
||||
f.close()
|
||||
|
||||
#Handle Slot Data
|
||||
for key in list(args['slot_data'].keys()):
|
||||
with open(os.path.join(self.game_communication_path, key + ".cfg"), 'w') as f:
|
||||
f.write(str(args['slot_data'][key]))
|
||||
f.close()
|
||||
|
||||
###Support Legacy Games
|
||||
if "Required Reports" in list(args['slot_data'].keys()) and "required_reports_eotw" not in list(args['slot_data'].keys()):
|
||||
reports_required = args['slot_data']["Required Reports"]
|
||||
with open(os.path.join(self.game_communication_path, "required_reports.cfg"), 'w') as f:
|
||||
f.write(str(reports_required))
|
||||
f.close()
|
||||
###End Support Legacy Games
|
||||
|
||||
#End Handle Slot Data
|
||||
|
||||
if cmd in {"ReceivedItems"}:
|
||||
start_index = args["index"]
|
||||
if start_index != len(self.items_received):
|
||||
global item_num
|
||||
for item in args['items']:
|
||||
found = False
|
||||
item_filename = f"AP_{str(item_num)}.item"
|
||||
for filename in os.listdir(self.game_communication_path):
|
||||
if filename == item_filename:
|
||||
found = True
|
||||
if not found:
|
||||
with open(os.path.join(self.game_communication_path, item_filename), 'w') as f:
|
||||
f.write(str(NetworkItem(*item).item) + "\n" + str(NetworkItem(*item).location) + "\n" + str(NetworkItem(*item).player))
|
||||
f.close()
|
||||
item_num = item_num + 1
|
||||
|
||||
if cmd in {"RoomUpdate"}:
|
||||
if "checked_locations" in args:
|
||||
for ss in self.checked_locations:
|
||||
filename = f"send{ss}"
|
||||
with open(os.path.join(self.game_communication_path, filename), 'w') as f:
|
||||
f.close()
|
||||
|
||||
if cmd in {"PrintJSON"} and "type" in args:
|
||||
if args["type"] == "ItemSend":
|
||||
item = args["item"]
|
||||
networkItem = NetworkItem(*item)
|
||||
recieverID = args["receiving"]
|
||||
senderID = networkItem.player
|
||||
locationID = networkItem.location
|
||||
if recieverID != self.slot and senderID == self.slot:
|
||||
itemName = self.item_names.lookup_in_slot(networkItem.item, recieverID)
|
||||
itemCategory = networkItem.flags
|
||||
recieverName = self.player_names[recieverID]
|
||||
filename = "sent"
|
||||
with open(os.path.join(self.game_communication_path, filename), 'w') as f:
|
||||
f.write(
|
||||
re.sub('[^A-Za-z0-9 ]+', '',str(itemName))[:15] + "\n"
|
||||
+ re.sub('[^A-Za-z0-9 ]+', '',str(recieverName))[:6] + "\n"
|
||||
+ str(itemCategory) + "\n"
|
||||
+ str(locationID))
|
||||
f.close()
|
||||
|
||||
def on_deathlink(self, data: dict[str, object]):
|
||||
self.last_death_link = max(data["time"], self.last_death_link)
|
||||
text = data.get("cause", "")
|
||||
if text:
|
||||
logger.info(f"DeathLink: {text}")
|
||||
else:
|
||||
logger.info(f"DeathLink: Received from {data['source']}")
|
||||
with open(os.path.join(self.game_communication_path, 'dlreceive'), 'w') as f:
|
||||
f.write(str(int(data["time"])))
|
||||
f.close()
|
||||
|
||||
def run_gui(self):
|
||||
"""Import kivy UI system and start running it as self.ui_task."""
|
||||
from kvui import GameManager
|
||||
|
||||
class KH1Manager(GameManager):
|
||||
logging_pairs = [
|
||||
("Client", "Archipelago")
|
||||
]
|
||||
base_title = "Archipelago KH1 Client"
|
||||
|
||||
self.ui = KH1Manager(self)
|
||||
self.ui_task = asyncio.create_task(self.ui.async_run(), name="UI")
|
||||
|
||||
|
||||
async def game_watcher(ctx: KH1Context):
|
||||
from .Locations import lookup_id_to_name
|
||||
while not ctx.exit_event.is_set():
|
||||
global death_link
|
||||
if death_link and "DeathLink" not in ctx.tags:
|
||||
await ctx.update_death_link(death_link)
|
||||
if not death_link and "DeathLink" in ctx.tags:
|
||||
await ctx.update_death_link(death_link)
|
||||
if ctx.syncing == True:
|
||||
sync_msg = [{'cmd': 'Sync'}]
|
||||
if ctx.locations_checked:
|
||||
sync_msg.append({"cmd": "LocationChecks", "locations": list(ctx.locations_checked)})
|
||||
await ctx.send_msgs(sync_msg)
|
||||
ctx.syncing = False
|
||||
sending = []
|
||||
victory = False
|
||||
for root, dirs, files in os.walk(ctx.game_communication_path):
|
||||
for file in files:
|
||||
if file.find("send") > -1:
|
||||
st = file.split("send", -1)[1]
|
||||
if st != "nil":
|
||||
sending = sending+[(int(st))]
|
||||
if file.find("victory") > -1:
|
||||
victory = True
|
||||
if file.find("dlsend") > -1 and "DeathLink" in ctx.tags:
|
||||
st = file.split("dlsend", -1)[1]
|
||||
if st != "nil":
|
||||
if timegm(time.strptime(st, '%Y%m%d%H%M%S')) > ctx.last_death_link and int(time.time()) % int(timegm(time.strptime(st, '%Y%m%d%H%M%S'))) < 10:
|
||||
await ctx.send_death(death_text = "Sora was defeated!")
|
||||
if file.find("insynthshop") > -1:
|
||||
await ctx.send_msgs([{
|
||||
"cmd": "LocationScouts",
|
||||
"locations": [2656401,2656402,2656403,2656404,2656405,2656406],
|
||||
"create_as_hint": 2
|
||||
}])
|
||||
ctx.locations_checked = sending
|
||||
message = [{"cmd": 'LocationChecks', "locations": sending}]
|
||||
await ctx.send_msgs(message)
|
||||
if not ctx.finished_game and victory:
|
||||
await ctx.send_msgs([{"cmd": "StatusUpdate", "status": ClientStatus.CLIENT_GOAL}])
|
||||
ctx.finished_game = True
|
||||
await asyncio.sleep(0.1)
|
||||
|
||||
|
||||
def launch():
|
||||
async def main(args):
|
||||
ctx = KH1Context(args.connect, args.password)
|
||||
ctx.server_task = asyncio.create_task(server_loop(ctx), name="server loop")
|
||||
if gui_enabled:
|
||||
ctx.run_gui()
|
||||
ctx.run_cli()
|
||||
progression_watcher = asyncio.create_task(
|
||||
game_watcher(ctx), name="KH1ProgressionWatcher")
|
||||
|
||||
await ctx.exit_event.wait()
|
||||
ctx.server_address = None
|
||||
|
||||
await progression_watcher
|
||||
|
||||
await ctx.shutdown()
|
||||
|
||||
import colorama
|
||||
|
||||
parser = get_base_parser(description="KH1 Client, for text interfacing.")
|
||||
|
||||
args, rest = parser.parse_known_args()
|
||||
colorama.init()
|
||||
asyncio.run(main(args))
|
||||
colorama.deinit()
|
||||
532
worlds/kh1/Items.py
Normal file
532
worlds/kh1/Items.py
Normal file
@@ -0,0 +1,532 @@
|
||||
from typing import Dict, NamedTuple, Optional, Set
|
||||
|
||||
from BaseClasses import Item, ItemClassification
|
||||
|
||||
|
||||
class KH1Item(Item):
|
||||
game: str = "Kingdom Hearts"
|
||||
|
||||
|
||||
class KH1ItemData(NamedTuple):
|
||||
category: str
|
||||
code: int
|
||||
classification: ItemClassification = ItemClassification.filler
|
||||
max_quantity: int = 1
|
||||
weight: int = 1
|
||||
|
||||
|
||||
def get_items_by_category(category: str) -> Dict[str, KH1ItemData]:
|
||||
item_dict: Dict[str, KH1ItemData] = {}
|
||||
for name, data in item_table.items():
|
||||
if data.category == category:
|
||||
item_dict.setdefault(name, data)
|
||||
|
||||
return item_dict
|
||||
|
||||
|
||||
item_table: Dict[str, KH1ItemData] = {
|
||||
"Victory": KH1ItemData("VIC", code = 264_0000, classification = ItemClassification.progression, ),
|
||||
"Potion": KH1ItemData("Item", code = 264_1001, classification = ItemClassification.filler, ),
|
||||
"Hi-Potion": KH1ItemData("Item", code = 264_1002, classification = ItemClassification.filler, ),
|
||||
"Ether": KH1ItemData("Item", code = 264_1003, classification = ItemClassification.filler, ),
|
||||
"Elixir": KH1ItemData("Item", code = 264_1004, classification = ItemClassification.filler, ),
|
||||
#"B05": KH1ItemData("Item", code = 264_1005, classification = ItemClassification.filler, ),
|
||||
"Mega-Potion": KH1ItemData("Item", code = 264_1006, classification = ItemClassification.filler, ),
|
||||
"Mega-Ether": KH1ItemData("Item", code = 264_1007, classification = ItemClassification.filler, ),
|
||||
"Megalixir": KH1ItemData("Item", code = 264_1008, classification = ItemClassification.filler, ),
|
||||
#"Fury Stone": KH1ItemData("Synthesis", code = 264_1009, classification = ItemClassification.filler, ),
|
||||
#"Power Stone": KH1ItemData("Synthesis", code = 264_1010, classification = ItemClassification.filler, ),
|
||||
#"Energy Stone": KH1ItemData("Synthesis", code = 264_1011, classification = ItemClassification.filler, ),
|
||||
#"Blazing Stone": KH1ItemData("Synthesis", code = 264_1012, classification = ItemClassification.filler, ),
|
||||
#"Frost Stone": KH1ItemData("Synthesis", code = 264_1013, classification = ItemClassification.filler, ),
|
||||
#"Lightning Stone": KH1ItemData("Synthesis", code = 264_1014, classification = ItemClassification.filler, ),
|
||||
#"Dazzling Stone": KH1ItemData("Synthesis", code = 264_1015, classification = ItemClassification.filler, ),
|
||||
#"Stormy Stone": KH1ItemData("Synthesis", code = 264_1016, classification = ItemClassification.filler, ),
|
||||
"Protect Chain": KH1ItemData("Accessory", code = 264_1017, classification = ItemClassification.useful, ),
|
||||
"Protera Chain": KH1ItemData("Accessory", code = 264_1018, classification = ItemClassification.useful, ),
|
||||
"Protega Chain": KH1ItemData("Accessory", code = 264_1019, classification = ItemClassification.useful, ),
|
||||
"Fire Ring": KH1ItemData("Accessory", code = 264_1020, classification = ItemClassification.useful, ),
|
||||
"Fira Ring": KH1ItemData("Accessory", code = 264_1021, classification = ItemClassification.useful, ),
|
||||
"Firaga Ring": KH1ItemData("Accessory", code = 264_1022, classification = ItemClassification.useful, ),
|
||||
"Blizzard Ring": KH1ItemData("Accessory", code = 264_1023, classification = ItemClassification.useful, ),
|
||||
"Blizzara Ring": KH1ItemData("Accessory", code = 264_1024, classification = ItemClassification.useful, ),
|
||||
"Blizzaga Ring": KH1ItemData("Accessory", code = 264_1025, classification = ItemClassification.useful, ),
|
||||
"Thunder Ring": KH1ItemData("Accessory", code = 264_1026, classification = ItemClassification.useful, ),
|
||||
"Thundara Ring": KH1ItemData("Accessory", code = 264_1027, classification = ItemClassification.useful, ),
|
||||
"Thundaga Ring": KH1ItemData("Accessory", code = 264_1028, classification = ItemClassification.useful, ),
|
||||
"Ability Stud": KH1ItemData("Accessory", code = 264_1029, classification = ItemClassification.useful, ),
|
||||
"Guard Earring": KH1ItemData("Accessory", code = 264_1030, classification = ItemClassification.useful, ),
|
||||
"Master Earring": KH1ItemData("Accessory", code = 264_1031, classification = ItemClassification.useful, ),
|
||||
"Chaos Ring": KH1ItemData("Accessory", code = 264_1032, classification = ItemClassification.useful, ),
|
||||
"Dark Ring": KH1ItemData("Accessory", code = 264_1033, classification = ItemClassification.useful, ),
|
||||
"Element Ring": KH1ItemData("Accessory", code = 264_1034, classification = ItemClassification.useful, ),
|
||||
"Three Stars": KH1ItemData("Accessory", code = 264_1035, classification = ItemClassification.useful, ),
|
||||
"Power Chain": KH1ItemData("Accessory", code = 264_1036, classification = ItemClassification.useful, ),
|
||||
"Golem Chain": KH1ItemData("Accessory", code = 264_1037, classification = ItemClassification.useful, ),
|
||||
"Titan Chain": KH1ItemData("Accessory", code = 264_1038, classification = ItemClassification.useful, ),
|
||||
"Energy Bangle": KH1ItemData("Accessory", code = 264_1039, classification = ItemClassification.useful, ),
|
||||
"Angel Bangle": KH1ItemData("Accessory", code = 264_1040, classification = ItemClassification.useful, ),
|
||||
"Gaia Bangle": KH1ItemData("Accessory", code = 264_1041, classification = ItemClassification.useful, ),
|
||||
"Magic Armlet": KH1ItemData("Accessory", code = 264_1042, classification = ItemClassification.useful, ),
|
||||
"Rune Armlet": KH1ItemData("Accessory", code = 264_1043, classification = ItemClassification.useful, ),
|
||||
"Atlas Armlet": KH1ItemData("Accessory", code = 264_1044, classification = ItemClassification.useful, ),
|
||||
"Heartguard": KH1ItemData("Accessory", code = 264_1045, classification = ItemClassification.useful, ),
|
||||
"Ribbon": KH1ItemData("Accessory", code = 264_1046, classification = ItemClassification.useful, ),
|
||||
"Crystal Crown": KH1ItemData("Accessory", code = 264_1047, classification = ItemClassification.useful, ),
|
||||
"Brave Warrior": KH1ItemData("Accessory", code = 264_1048, classification = ItemClassification.useful, ),
|
||||
"Ifrit's Horn": KH1ItemData("Accessory", code = 264_1049, classification = ItemClassification.useful, ),
|
||||
"Inferno Band": KH1ItemData("Accessory", code = 264_1050, classification = ItemClassification.useful, ),
|
||||
"White Fang": KH1ItemData("Accessory", code = 264_1051, classification = ItemClassification.useful, ),
|
||||
"Ray of Light": KH1ItemData("Accessory", code = 264_1052, classification = ItemClassification.useful, ),
|
||||
"Holy Circlet": KH1ItemData("Accessory", code = 264_1053, classification = ItemClassification.useful, ),
|
||||
"Raven's Claw": KH1ItemData("Accessory", code = 264_1054, classification = ItemClassification.useful, ),
|
||||
"Omega Arts": KH1ItemData("Accessory", code = 264_1055, classification = ItemClassification.useful, ),
|
||||
"EXP Earring": KH1ItemData("Accessory", code = 264_1056, classification = ItemClassification.useful, ),
|
||||
#"A41": KH1ItemData("Accessory", code = 264_1057, classification = ItemClassification.useful, ),
|
||||
"EXP Ring": KH1ItemData("Accessory", code = 264_1058, classification = ItemClassification.useful, ),
|
||||
"EXP Bracelet": KH1ItemData("Accessory", code = 264_1059, classification = ItemClassification.useful, ),
|
||||
"EXP Necklace": KH1ItemData("Accessory", code = 264_1060, classification = ItemClassification.useful, ),
|
||||
"Firagun Band": KH1ItemData("Accessory", code = 264_1061, classification = ItemClassification.useful, ),
|
||||
"Blizzagun Band": KH1ItemData("Accessory", code = 264_1062, classification = ItemClassification.useful, ),
|
||||
"Thundagun Band": KH1ItemData("Accessory", code = 264_1063, classification = ItemClassification.useful, ),
|
||||
"Ifrit Belt": KH1ItemData("Accessory", code = 264_1064, classification = ItemClassification.useful, ),
|
||||
"Shiva Belt": KH1ItemData("Accessory", code = 264_1065, classification = ItemClassification.useful, ),
|
||||
"Ramuh Belt": KH1ItemData("Accessory", code = 264_1066, classification = ItemClassification.useful, ),
|
||||
"Moogle Badge": KH1ItemData("Accessory", code = 264_1067, classification = ItemClassification.useful, ),
|
||||
"Cosmic Arts": KH1ItemData("Accessory", code = 264_1068, classification = ItemClassification.useful, ),
|
||||
"Royal Crown": KH1ItemData("Accessory", code = 264_1069, classification = ItemClassification.useful, ),
|
||||
"Prime Cap": KH1ItemData("Accessory", code = 264_1070, classification = ItemClassification.useful, ),
|
||||
"Obsidian Ring": KH1ItemData("Accessory", code = 264_1071, classification = ItemClassification.useful, ),
|
||||
#"A56": KH1ItemData("Accessory", code = 264_1072, classification = ItemClassification.filler, ),
|
||||
#"A57": KH1ItemData("Accessory", code = 264_1073, classification = ItemClassification.filler, ),
|
||||
#"A58": KH1ItemData("Accessory", code = 264_1074, classification = ItemClassification.filler, ),
|
||||
#"A59": KH1ItemData("Accessory", code = 264_1075, classification = ItemClassification.filler, ),
|
||||
#"A60": KH1ItemData("Accessory", code = 264_1076, classification = ItemClassification.filler, ),
|
||||
#"A61": KH1ItemData("Accessory", code = 264_1077, classification = ItemClassification.filler, ),
|
||||
#"A62": KH1ItemData("Accessory", code = 264_1078, classification = ItemClassification.filler, ),
|
||||
#"A63": KH1ItemData("Accessory", code = 264_1079, classification = ItemClassification.filler, ),
|
||||
#"A64": KH1ItemData("Accessory", code = 264_1080, classification = ItemClassification.filler, ),
|
||||
#"Kingdom Key": KH1ItemData("Keyblades", code = 264_1081, classification = ItemClassification.useful, ),
|
||||
#"Dream Sword": KH1ItemData("Keyblades", code = 264_1082, classification = ItemClassification.useful, ),
|
||||
#"Dream Shield": KH1ItemData("Keyblades", code = 264_1083, classification = ItemClassification.useful, ),
|
||||
#"Dream Rod": KH1ItemData("Keyblades", code = 264_1084, classification = ItemClassification.useful, ),
|
||||
"Wooden Sword": KH1ItemData("Keyblades", code = 264_1085, classification = ItemClassification.useful, ),
|
||||
"Jungle King": KH1ItemData("Keyblades", code = 264_1086, classification = ItemClassification.progression, ),
|
||||
"Three Wishes": KH1ItemData("Keyblades", code = 264_1087, classification = ItemClassification.progression, ),
|
||||
"Fairy Harp": KH1ItemData("Keyblades", code = 264_1088, classification = ItemClassification.progression, ),
|
||||
"Pumpkinhead": KH1ItemData("Keyblades", code = 264_1089, classification = ItemClassification.progression, ),
|
||||
"Crabclaw": KH1ItemData("Keyblades", code = 264_1090, classification = ItemClassification.useful, ),
|
||||
"Divine Rose": KH1ItemData("Keyblades", code = 264_1091, classification = ItemClassification.progression, ),
|
||||
"Spellbinder": KH1ItemData("Keyblades", code = 264_1092, classification = ItemClassification.useful, ),
|
||||
"Olympia": KH1ItemData("Keyblades", code = 264_1093, classification = ItemClassification.progression, ),
|
||||
"Lionheart": KH1ItemData("Keyblades", code = 264_1094, classification = ItemClassification.progression, ),
|
||||
"Metal Chocobo": KH1ItemData("Keyblades", code = 264_1095, classification = ItemClassification.useful, ),
|
||||
"Oathkeeper": KH1ItemData("Keyblades", code = 264_1096, classification = ItemClassification.progression, ),
|
||||
"Oblivion": KH1ItemData("Keyblades", code = 264_1097, classification = ItemClassification.progression, ),
|
||||
"Lady Luck": KH1ItemData("Keyblades", code = 264_1098, classification = ItemClassification.progression, ),
|
||||
"Wishing Star": KH1ItemData("Keyblades", code = 264_1099, classification = ItemClassification.progression, ),
|
||||
"Ultima Weapon": KH1ItemData("Keyblades", code = 264_1100, classification = ItemClassification.useful, ),
|
||||
"Diamond Dust": KH1ItemData("Keyblades", code = 264_1101, classification = ItemClassification.useful, ),
|
||||
"One-Winged Angel": KH1ItemData("Keyblades", code = 264_1102, classification = ItemClassification.useful, ),
|
||||
#"Mage's Staff": KH1ItemData("Weapons", code = 264_1103, classification = ItemClassification.filler, ),
|
||||
"Morning Star": KH1ItemData("Weapons", code = 264_1104, classification = ItemClassification.useful, ),
|
||||
"Shooting Star": KH1ItemData("Weapons", code = 264_1105, classification = ItemClassification.useful, ),
|
||||
"Magus Staff": KH1ItemData("Weapons", code = 264_1106, classification = ItemClassification.useful, ),
|
||||
"Wisdom Staff": KH1ItemData("Weapons", code = 264_1107, classification = ItemClassification.useful, ),
|
||||
"Warhammer": KH1ItemData("Weapons", code = 264_1108, classification = ItemClassification.useful, ),
|
||||
"Silver Mallet": KH1ItemData("Weapons", code = 264_1109, classification = ItemClassification.useful, ),
|
||||
"Grand Mallet": KH1ItemData("Weapons", code = 264_1110, classification = ItemClassification.useful, ),
|
||||
"Lord Fortune": KH1ItemData("Weapons", code = 264_1111, classification = ItemClassification.useful, ),
|
||||
"Violetta": KH1ItemData("Weapons", code = 264_1112, classification = ItemClassification.useful, ),
|
||||
"Dream Rod (Donald)": KH1ItemData("Weapons", code = 264_1113, classification = ItemClassification.useful, ),
|
||||
"Save the Queen": KH1ItemData("Weapons", code = 264_1114, classification = ItemClassification.useful, ),
|
||||
"Wizard's Relic": KH1ItemData("Weapons", code = 264_1115, classification = ItemClassification.useful, ),
|
||||
"Meteor Strike": KH1ItemData("Weapons", code = 264_1116, classification = ItemClassification.useful, ),
|
||||
"Fantasista": KH1ItemData("Weapons", code = 264_1117, classification = ItemClassification.useful, ),
|
||||
#"Unused (Donald)": KH1ItemData("Weapons", code = 264_1118, classification = ItemClassification.filler, ),
|
||||
#"Knight's Shield": KH1ItemData("Weapons", code = 264_1119, classification = ItemClassification.filler, ),
|
||||
"Mythril Shield": KH1ItemData("Weapons", code = 264_1120, classification = ItemClassification.useful, ),
|
||||
"Onyx Shield": KH1ItemData("Weapons", code = 264_1121, classification = ItemClassification.useful, ),
|
||||
"Stout Shield": KH1ItemData("Weapons", code = 264_1122, classification = ItemClassification.useful, ),
|
||||
"Golem Shield": KH1ItemData("Weapons", code = 264_1123, classification = ItemClassification.useful, ),
|
||||
"Adamant Shield": KH1ItemData("Weapons", code = 264_1124, classification = ItemClassification.useful, ),
|
||||
"Smasher": KH1ItemData("Weapons", code = 264_1125, classification = ItemClassification.useful, ),
|
||||
"Gigas Fist": KH1ItemData("Weapons", code = 264_1126, classification = ItemClassification.useful, ),
|
||||
"Genji Shield": KH1ItemData("Weapons", code = 264_1127, classification = ItemClassification.useful, ),
|
||||
"Herc's Shield": KH1ItemData("Weapons", code = 264_1128, classification = ItemClassification.useful, ),
|
||||
"Dream Shield (Goofy)": KH1ItemData("Weapons", code = 264_1129, classification = ItemClassification.useful, ),
|
||||
"Save the King": KH1ItemData("Weapons", code = 264_1130, classification = ItemClassification.useful, ),
|
||||
"Defender": KH1ItemData("Weapons", code = 264_1131, classification = ItemClassification.useful, ),
|
||||
"Mighty Shield": KH1ItemData("Weapons", code = 264_1132, classification = ItemClassification.useful, ),
|
||||
"Seven Elements": KH1ItemData("Weapons", code = 264_1133, classification = ItemClassification.useful, ),
|
||||
#"Unused (Goofy)": KH1ItemData("Weapons", code = 264_1134, classification = ItemClassification.filler, ),
|
||||
#"Spear": KH1ItemData("Weapons", code = 264_1135, classification = ItemClassification.filler, ),
|
||||
#"No Weapon": KH1ItemData("Weapons", code = 264_1136, classification = ItemClassification.filler, ),
|
||||
#"Genie": KH1ItemData("Weapons", code = 264_1137, classification = ItemClassification.filler, ),
|
||||
#"No Weapon": KH1ItemData("Weapons", code = 264_1138, classification = ItemClassification.filler, ),
|
||||
#"No Weapon": KH1ItemData("Weapons", code = 264_1139, classification = ItemClassification.filler, ),
|
||||
#"Tinker Bell": KH1ItemData("Weapons", code = 264_1140, classification = ItemClassification.filler, ),
|
||||
#"Claws": KH1ItemData("Weapons", code = 264_1141, classification = ItemClassification.filler, ),
|
||||
"Tent": KH1ItemData("Camping", code = 264_1142, classification = ItemClassification.filler, ),
|
||||
"Camping Set": KH1ItemData("Camping", code = 264_1143, classification = ItemClassification.filler, ),
|
||||
"Cottage": KH1ItemData("Camping", code = 264_1144, classification = ItemClassification.filler, ),
|
||||
#"C04": KH1ItemData("Camping", code = 264_1145, classification = ItemClassification.filler, ),
|
||||
#"C05": KH1ItemData("Camping", code = 264_1146, classification = ItemClassification.filler, ),
|
||||
#"C06": KH1ItemData("Camping", code = 264_1147, classification = ItemClassification.filler, ),
|
||||
#"C07": KH1ItemData("Camping", code = 264_1148, classification = ItemClassification.filler, ),
|
||||
"Ansem's Report 11": KH1ItemData("Reports", code = 264_1149, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 12": KH1ItemData("Reports", code = 264_1150, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 13": KH1ItemData("Reports", code = 264_1151, classification = ItemClassification.progression, ),
|
||||
"Power Up": KH1ItemData("Stat Ups", code = 264_1152, classification = ItemClassification.filler, ),
|
||||
"Defense Up": KH1ItemData("Stat Ups", code = 264_1153, classification = ItemClassification.filler, ),
|
||||
"AP Up": KH1ItemData("Stat Ups", code = 264_1154, classification = ItemClassification.filler, ),
|
||||
#"Serenity Power": KH1ItemData("Synthesis", code = 264_1155, classification = ItemClassification.filler, ),
|
||||
#"Dark Matter": KH1ItemData("Synthesis", code = 264_1156, classification = ItemClassification.filler, ),
|
||||
#"Mythril Stone": KH1ItemData("Synthesis", code = 264_1157, classification = ItemClassification.filler, ),
|
||||
"Fire Arts": KH1ItemData("Key", code = 264_1158, classification = ItemClassification.progression, ),
|
||||
"Blizzard Arts": KH1ItemData("Key", code = 264_1159, classification = ItemClassification.progression, ),
|
||||
"Thunder Arts": KH1ItemData("Key", code = 264_1160, classification = ItemClassification.progression, ),
|
||||
"Cure Arts": KH1ItemData("Key", code = 264_1161, classification = ItemClassification.progression, ),
|
||||
"Gravity Arts": KH1ItemData("Key", code = 264_1162, classification = ItemClassification.progression, ),
|
||||
"Stop Arts": KH1ItemData("Key", code = 264_1163, classification = ItemClassification.progression, ),
|
||||
"Aero Arts": KH1ItemData("Key", code = 264_1164, classification = ItemClassification.progression, ),
|
||||
#"Shiitank Rank": KH1ItemData("Synthesis", code = 264_1165, classification = ItemClassification.filler, ),
|
||||
#"Matsutake Rank": KH1ItemData("Synthesis", code = 264_1166, classification = ItemClassification.filler, ),
|
||||
#"Mystery Mold": KH1ItemData("Synthesis", code = 264_1167, classification = ItemClassification.filler, ),
|
||||
"Ansem's Report 1": KH1ItemData("Reports", code = 264_1168, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 2": KH1ItemData("Reports", code = 264_1169, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 3": KH1ItemData("Reports", code = 264_1170, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 4": KH1ItemData("Reports", code = 264_1171, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 5": KH1ItemData("Reports", code = 264_1172, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 6": KH1ItemData("Reports", code = 264_1173, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 7": KH1ItemData("Reports", code = 264_1174, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 8": KH1ItemData("Reports", code = 264_1175, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 9": KH1ItemData("Reports", code = 264_1176, classification = ItemClassification.progression, ),
|
||||
"Ansem's Report 10": KH1ItemData("Reports", code = 264_1177, classification = ItemClassification.progression, ),
|
||||
#"Khama Vol. 8": KH1ItemData("Key", code = 264_1178, classification = ItemClassification.progression, ),
|
||||
#"Salegg Vol. 6": KH1ItemData("Key", code = 264_1179, classification = ItemClassification.progression, ),
|
||||
#"Azal Vol. 3": KH1ItemData("Key", code = 264_1180, classification = ItemClassification.progression, ),
|
||||
#"Mava Vol. 3": KH1ItemData("Key", code = 264_1181, classification = ItemClassification.progression, ),
|
||||
#"Mava Vol. 6": KH1ItemData("Key", code = 264_1182, classification = ItemClassification.progression, ),
|
||||
"Theon Vol. 6": KH1ItemData("Key", code = 264_1183, classification = ItemClassification.progression, ),
|
||||
#"Nahara Vol. 5": KH1ItemData("Key", code = 264_1184, classification = ItemClassification.progression, ),
|
||||
#"Hafet Vol. 4": KH1ItemData("Key", code = 264_1185, classification = ItemClassification.progression, ),
|
||||
"Empty Bottle": KH1ItemData("Key", code = 264_1186, classification = ItemClassification.progression, max_quantity = 6 ),
|
||||
#"Old Book": KH1ItemData("Key", code = 264_1187, classification = ItemClassification.progression, ),
|
||||
"Emblem Piece (Flame)": KH1ItemData("Key", code = 264_1188, classification = ItemClassification.progression, ),
|
||||
"Emblem Piece (Chest)": KH1ItemData("Key", code = 264_1189, classification = ItemClassification.progression, ),
|
||||
"Emblem Piece (Statue)": KH1ItemData("Key", code = 264_1190, classification = ItemClassification.progression, ),
|
||||
"Emblem Piece (Fountain)": KH1ItemData("Key", code = 264_1191, classification = ItemClassification.progression, ),
|
||||
#"Log": KH1ItemData("Key", code = 264_1192, classification = ItemClassification.progression, ),
|
||||
#"Cloth": KH1ItemData("Key", code = 264_1193, classification = ItemClassification.progression, ),
|
||||
#"Rope": KH1ItemData("Key", code = 264_1194, classification = ItemClassification.progression, ),
|
||||
#"Seagull Egg": KH1ItemData("Key", code = 264_1195, classification = ItemClassification.progression, ),
|
||||
#"Fish": KH1ItemData("Key", code = 264_1196, classification = ItemClassification.progression, ),
|
||||
#"Mushroom": KH1ItemData("Key", code = 264_1197, classification = ItemClassification.progression, ),
|
||||
#"Coconut": KH1ItemData("Key", code = 264_1198, classification = ItemClassification.progression, ),
|
||||
#"Drinking Water": KH1ItemData("Key", code = 264_1199, classification = ItemClassification.progression, ),
|
||||
#"Navi-G Piece 1": KH1ItemData("Key", code = 264_1200, classification = ItemClassification.progression, ),
|
||||
#"Navi-G Piece 2": KH1ItemData("Key", code = 264_1201, classification = ItemClassification.progression, ),
|
||||
#"Navi-Gummi Unused": KH1ItemData("Key", code = 264_1202, classification = ItemClassification.progression, ),
|
||||
#"Navi-G Piece 3": KH1ItemData("Key", code = 264_1203, classification = ItemClassification.progression, ),
|
||||
#"Navi-G Piece 4": KH1ItemData("Key", code = 264_1204, classification = ItemClassification.progression, ),
|
||||
#"Navi-Gummi": KH1ItemData("Key", code = 264_1205, classification = ItemClassification.progression, ),
|
||||
#"Watergleam": KH1ItemData("Key", code = 264_1206, classification = ItemClassification.progression, ),
|
||||
#"Naturespark": KH1ItemData("Key", code = 264_1207, classification = ItemClassification.progression, ),
|
||||
#"Fireglow": KH1ItemData("Key", code = 264_1208, classification = ItemClassification.progression, ),
|
||||
#"Earthshine": KH1ItemData("Key", code = 264_1209, classification = ItemClassification.progression, ),
|
||||
"Crystal Trident": KH1ItemData("Key", code = 264_1210, classification = ItemClassification.progression, ),
|
||||
"Postcard": KH1ItemData("Key", code = 264_1211, classification = ItemClassification.progression, max_quantity = 10),
|
||||
"Torn Page 1": KH1ItemData("Torn Pages", code = 264_1212, classification = ItemClassification.progression, ),
|
||||
"Torn Page 2": KH1ItemData("Torn Pages", code = 264_1213, classification = ItemClassification.progression, ),
|
||||
"Torn Page 3": KH1ItemData("Torn Pages", code = 264_1214, classification = ItemClassification.progression, ),
|
||||
"Torn Page 4": KH1ItemData("Torn Pages", code = 264_1215, classification = ItemClassification.progression, ),
|
||||
"Torn Page 5": KH1ItemData("Torn Pages", code = 264_1216, classification = ItemClassification.progression, ),
|
||||
"Slides": KH1ItemData("Key", code = 264_1217, classification = ItemClassification.progression, ),
|
||||
#"Slide 2": KH1ItemData("Key", code = 264_1218, classification = ItemClassification.progression, ),
|
||||
#"Slide 3": KH1ItemData("Key", code = 264_1219, classification = ItemClassification.progression, ),
|
||||
#"Slide 4": KH1ItemData("Key", code = 264_1220, classification = ItemClassification.progression, ),
|
||||
#"Slide 5": KH1ItemData("Key", code = 264_1221, classification = ItemClassification.progression, ),
|
||||
#"Slide 6": KH1ItemData("Key", code = 264_1222, classification = ItemClassification.progression, ),
|
||||
"Footprints": KH1ItemData("Key", code = 264_1223, classification = ItemClassification.progression, ),
|
||||
#"Claw Marks": KH1ItemData("Key", code = 264_1224, classification = ItemClassification.progression, ),
|
||||
#"Stench": KH1ItemData("Key", code = 264_1225, classification = ItemClassification.progression, ),
|
||||
#"Antenna": KH1ItemData("Key", code = 264_1226, classification = ItemClassification.progression, ),
|
||||
"Forget-Me-Not": KH1ItemData("Key", code = 264_1227, classification = ItemClassification.progression, ),
|
||||
"Jack-In-The-Box": KH1ItemData("Key", code = 264_1228, classification = ItemClassification.progression, ),
|
||||
"Entry Pass": KH1ItemData("Key", code = 264_1229, classification = ItemClassification.progression, ),
|
||||
#"Hero License": KH1ItemData("Key", code = 264_1230, classification = ItemClassification.progression, ),
|
||||
#"Pretty Stone": KH1ItemData("Synthesis", code = 264_1231, classification = ItemClassification.filler, ),
|
||||
#"N41": KH1ItemData("Synthesis", code = 264_1232, classification = ItemClassification.filler, ),
|
||||
#"Lucid Shard": KH1ItemData("Synthesis", code = 264_1233, classification = ItemClassification.filler, ),
|
||||
#"Lucid Gem": KH1ItemData("Synthesis", code = 264_1234, classification = ItemClassification.filler, ),
|
||||
#"Lucid Crystal": KH1ItemData("Synthesis", code = 264_1235, classification = ItemClassification.filler, ),
|
||||
#"Spirit Shard": KH1ItemData("Synthesis", code = 264_1236, classification = ItemClassification.filler, ),
|
||||
#"Spirit Gem": KH1ItemData("Synthesis", code = 264_1237, classification = ItemClassification.filler, ),
|
||||
#"Power Shard": KH1ItemData("Synthesis", code = 264_1238, classification = ItemClassification.filler, ),
|
||||
#"Power Gem": KH1ItemData("Synthesis", code = 264_1239, classification = ItemClassification.filler, ),
|
||||
#"Power Crystal": KH1ItemData("Synthesis", code = 264_1240, classification = ItemClassification.filler, ),
|
||||
#"Blaze Shard": KH1ItemData("Synthesis", code = 264_1241, classification = ItemClassification.filler, ),
|
||||
#"Blaze Gem": KH1ItemData("Synthesis", code = 264_1242, classification = ItemClassification.filler, ),
|
||||
#"Frost Shard": KH1ItemData("Synthesis", code = 264_1243, classification = ItemClassification.filler, ),
|
||||
#"Frost Gem": KH1ItemData("Synthesis", code = 264_1244, classification = ItemClassification.filler, ),
|
||||
#"Thunder Shard": KH1ItemData("Synthesis", code = 264_1245, classification = ItemClassification.filler, ),
|
||||
#"Thunder Gem": KH1ItemData("Synthesis", code = 264_1246, classification = ItemClassification.filler, ),
|
||||
#"Shiny Crystal": KH1ItemData("Synthesis", code = 264_1247, classification = ItemClassification.filler, ),
|
||||
#"Bright Shard": KH1ItemData("Synthesis", code = 264_1248, classification = ItemClassification.filler, ),
|
||||
#"Bright Gem": KH1ItemData("Synthesis", code = 264_1249, classification = ItemClassification.filler, ),
|
||||
#"Bright Crystal": KH1ItemData("Synthesis", code = 264_1250, classification = ItemClassification.filler, ),
|
||||
#"Mystery Goo": KH1ItemData("Synthesis", code = 264_1251, classification = ItemClassification.filler, ),
|
||||
#"Gale": KH1ItemData("Synthesis", code = 264_1252, classification = ItemClassification.filler, ),
|
||||
#"Mythril Shard": KH1ItemData("Synthesis", code = 264_1253, classification = ItemClassification.filler, ),
|
||||
#"Mythril": KH1ItemData("Synthesis", code = 264_1254, classification = ItemClassification.filler, ),
|
||||
#"Orichalcum": KH1ItemData("Synthesis", code = 264_1255, classification = ItemClassification.filler, ),
|
||||
"High Jump": KH1ItemData("Shared Abilities", code = 264_2001, classification = ItemClassification.progression, ),
|
||||
"Mermaid Kick": KH1ItemData("Shared Abilities", code = 264_2002, classification = ItemClassification.progression, ),
|
||||
"Progressive Glide": KH1ItemData("Shared Abilities", code = 264_2003, classification = ItemClassification.progression, max_quantity = 2 ),
|
||||
#"Superglide": KH1ItemData("Shared Abilities", code = 264_2004, classification = ItemClassification.progression, ),
|
||||
"Puppy 01": KH1ItemData("Puppies", code = 264_2101, classification = ItemClassification.progression, ),
|
||||
"Puppy 02": KH1ItemData("Puppies", code = 264_2102, classification = ItemClassification.progression, ),
|
||||
"Puppy 03": KH1ItemData("Puppies", code = 264_2103, classification = ItemClassification.progression, ),
|
||||
"Puppy 04": KH1ItemData("Puppies", code = 264_2104, classification = ItemClassification.progression, ),
|
||||
"Puppy 05": KH1ItemData("Puppies", code = 264_2105, classification = ItemClassification.progression, ),
|
||||
"Puppy 06": KH1ItemData("Puppies", code = 264_2106, classification = ItemClassification.progression, ),
|
||||
"Puppy 07": KH1ItemData("Puppies", code = 264_2107, classification = ItemClassification.progression, ),
|
||||
"Puppy 08": KH1ItemData("Puppies", code = 264_2108, classification = ItemClassification.progression, ),
|
||||
"Puppy 09": KH1ItemData("Puppies", code = 264_2109, classification = ItemClassification.progression, ),
|
||||
"Puppy 10": KH1ItemData("Puppies", code = 264_2110, classification = ItemClassification.progression, ),
|
||||
"Puppy 11": KH1ItemData("Puppies", code = 264_2111, classification = ItemClassification.progression, ),
|
||||
"Puppy 12": KH1ItemData("Puppies", code = 264_2112, classification = ItemClassification.progression, ),
|
||||
"Puppy 13": KH1ItemData("Puppies", code = 264_2113, classification = ItemClassification.progression, ),
|
||||
"Puppy 14": KH1ItemData("Puppies", code = 264_2114, classification = ItemClassification.progression, ),
|
||||
"Puppy 15": KH1ItemData("Puppies", code = 264_2115, classification = ItemClassification.progression, ),
|
||||
"Puppy 16": KH1ItemData("Puppies", code = 264_2116, classification = ItemClassification.progression, ),
|
||||
"Puppy 17": KH1ItemData("Puppies", code = 264_2117, classification = ItemClassification.progression, ),
|
||||
"Puppy 18": KH1ItemData("Puppies", code = 264_2118, classification = ItemClassification.progression, ),
|
||||
"Puppy 19": KH1ItemData("Puppies", code = 264_2119, classification = ItemClassification.progression, ),
|
||||
"Puppy 20": KH1ItemData("Puppies", code = 264_2120, classification = ItemClassification.progression, ),
|
||||
"Puppy 21": KH1ItemData("Puppies", code = 264_2121, classification = ItemClassification.progression, ),
|
||||
"Puppy 22": KH1ItemData("Puppies", code = 264_2122, classification = ItemClassification.progression, ),
|
||||
"Puppy 23": KH1ItemData("Puppies", code = 264_2123, classification = ItemClassification.progression, ),
|
||||
"Puppy 24": KH1ItemData("Puppies", code = 264_2124, classification = ItemClassification.progression, ),
|
||||
"Puppy 25": KH1ItemData("Puppies", code = 264_2125, classification = ItemClassification.progression, ),
|
||||
"Puppy 26": KH1ItemData("Puppies", code = 264_2126, classification = ItemClassification.progression, ),
|
||||
"Puppy 27": KH1ItemData("Puppies", code = 264_2127, classification = ItemClassification.progression, ),
|
||||
"Puppy 28": KH1ItemData("Puppies", code = 264_2128, classification = ItemClassification.progression, ),
|
||||
"Puppy 29": KH1ItemData("Puppies", code = 264_2129, classification = ItemClassification.progression, ),
|
||||
"Puppy 30": KH1ItemData("Puppies", code = 264_2130, classification = ItemClassification.progression, ),
|
||||
"Puppy 31": KH1ItemData("Puppies", code = 264_2131, classification = ItemClassification.progression, ),
|
||||
"Puppy 32": KH1ItemData("Puppies", code = 264_2132, classification = ItemClassification.progression, ),
|
||||
"Puppy 33": KH1ItemData("Puppies", code = 264_2133, classification = ItemClassification.progression, ),
|
||||
"Puppy 34": KH1ItemData("Puppies", code = 264_2134, classification = ItemClassification.progression, ),
|
||||
"Puppy 35": KH1ItemData("Puppies", code = 264_2135, classification = ItemClassification.progression, ),
|
||||
"Puppy 36": KH1ItemData("Puppies", code = 264_2136, classification = ItemClassification.progression, ),
|
||||
"Puppy 37": KH1ItemData("Puppies", code = 264_2137, classification = ItemClassification.progression, ),
|
||||
"Puppy 38": KH1ItemData("Puppies", code = 264_2138, classification = ItemClassification.progression, ),
|
||||
"Puppy 39": KH1ItemData("Puppies", code = 264_2139, classification = ItemClassification.progression, ),
|
||||
"Puppy 40": KH1ItemData("Puppies", code = 264_2140, classification = ItemClassification.progression, ),
|
||||
"Puppy 41": KH1ItemData("Puppies", code = 264_2141, classification = ItemClassification.progression, ),
|
||||
"Puppy 42": KH1ItemData("Puppies", code = 264_2142, classification = ItemClassification.progression, ),
|
||||
"Puppy 43": KH1ItemData("Puppies", code = 264_2143, classification = ItemClassification.progression, ),
|
||||
"Puppy 44": KH1ItemData("Puppies", code = 264_2144, classification = ItemClassification.progression, ),
|
||||
"Puppy 45": KH1ItemData("Puppies", code = 264_2145, classification = ItemClassification.progression, ),
|
||||
"Puppy 46": KH1ItemData("Puppies", code = 264_2146, classification = ItemClassification.progression, ),
|
||||
"Puppy 47": KH1ItemData("Puppies", code = 264_2147, classification = ItemClassification.progression, ),
|
||||
"Puppy 48": KH1ItemData("Puppies", code = 264_2148, classification = ItemClassification.progression, ),
|
||||
"Puppy 49": KH1ItemData("Puppies", code = 264_2149, classification = ItemClassification.progression, ),
|
||||
"Puppy 50": KH1ItemData("Puppies", code = 264_2150, classification = ItemClassification.progression, ),
|
||||
"Puppy 51": KH1ItemData("Puppies", code = 264_2151, classification = ItemClassification.progression, ),
|
||||
"Puppy 52": KH1ItemData("Puppies", code = 264_2152, classification = ItemClassification.progression, ),
|
||||
"Puppy 53": KH1ItemData("Puppies", code = 264_2153, classification = ItemClassification.progression, ),
|
||||
"Puppy 54": KH1ItemData("Puppies", code = 264_2154, classification = ItemClassification.progression, ),
|
||||
"Puppy 55": KH1ItemData("Puppies", code = 264_2155, classification = ItemClassification.progression, ),
|
||||
"Puppy 56": KH1ItemData("Puppies", code = 264_2156, classification = ItemClassification.progression, ),
|
||||
"Puppy 57": KH1ItemData("Puppies", code = 264_2157, classification = ItemClassification.progression, ),
|
||||
"Puppy 58": KH1ItemData("Puppies", code = 264_2158, classification = ItemClassification.progression, ),
|
||||
"Puppy 59": KH1ItemData("Puppies", code = 264_2159, classification = ItemClassification.progression, ),
|
||||
"Puppy 60": KH1ItemData("Puppies", code = 264_2160, classification = ItemClassification.progression, ),
|
||||
"Puppy 61": KH1ItemData("Puppies", code = 264_2161, classification = ItemClassification.progression, ),
|
||||
"Puppy 62": KH1ItemData("Puppies", code = 264_2162, classification = ItemClassification.progression, ),
|
||||
"Puppy 63": KH1ItemData("Puppies", code = 264_2163, classification = ItemClassification.progression, ),
|
||||
"Puppy 64": KH1ItemData("Puppies", code = 264_2164, classification = ItemClassification.progression, ),
|
||||
"Puppy 65": KH1ItemData("Puppies", code = 264_2165, classification = ItemClassification.progression, ),
|
||||
"Puppy 66": KH1ItemData("Puppies", code = 264_2166, classification = ItemClassification.progression, ),
|
||||
"Puppy 67": KH1ItemData("Puppies", code = 264_2167, classification = ItemClassification.progression, ),
|
||||
"Puppy 68": KH1ItemData("Puppies", code = 264_2168, classification = ItemClassification.progression, ),
|
||||
"Puppy 69": KH1ItemData("Puppies", code = 264_2169, classification = ItemClassification.progression, ),
|
||||
"Puppy 70": KH1ItemData("Puppies", code = 264_2170, classification = ItemClassification.progression, ),
|
||||
"Puppy 71": KH1ItemData("Puppies", code = 264_2171, classification = ItemClassification.progression, ),
|
||||
"Puppy 72": KH1ItemData("Puppies", code = 264_2172, classification = ItemClassification.progression, ),
|
||||
"Puppy 73": KH1ItemData("Puppies", code = 264_2173, classification = ItemClassification.progression, ),
|
||||
"Puppy 74": KH1ItemData("Puppies", code = 264_2174, classification = ItemClassification.progression, ),
|
||||
"Puppy 75": KH1ItemData("Puppies", code = 264_2175, classification = ItemClassification.progression, ),
|
||||
"Puppy 76": KH1ItemData("Puppies", code = 264_2176, classification = ItemClassification.progression, ),
|
||||
"Puppy 77": KH1ItemData("Puppies", code = 264_2177, classification = ItemClassification.progression, ),
|
||||
"Puppy 78": KH1ItemData("Puppies", code = 264_2178, classification = ItemClassification.progression, ),
|
||||
"Puppy 79": KH1ItemData("Puppies", code = 264_2179, classification = ItemClassification.progression, ),
|
||||
"Puppy 80": KH1ItemData("Puppies", code = 264_2180, classification = ItemClassification.progression, ),
|
||||
"Puppy 81": KH1ItemData("Puppies", code = 264_2181, classification = ItemClassification.progression, ),
|
||||
"Puppy 82": KH1ItemData("Puppies", code = 264_2182, classification = ItemClassification.progression, ),
|
||||
"Puppy 83": KH1ItemData("Puppies", code = 264_2183, classification = ItemClassification.progression, ),
|
||||
"Puppy 84": KH1ItemData("Puppies", code = 264_2184, classification = ItemClassification.progression, ),
|
||||
"Puppy 85": KH1ItemData("Puppies", code = 264_2185, classification = ItemClassification.progression, ),
|
||||
"Puppy 86": KH1ItemData("Puppies", code = 264_2186, classification = ItemClassification.progression, ),
|
||||
"Puppy 87": KH1ItemData("Puppies", code = 264_2187, classification = ItemClassification.progression, ),
|
||||
"Puppy 88": KH1ItemData("Puppies", code = 264_2188, classification = ItemClassification.progression, ),
|
||||
"Puppy 89": KH1ItemData("Puppies", code = 264_2189, classification = ItemClassification.progression, ),
|
||||
"Puppy 90": KH1ItemData("Puppies", code = 264_2190, classification = ItemClassification.progression, ),
|
||||
"Puppy 91": KH1ItemData("Puppies", code = 264_2191, classification = ItemClassification.progression, ),
|
||||
"Puppy 92": KH1ItemData("Puppies", code = 264_2192, classification = ItemClassification.progression, ),
|
||||
"Puppy 93": KH1ItemData("Puppies", code = 264_2193, classification = ItemClassification.progression, ),
|
||||
"Puppy 94": KH1ItemData("Puppies", code = 264_2194, classification = ItemClassification.progression, ),
|
||||
"Puppy 95": KH1ItemData("Puppies", code = 264_2195, classification = ItemClassification.progression, ),
|
||||
"Puppy 96": KH1ItemData("Puppies", code = 264_2196, classification = ItemClassification.progression, ),
|
||||
"Puppy 97": KH1ItemData("Puppies", code = 264_2197, classification = ItemClassification.progression, ),
|
||||
"Puppy 98": KH1ItemData("Puppies", code = 264_2198, classification = ItemClassification.progression, ),
|
||||
"Puppy 99": KH1ItemData("Puppies", code = 264_2199, classification = ItemClassification.progression, ),
|
||||
"Puppies 01-03": KH1ItemData("Puppies", code = 264_2201, classification = ItemClassification.progression, ),
|
||||
"Puppies 04-06": KH1ItemData("Puppies", code = 264_2202, classification = ItemClassification.progression, ),
|
||||
"Puppies 07-09": KH1ItemData("Puppies", code = 264_2203, classification = ItemClassification.progression, ),
|
||||
"Puppies 10-12": KH1ItemData("Puppies", code = 264_2204, classification = ItemClassification.progression, ),
|
||||
"Puppies 13-15": KH1ItemData("Puppies", code = 264_2205, classification = ItemClassification.progression, ),
|
||||
"Puppies 16-18": KH1ItemData("Puppies", code = 264_2206, classification = ItemClassification.progression, ),
|
||||
"Puppies 19-21": KH1ItemData("Puppies", code = 264_2207, classification = ItemClassification.progression, ),
|
||||
"Puppies 22-24": KH1ItemData("Puppies", code = 264_2208, classification = ItemClassification.progression, ),
|
||||
"Puppies 25-27": KH1ItemData("Puppies", code = 264_2209, classification = ItemClassification.progression, ),
|
||||
"Puppies 28-30": KH1ItemData("Puppies", code = 264_2210, classification = ItemClassification.progression, ),
|
||||
"Puppies 31-33": KH1ItemData("Puppies", code = 264_2211, classification = ItemClassification.progression, ),
|
||||
"Puppies 34-36": KH1ItemData("Puppies", code = 264_2212, classification = ItemClassification.progression, ),
|
||||
"Puppies 37-39": KH1ItemData("Puppies", code = 264_2213, classification = ItemClassification.progression, ),
|
||||
"Puppies 40-42": KH1ItemData("Puppies", code = 264_2214, classification = ItemClassification.progression, ),
|
||||
"Puppies 43-45": KH1ItemData("Puppies", code = 264_2215, classification = ItemClassification.progression, ),
|
||||
"Puppies 46-48": KH1ItemData("Puppies", code = 264_2216, classification = ItemClassification.progression, ),
|
||||
"Puppies 49-51": KH1ItemData("Puppies", code = 264_2217, classification = ItemClassification.progression, ),
|
||||
"Puppies 52-54": KH1ItemData("Puppies", code = 264_2218, classification = ItemClassification.progression, ),
|
||||
"Puppies 55-57": KH1ItemData("Puppies", code = 264_2219, classification = ItemClassification.progression, ),
|
||||
"Puppies 58-60": KH1ItemData("Puppies", code = 264_2220, classification = ItemClassification.progression, ),
|
||||
"Puppies 61-63": KH1ItemData("Puppies", code = 264_2221, classification = ItemClassification.progression, ),
|
||||
"Puppies 64-66": KH1ItemData("Puppies", code = 264_2222, classification = ItemClassification.progression, ),
|
||||
"Puppies 67-69": KH1ItemData("Puppies", code = 264_2223, classification = ItemClassification.progression, ),
|
||||
"Puppies 70-72": KH1ItemData("Puppies", code = 264_2224, classification = ItemClassification.progression, ),
|
||||
"Puppies 73-75": KH1ItemData("Puppies", code = 264_2225, classification = ItemClassification.progression, ),
|
||||
"Puppies 76-78": KH1ItemData("Puppies", code = 264_2226, classification = ItemClassification.progression, ),
|
||||
"Puppies 79-81": KH1ItemData("Puppies", code = 264_2227, classification = ItemClassification.progression, ),
|
||||
"Puppies 82-84": KH1ItemData("Puppies", code = 264_2228, classification = ItemClassification.progression, ),
|
||||
"Puppies 85-87": KH1ItemData("Puppies", code = 264_2229, classification = ItemClassification.progression, ),
|
||||
"Puppies 88-90": KH1ItemData("Puppies", code = 264_2230, classification = ItemClassification.progression, ),
|
||||
"Puppies 91-93": KH1ItemData("Puppies", code = 264_2231, classification = ItemClassification.progression, ),
|
||||
"Puppies 94-96": KH1ItemData("Puppies", code = 264_2232, classification = ItemClassification.progression, ),
|
||||
"Puppies 97-99": KH1ItemData("Puppies", code = 264_2233, classification = ItemClassification.progression, ),
|
||||
"All Puppies": KH1ItemData("Puppies", code = 264_2240, classification = ItemClassification.progression, ),
|
||||
"Treasure Magnet": KH1ItemData("Abilities", code = 264_3005, classification = ItemClassification.useful, max_quantity = 2 ),
|
||||
"Combo Plus": KH1ItemData("Abilities", code = 264_3006, classification = ItemClassification.useful, max_quantity = 4 ),
|
||||
"Air Combo Plus": KH1ItemData("Abilities", code = 264_3007, classification = ItemClassification.useful, max_quantity = 2 ),
|
||||
"Critical Plus": KH1ItemData("Abilities", code = 264_3008, classification = ItemClassification.useful, max_quantity = 3 ),
|
||||
#"Second Wind": KH1ItemData("Abilities", code = 264_3009, classification = ItemClassification.useful, ),
|
||||
"Scan": KH1ItemData("Abilities", code = 264_3010, classification = ItemClassification.useful, ),
|
||||
"Sonic Blade": KH1ItemData("Abilities", code = 264_3011, classification = ItemClassification.useful, ),
|
||||
"Ars Arcanum": KH1ItemData("Abilities", code = 264_3012, classification = ItemClassification.useful, ),
|
||||
"Strike Raid": KH1ItemData("Abilities", code = 264_3013, classification = ItemClassification.useful, ),
|
||||
"Ragnarok": KH1ItemData("Abilities", code = 264_3014, classification = ItemClassification.useful, ),
|
||||
"Trinity Limit": KH1ItemData("Abilities", code = 264_3015, classification = ItemClassification.useful, ),
|
||||
"Cheer": KH1ItemData("Abilities", code = 264_3016, classification = ItemClassification.useful, ),
|
||||
"Vortex": KH1ItemData("Abilities", code = 264_3017, classification = ItemClassification.useful, ),
|
||||
"Aerial Sweep": KH1ItemData("Abilities", code = 264_3018, classification = ItemClassification.useful, ),
|
||||
"Counterattack": KH1ItemData("Abilities", code = 264_3019, classification = ItemClassification.useful, ),
|
||||
"Blitz": KH1ItemData("Abilities", code = 264_3020, classification = ItemClassification.useful, ),
|
||||
"Guard": KH1ItemData("Abilities", code = 264_3021, classification = ItemClassification.progression, ),
|
||||
"Dodge Roll": KH1ItemData("Abilities", code = 264_3022, classification = ItemClassification.progression, ),
|
||||
"MP Haste": KH1ItemData("Abilities", code = 264_3023, classification = ItemClassification.useful, ),
|
||||
"MP Rage": KH1ItemData("Abilities", code = 264_3024, classification = ItemClassification.progression, ),
|
||||
"Second Chance": KH1ItemData("Abilities", code = 264_3025, classification = ItemClassification.progression, ),
|
||||
"Berserk": KH1ItemData("Abilities", code = 264_3026, classification = ItemClassification.useful, ),
|
||||
"Jackpot": KH1ItemData("Abilities", code = 264_3027, classification = ItemClassification.useful, ),
|
||||
"Lucky Strike": KH1ItemData("Abilities", code = 264_3028, classification = ItemClassification.useful, ),
|
||||
#"Charge": KH1ItemData("Abilities", code = 264_3029, classification = ItemClassification.useful, ),
|
||||
#"Rocket": KH1ItemData("Abilities", code = 264_3030, classification = ItemClassification.useful, ),
|
||||
#"Tornado": KH1ItemData("Abilities", code = 264_3031, classification = ItemClassification.useful, ),
|
||||
#"MP Gift": KH1ItemData("Abilities", code = 264_3032, classification = ItemClassification.useful, ),
|
||||
#"Raging Boar": KH1ItemData("Abilities", code = 264_3033, classification = ItemClassification.useful, ),
|
||||
#"Asp's Bite": KH1ItemData("Abilities", code = 264_3034, classification = ItemClassification.useful, ),
|
||||
#"Healing Herb": KH1ItemData("Abilities", code = 264_3035, classification = ItemClassification.useful, ),
|
||||
#"Wind Armor": KH1ItemData("Abilities", code = 264_3036, classification = ItemClassification.useful, ),
|
||||
#"Crescent": KH1ItemData("Abilities", code = 264_3037, classification = ItemClassification.useful, ),
|
||||
#"Sandstorm": KH1ItemData("Abilities", code = 264_3038, classification = ItemClassification.useful, ),
|
||||
#"Applause!": KH1ItemData("Abilities", code = 264_3039, classification = ItemClassification.useful, ),
|
||||
#"Blazing Fury": KH1ItemData("Abilities", code = 264_3040, classification = ItemClassification.useful, ),
|
||||
#"Icy Terror": KH1ItemData("Abilities", code = 264_3041, classification = ItemClassification.useful, ),
|
||||
#"Bolts of Sorrow": KH1ItemData("Abilities", code = 264_3042, classification = ItemClassification.useful, ),
|
||||
#"Ghostly Scream": KH1ItemData("Abilities", code = 264_3043, classification = ItemClassification.useful, ),
|
||||
#"Humming Bird": KH1ItemData("Abilities", code = 264_3044, classification = ItemClassification.useful, ),
|
||||
#"Time-Out": KH1ItemData("Abilities", code = 264_3045, classification = ItemClassification.useful, ),
|
||||
#"Storm's Eye": KH1ItemData("Abilities", code = 264_3046, classification = ItemClassification.useful, ),
|
||||
#"Ferocious Lunge": KH1ItemData("Abilities", code = 264_3047, classification = ItemClassification.useful, ),
|
||||
#"Furious Bellow": KH1ItemData("Abilities", code = 264_3048, classification = ItemClassification.useful, ),
|
||||
#"Spiral Wave": KH1ItemData("Abilities", code = 264_3049, classification = ItemClassification.useful, ),
|
||||
#"Thunder Potion": KH1ItemData("Abilities", code = 264_3050, classification = ItemClassification.useful, ),
|
||||
#"Cure Potion": KH1ItemData("Abilities", code = 264_3051, classification = ItemClassification.useful, ),
|
||||
#"Aero Potion": KH1ItemData("Abilities", code = 264_3052, classification = ItemClassification.useful, ),
|
||||
"Slapshot": KH1ItemData("Abilities", code = 264_3053, classification = ItemClassification.useful, ),
|
||||
"Sliding Dash": KH1ItemData("Abilities", code = 264_3054, classification = ItemClassification.useful, ),
|
||||
"Hurricane Blast": KH1ItemData("Abilities", code = 264_3055, classification = ItemClassification.useful, ),
|
||||
"Ripple Drive": KH1ItemData("Abilities", code = 264_3056, classification = ItemClassification.useful, ),
|
||||
"Stun Impact": KH1ItemData("Abilities", code = 264_3057, classification = ItemClassification.useful, ),
|
||||
"Gravity Break": KH1ItemData("Abilities", code = 264_3058, classification = ItemClassification.useful, ),
|
||||
"Zantetsuken": KH1ItemData("Abilities", code = 264_3059, classification = ItemClassification.useful, ),
|
||||
"Tech Boost": KH1ItemData("Abilities", code = 264_3060, classification = ItemClassification.useful, max_quantity = 4 ),
|
||||
"Encounter Plus": KH1ItemData("Abilities", code = 264_3061, classification = ItemClassification.useful, ),
|
||||
"Leaf Bracer": KH1ItemData("Abilities", code = 264_3062, classification = ItemClassification.progression, ),
|
||||
#"Evolution": KH1ItemData("Abilities", code = 264_3063, classification = ItemClassification.useful, ),
|
||||
"EXP Zero": KH1ItemData("Abilities", code = 264_3064, classification = ItemClassification.useful, ),
|
||||
"Combo Master": KH1ItemData("Abilities", code = 264_3065, classification = ItemClassification.progression, ),
|
||||
"Max HP Increase": KH1ItemData("Level Up", code = 264_4001, classification = ItemClassification.useful, max_quantity = 15),
|
||||
"Max MP Increase": KH1ItemData("Level Up", code = 264_4002, classification = ItemClassification.useful, max_quantity = 15),
|
||||
"Max AP Increase": KH1ItemData("Level Up", code = 264_4003, classification = ItemClassification.useful, max_quantity = 15),
|
||||
"Strength Increase": KH1ItemData("Level Up", code = 264_4004, classification = ItemClassification.useful, max_quantity = 15),
|
||||
"Defense Increase": KH1ItemData("Level Up", code = 264_4005, classification = ItemClassification.useful, max_quantity = 15),
|
||||
"Accessory Slot Increase": KH1ItemData("Limited Level Up", code = 264_4006, classification = ItemClassification.useful, max_quantity = 15),
|
||||
"Item Slot Increase": KH1ItemData("Limited Level Up", code = 264_4007, classification = ItemClassification.useful, max_quantity = 15),
|
||||
"Dumbo": KH1ItemData("Summons", code = 264_5000, classification = ItemClassification.progression, ),
|
||||
"Bambi": KH1ItemData("Summons", code = 264_5001, classification = ItemClassification.progression, ),
|
||||
"Genie": KH1ItemData("Summons", code = 264_5002, classification = ItemClassification.progression, ),
|
||||
"Tinker Bell": KH1ItemData("Summons", code = 264_5003, classification = ItemClassification.progression, ),
|
||||
"Mushu": KH1ItemData("Summons", code = 264_5004, classification = ItemClassification.progression, ),
|
||||
"Simba": KH1ItemData("Summons", code = 264_5005, classification = ItemClassification.progression, ),
|
||||
"Progressive Fire": KH1ItemData("Magic", code = 264_6001, classification = ItemClassification.progression, max_quantity = 3 ),
|
||||
"Progressive Blizzard": KH1ItemData("Magic", code = 264_6002, classification = ItemClassification.progression, max_quantity = 3 ),
|
||||
"Progressive Thunder": KH1ItemData("Magic", code = 264_6003, classification = ItemClassification.progression, max_quantity = 3 ),
|
||||
"Progressive Cure": KH1ItemData("Magic", code = 264_6004, classification = ItemClassification.progression, max_quantity = 3 ),
|
||||
"Progressive Gravity": KH1ItemData("Magic", code = 264_6005, classification = ItemClassification.progression, max_quantity = 3 ),
|
||||
"Progressive Stop": KH1ItemData("Magic", code = 264_6006, classification = ItemClassification.progression, max_quantity = 3 ),
|
||||
"Progressive Aero": KH1ItemData("Magic", code = 264_6007, classification = ItemClassification.progression, max_quantity = 3 ),
|
||||
#"Traverse Town": KH1ItemData("Worlds", code = 264_7001, classification = ItemClassification.progression, ),
|
||||
"Wonderland": KH1ItemData("Worlds", code = 264_7002, classification = ItemClassification.progression, ),
|
||||
"Olympus Coliseum": KH1ItemData("Worlds", code = 264_7003, classification = ItemClassification.progression, ),
|
||||
"Deep Jungle": KH1ItemData("Worlds", code = 264_7004, classification = ItemClassification.progression, ),
|
||||
"Agrabah": KH1ItemData("Worlds", code = 264_7005, classification = ItemClassification.progression, ),
|
||||
"Halloween Town": KH1ItemData("Worlds", code = 264_7006, classification = ItemClassification.progression, ),
|
||||
"Atlantica": KH1ItemData("Worlds", code = 264_7007, classification = ItemClassification.progression, ),
|
||||
"Neverland": KH1ItemData("Worlds", code = 264_7008, classification = ItemClassification.progression, ),
|
||||
"Hollow Bastion": KH1ItemData("Worlds", code = 264_7009, classification = ItemClassification.progression, ),
|
||||
"End of the World": KH1ItemData("Worlds", code = 264_7010, classification = ItemClassification.progression, ),
|
||||
"Monstro": KH1ItemData("Worlds", code = 264_7011, classification = ItemClassification.progression, ),
|
||||
"Blue Trinity": KH1ItemData("Trinities", code = 264_8001, classification = ItemClassification.progression, ),
|
||||
"Red Trinity": KH1ItemData("Trinities", code = 264_8002, classification = ItemClassification.progression, ),
|
||||
"Green Trinity": KH1ItemData("Trinities", code = 264_8003, classification = ItemClassification.progression, ),
|
||||
"Yellow Trinity": KH1ItemData("Trinities", code = 264_8004, classification = ItemClassification.progression, ),
|
||||
"White Trinity": KH1ItemData("Trinities", code = 264_8005, classification = ItemClassification.progression, ),
|
||||
"Phil Cup": KH1ItemData("Cups", code = 264_9001, classification = ItemClassification.progression, ),
|
||||
"Pegasus Cup": KH1ItemData("Cups", code = 264_9002, classification = ItemClassification.progression, ),
|
||||
"Hercules Cup": KH1ItemData("Cups", code = 264_9003, classification = ItemClassification.progression, ),
|
||||
#"Hades Cup": KH1ItemData("Cups", code = 264_9004, classification = ItemClassification.progression, ),
|
||||
}
|
||||
|
||||
event_item_table: Dict[str, KH1ItemData] = {}
|
||||
|
||||
#Make item categories
|
||||
item_name_groups: Dict[str, Set[str]] = {}
|
||||
for item in item_table.keys():
|
||||
category = item_table[item].category
|
||||
if category not in item_name_groups.keys():
|
||||
item_name_groups[category] = set()
|
||||
item_name_groups[category].add(item)
|
||||
590
worlds/kh1/Locations.py
Normal file
590
worlds/kh1/Locations.py
Normal file
@@ -0,0 +1,590 @@
|
||||
from typing import Dict, NamedTuple, Optional, Set
|
||||
import typing
|
||||
|
||||
|
||||
from BaseClasses import Location
|
||||
|
||||
|
||||
class KH1Location(Location):
|
||||
game: str = "Kingdom Hearts"
|
||||
|
||||
|
||||
class KH1LocationData(NamedTuple):
|
||||
category: str
|
||||
code: int
|
||||
|
||||
|
||||
def get_locations_by_category(category: str) -> Dict[str, KH1LocationData]:
|
||||
location_dict: Dict[str, KH1LocationData] = {}
|
||||
for name, data in location_table.items():
|
||||
if data.category == category:
|
||||
location_dict.setdefault(name, data)
|
||||
|
||||
return location_dict
|
||||
|
||||
|
||||
location_table: Dict[str, KH1LocationData] = {
|
||||
#"Destiny Islands Chest": KH1LocationData("Destiny Islands", 265_0011), missable
|
||||
"Traverse Town 1st District Candle Puzzle Chest": KH1LocationData("Traverse Town", 265_0211),
|
||||
"Traverse Town 1st District Accessory Shop Roof Chest": KH1LocationData("Traverse Town", 265_0212),
|
||||
"Traverse Town 2nd District Boots and Shoes Awning Chest": KH1LocationData("Traverse Town", 265_0213),
|
||||
"Traverse Town 2nd District Rooftop Chest": KH1LocationData("Traverse Town", 265_0214),
|
||||
"Traverse Town 2nd District Gizmo Shop Facade Chest": KH1LocationData("Traverse Town", 265_0251),
|
||||
"Traverse Town Alleyway Balcony Chest": KH1LocationData("Traverse Town", 265_0252),
|
||||
"Traverse Town Alleyway Blue Room Awning Chest": KH1LocationData("Traverse Town", 265_0253),
|
||||
"Traverse Town Alleyway Corner Chest": KH1LocationData("Traverse Town", 265_0254),
|
||||
"Traverse Town Green Room Clock Puzzle Chest": KH1LocationData("Traverse Town", 265_0292),
|
||||
"Traverse Town Green Room Table Chest": KH1LocationData("Traverse Town", 265_0293),
|
||||
"Traverse Town Red Room Chest": KH1LocationData("Traverse Town", 265_0294),
|
||||
"Traverse Town Mystical House Yellow Trinity Chest": KH1LocationData("Traverse Town", 265_0331),
|
||||
"Traverse Town Accessory Shop Chest": KH1LocationData("Traverse Town", 265_0332),
|
||||
"Traverse Town Secret Waterway White Trinity Chest": KH1LocationData("Traverse Town", 265_0333),
|
||||
"Traverse Town Geppetto's House Chest": KH1LocationData("Traverse Town", 265_0334),
|
||||
"Traverse Town Item Workshop Right Chest": KH1LocationData("Traverse Town", 265_0371),
|
||||
"Traverse Town 1st District Blue Trinity Balcony Chest": KH1LocationData("Traverse Town", 265_0411),
|
||||
"Traverse Town Mystical House Glide Chest": KH1LocationData("Traverse Town", 265_0891),
|
||||
"Traverse Town Alleyway Behind Crates Chest": KH1LocationData("Traverse Town", 265_0892),
|
||||
"Traverse Town Item Workshop Left Chest": KH1LocationData("Traverse Town", 265_0893),
|
||||
"Traverse Town Secret Waterway Near Stairs Chest": KH1LocationData("Traverse Town", 265_0894),
|
||||
"Wonderland Rabbit Hole Green Trinity Chest": KH1LocationData("Wonderland", 265_0931),
|
||||
"Wonderland Rabbit Hole Defeat Heartless 1 Chest": KH1LocationData("Wonderland", 265_0932),
|
||||
"Wonderland Rabbit Hole Defeat Heartless 2 Chest": KH1LocationData("Wonderland", 265_0933),
|
||||
"Wonderland Rabbit Hole Defeat Heartless 3 Chest": KH1LocationData("Wonderland", 265_0934),
|
||||
"Wonderland Bizarre Room Green Trinity Chest": KH1LocationData("Wonderland", 265_0971),
|
||||
"Wonderland Queen's Castle Hedge Left Red Chest": KH1LocationData("Wonderland", 265_1011),
|
||||
"Wonderland Queen's Castle Hedge Right Blue Chest": KH1LocationData("Wonderland", 265_1012),
|
||||
"Wonderland Queen's Castle Hedge Right Red Chest": KH1LocationData("Wonderland", 265_1013),
|
||||
"Wonderland Lotus Forest Thunder Plant Chest": KH1LocationData("Wonderland", 265_1014),
|
||||
"Wonderland Lotus Forest Through the Painting Thunder Plant Chest": KH1LocationData("Wonderland", 265_1051),
|
||||
"Wonderland Lotus Forest Glide Chest": KH1LocationData("Wonderland", 265_1052),
|
||||
"Wonderland Lotus Forest Nut Chest": KH1LocationData("Wonderland", 265_1053),
|
||||
"Wonderland Lotus Forest Corner Chest": KH1LocationData("Wonderland", 265_1054),
|
||||
"Wonderland Bizarre Room Lamp Chest": KH1LocationData("Wonderland", 265_1091),
|
||||
"Wonderland Tea Party Garden Above Lotus Forest Entrance 2nd Chest": KH1LocationData("Wonderland", 265_1093),
|
||||
"Wonderland Tea Party Garden Above Lotus Forest Entrance 1st Chest": KH1LocationData("Wonderland", 265_1094),
|
||||
"Wonderland Tea Party Garden Bear and Clock Puzzle Chest": KH1LocationData("Wonderland", 265_1131),
|
||||
"Wonderland Tea Party Garden Across From Bizarre Room Entrance Chest": KH1LocationData("Wonderland", 265_1132),
|
||||
"Wonderland Lotus Forest Through the Painting White Trinity Chest": KH1LocationData("Wonderland", 265_1133),
|
||||
"Deep Jungle Tree House Beneath Tree House Chest": KH1LocationData("Deep Jungle", 265_1213),
|
||||
"Deep Jungle Tree House Rooftop Chest": KH1LocationData("Deep Jungle", 265_1214),
|
||||
"Deep Jungle Hippo's Lagoon Center Chest": KH1LocationData("Deep Jungle", 265_1251),
|
||||
"Deep Jungle Hippo's Lagoon Left Chest": KH1LocationData("Deep Jungle", 265_1252),
|
||||
"Deep Jungle Hippo's Lagoon Right Chest": KH1LocationData("Deep Jungle", 265_1253),
|
||||
"Deep Jungle Vines Chest": KH1LocationData("Deep Jungle", 265_1291),
|
||||
"Deep Jungle Vines 2 Chest": KH1LocationData("Deep Jungle", 265_1292),
|
||||
"Deep Jungle Climbing Trees Blue Trinity Chest": KH1LocationData("Deep Jungle", 265_1293),
|
||||
"Deep Jungle Tunnel Chest": KH1LocationData("Deep Jungle", 265_1331),
|
||||
"Deep Jungle Cavern of Hearts White Trinity Chest": KH1LocationData("Deep Jungle", 265_1332),
|
||||
"Deep Jungle Camp Blue Trinity Chest": KH1LocationData("Deep Jungle", 265_1333),
|
||||
"Deep Jungle Tent Chest": KH1LocationData("Deep Jungle", 265_1334),
|
||||
"Deep Jungle Waterfall Cavern Low Chest": KH1LocationData("Deep Jungle", 265_1371),
|
||||
"Deep Jungle Waterfall Cavern Middle Chest": KH1LocationData("Deep Jungle", 265_1372),
|
||||
"Deep Jungle Waterfall Cavern High Wall Chest": KH1LocationData("Deep Jungle", 265_1373),
|
||||
"Deep Jungle Waterfall Cavern High Middle Chest": KH1LocationData("Deep Jungle", 265_1374),
|
||||
"Deep Jungle Cliff Right Cliff Left Chest": KH1LocationData("Deep Jungle", 265_1411),
|
||||
"Deep Jungle Cliff Right Cliff Right Chest": KH1LocationData("Deep Jungle", 265_1412),
|
||||
"Deep Jungle Tree House Suspended Boat Chest": KH1LocationData("Deep Jungle", 265_1413),
|
||||
"100 Acre Wood Meadow Inside Log Chest": KH1LocationData("100 Acre Wood", 265_1654),
|
||||
"100 Acre Wood Bouncing Spot Left Cliff Chest": KH1LocationData("100 Acre Wood", 265_1691),
|
||||
"100 Acre Wood Bouncing Spot Right Tree Alcove Chest": KH1LocationData("100 Acre Wood", 265_1692),
|
||||
"100 Acre Wood Bouncing Spot Under Giant Pot Chest": KH1LocationData("100 Acre Wood", 265_1693),
|
||||
"Agrabah Plaza By Storage Chest": KH1LocationData("Agrabah", 265_1972),
|
||||
"Agrabah Plaza Raised Terrace Chest": KH1LocationData("Agrabah", 265_1973),
|
||||
"Agrabah Plaza Top Corner Chest": KH1LocationData("Agrabah", 265_1974),
|
||||
"Agrabah Alley Chest": KH1LocationData("Agrabah", 265_2011),
|
||||
"Agrabah Bazaar Across Windows Chest": KH1LocationData("Agrabah", 265_2012),
|
||||
"Agrabah Bazaar High Corner Chest": KH1LocationData("Agrabah", 265_2013),
|
||||
"Agrabah Main Street Right Palace Entrance Chest": KH1LocationData("Agrabah", 265_2014),
|
||||
"Agrabah Main Street High Above Alley Entrance Chest": KH1LocationData("Agrabah", 265_2051),
|
||||
"Agrabah Main Street High Above Palace Gates Entrance Chest": KH1LocationData("Agrabah", 265_2052),
|
||||
"Agrabah Palace Gates Low Chest": KH1LocationData("Agrabah", 265_2053),
|
||||
"Agrabah Palace Gates High Opposite Palace Chest": KH1LocationData("Agrabah", 265_2054),
|
||||
"Agrabah Palace Gates High Close to Palace Chest": KH1LocationData("Agrabah", 265_2091),
|
||||
"Agrabah Storage Green Trinity Chest": KH1LocationData("Agrabah", 265_2092),
|
||||
"Agrabah Storage Behind Barrel Chest": KH1LocationData("Agrabah", 265_2093),
|
||||
"Agrabah Cave of Wonders Entrance Left Chest": KH1LocationData("Agrabah", 265_2094),
|
||||
"Agrabah Cave of Wonders Entrance Tall Tower Chest": KH1LocationData("Agrabah", 265_2131),
|
||||
"Agrabah Cave of Wonders Hall High Left Chest": KH1LocationData("Agrabah", 265_2132),
|
||||
"Agrabah Cave of Wonders Hall Near Bottomless Hall Chest": KH1LocationData("Agrabah", 265_2133),
|
||||
"Agrabah Cave of Wonders Bottomless Hall Raised Platform Chest": KH1LocationData("Agrabah", 265_2134),
|
||||
"Agrabah Cave of Wonders Bottomless Hall Pillar Chest": KH1LocationData("Agrabah", 265_2171),
|
||||
"Agrabah Cave of Wonders Bottomless Hall Across Chasm Chest": KH1LocationData("Agrabah", 265_2172),
|
||||
"Agrabah Cave of Wonders Treasure Room Across Platforms Chest": KH1LocationData("Agrabah", 265_2173),
|
||||
"Agrabah Cave of Wonders Treasure Room Small Treasure Pile Chest": KH1LocationData("Agrabah", 265_2174),
|
||||
"Agrabah Cave of Wonders Treasure Room Large Treasure Pile Chest": KH1LocationData("Agrabah", 265_2211),
|
||||
"Agrabah Cave of Wonders Treasure Room Above Fire Chest": KH1LocationData("Agrabah", 265_2212),
|
||||
"Agrabah Cave of Wonders Relic Chamber Jump from Stairs Chest": KH1LocationData("Agrabah", 265_2213),
|
||||
"Agrabah Cave of Wonders Relic Chamber Stairs Chest": KH1LocationData("Agrabah", 265_2214),
|
||||
"Agrabah Cave of Wonders Dark Chamber Abu Gem Chest": KH1LocationData("Agrabah", 265_2251),
|
||||
"Agrabah Cave of Wonders Dark Chamber Across from Relic Chamber Entrance Chest": KH1LocationData("Agrabah", 265_2252),
|
||||
"Agrabah Cave of Wonders Dark Chamber Bridge Chest": KH1LocationData("Agrabah", 265_2253),
|
||||
"Agrabah Cave of Wonders Dark Chamber Near Save Chest": KH1LocationData("Agrabah", 265_2254),
|
||||
"Agrabah Cave of Wonders Silent Chamber Blue Trinity Chest": KH1LocationData("Agrabah", 265_2291),
|
||||
"Agrabah Cave of Wonders Hidden Room Right Chest": KH1LocationData("Agrabah", 265_2292),
|
||||
"Agrabah Cave of Wonders Hidden Room Left Chest": KH1LocationData("Agrabah", 265_2293),
|
||||
"Agrabah Aladdin's House Main Street Entrance Chest": KH1LocationData("Agrabah", 265_2294),
|
||||
"Agrabah Aladdin's House Plaza Entrance Chest": KH1LocationData("Agrabah", 265_2331),
|
||||
"Agrabah Cave of Wonders Entrance White Trinity Chest": KH1LocationData("Agrabah", 265_2332),
|
||||
"Monstro Chamber 6 Other Platform Chest": KH1LocationData("Monstro", 265_2413),
|
||||
"Monstro Chamber 6 Platform Near Chamber 5 Entrance Chest": KH1LocationData("Monstro", 265_2414),
|
||||
"Monstro Chamber 6 Raised Area Near Chamber 1 Entrance Chest": KH1LocationData("Monstro", 265_2451),
|
||||
"Monstro Chamber 6 Low Chest": KH1LocationData("Monstro", 265_2452),
|
||||
"Atlantica Sunken Ship In Flipped Boat Chest": KH1LocationData("Atlantica", 265_2531),
|
||||
"Atlantica Sunken Ship Seabed Chest": KH1LocationData("Atlantica", 265_2532),
|
||||
"Atlantica Sunken Ship Inside Ship Chest": KH1LocationData("Atlantica", 265_2533),
|
||||
"Atlantica Ariel's Grotto High Chest": KH1LocationData("Atlantica", 265_2534),
|
||||
"Atlantica Ariel's Grotto Middle Chest": KH1LocationData("Atlantica", 265_2571),
|
||||
"Atlantica Ariel's Grotto Low Chest": KH1LocationData("Atlantica", 265_2572),
|
||||
"Atlantica Ursula's Lair Use Fire on Urchin Chest": KH1LocationData("Atlantica", 265_2573),
|
||||
"Atlantica Undersea Gorge Jammed by Ariel's Grotto Chest": KH1LocationData("Atlantica", 265_2574),
|
||||
"Atlantica Triton's Palace White Trinity Chest": KH1LocationData("Atlantica", 265_2611),
|
||||
"Halloween Town Moonlight Hill White Trinity Chest": KH1LocationData("Halloween Town", 265_3014),
|
||||
"Halloween Town Bridge Under Bridge": KH1LocationData("Halloween Town", 265_3051),
|
||||
"Halloween Town Boneyard Tombstone Puzzle Chest": KH1LocationData("Halloween Town", 265_3052),
|
||||
"Halloween Town Bridge Right of Gate Chest": KH1LocationData("Halloween Town", 265_3053),
|
||||
"Halloween Town Cemetery Behind Grave Chest": KH1LocationData("Halloween Town", 265_3054),
|
||||
"Halloween Town Cemetery By Cat Shape Chest": KH1LocationData("Halloween Town", 265_3091),
|
||||
"Halloween Town Cemetery Between Graves Chest": KH1LocationData("Halloween Town", 265_3092),
|
||||
"Halloween Town Oogie's Manor Lower Iron Cage Chest": KH1LocationData("Halloween Town", 265_3093),
|
||||
"Halloween Town Oogie's Manor Upper Iron Cage Chest": KH1LocationData("Halloween Town", 265_3094),
|
||||
"Halloween Town Oogie's Manor Hollow Chest": KH1LocationData("Halloween Town", 265_3131),
|
||||
"Halloween Town Oogie's Manor Grounds Red Trinity Chest": KH1LocationData("Halloween Town", 265_3132),
|
||||
"Halloween Town Guillotine Square High Tower Chest": KH1LocationData("Halloween Town", 265_3133),
|
||||
"Halloween Town Guillotine Square Pumpkin Structure Left Chest": KH1LocationData("Halloween Town", 265_3134),
|
||||
"Halloween Town Oogie's Manor Entrance Steps Chest": KH1LocationData("Halloween Town", 265_3171),
|
||||
"Halloween Town Oogie's Manor Inside Entrance Chest": KH1LocationData("Halloween Town", 265_3172),
|
||||
"Halloween Town Bridge Left of Gate Chest": KH1LocationData("Halloween Town", 265_3291),
|
||||
"Halloween Town Cemetery By Striped Grave Chest": KH1LocationData("Halloween Town", 265_3292),
|
||||
"Halloween Town Guillotine Square Under Jack's House Stairs Chest": KH1LocationData("Halloween Town", 265_3293),
|
||||
"Halloween Town Guillotine Square Pumpkin Structure Right Chest": KH1LocationData("Halloween Town", 265_3294),
|
||||
"Olympus Coliseum Coliseum Gates Left Behind Columns Chest": KH1LocationData("Olympus Coliseum", 265_3332),
|
||||
"Olympus Coliseum Coliseum Gates Right Blue Trinity Chest": KH1LocationData("Olympus Coliseum", 265_3333),
|
||||
"Olympus Coliseum Coliseum Gates Left Blue Trinity Chest": KH1LocationData("Olympus Coliseum", 265_3334),
|
||||
"Olympus Coliseum Coliseum Gates White Trinity Chest": KH1LocationData("Olympus Coliseum", 265_3371),
|
||||
"Olympus Coliseum Coliseum Gates Blizzara Chest": KH1LocationData("Olympus Coliseum", 265_3372),
|
||||
"Olympus Coliseum Coliseum Gates Blizzaga Chest": KH1LocationData("Olympus Coliseum", 265_3373),
|
||||
"Monstro Mouth Boat Deck Chest": KH1LocationData("Monstro", 265_3454),
|
||||
"Monstro Mouth High Platform Boat Side Chest": KH1LocationData("Monstro", 265_3491),
|
||||
"Monstro Mouth High Platform Across from Boat Chest": KH1LocationData("Monstro", 265_3492),
|
||||
"Monstro Mouth Near Ship Chest": KH1LocationData("Monstro", 265_3493),
|
||||
"Monstro Mouth Green Trinity Top of Boat Chest": KH1LocationData("Monstro", 265_3494),
|
||||
"Monstro Chamber 2 Ground Chest": KH1LocationData("Monstro", 265_3534),
|
||||
"Monstro Chamber 2 Platform Chest": KH1LocationData("Monstro", 265_3571),
|
||||
"Monstro Chamber 5 Platform Chest": KH1LocationData("Monstro", 265_3613),
|
||||
"Monstro Chamber 3 Ground Chest": KH1LocationData("Monstro", 265_3614),
|
||||
"Monstro Chamber 3 Platform Above Chamber 2 Entrance Chest": KH1LocationData("Monstro", 265_3651),
|
||||
"Monstro Chamber 3 Near Chamber 6 Entrance Chest": KH1LocationData("Monstro", 265_3652),
|
||||
"Monstro Chamber 3 Platform Near Chamber 6 Entrance Chest": KH1LocationData("Monstro", 265_3653),
|
||||
"Monstro Mouth High Platform Near Teeth Chest": KH1LocationData("Monstro", 265_3732),
|
||||
"Monstro Chamber 5 Atop Barrel Chest": KH1LocationData("Monstro", 265_3733),
|
||||
"Monstro Chamber 5 Low 2nd Chest": KH1LocationData("Monstro", 265_3734),
|
||||
"Monstro Chamber 5 Low 1st Chest": KH1LocationData("Monstro", 265_3771),
|
||||
"Neverland Pirate Ship Deck White Trinity Chest": KH1LocationData("Neverland", 265_3772),
|
||||
"Neverland Pirate Ship Crows Nest Chest": KH1LocationData("Neverland", 265_3773),
|
||||
"Neverland Hold Yellow Trinity Right Blue Chest": KH1LocationData("Neverland", 265_3774),
|
||||
"Neverland Hold Yellow Trinity Left Blue Chest": KH1LocationData("Neverland", 265_3811),
|
||||
"Neverland Galley Chest": KH1LocationData("Neverland", 265_3812),
|
||||
"Neverland Cabin Chest": KH1LocationData("Neverland", 265_3813),
|
||||
"Neverland Hold Flight 1st Chest": KH1LocationData("Neverland", 265_3814),
|
||||
"Neverland Clock Tower Chest": KH1LocationData("Neverland", 265_4014),
|
||||
"Neverland Hold Flight 2nd Chest": KH1LocationData("Neverland", 265_4051),
|
||||
"Neverland Hold Yellow Trinity Green Chest": KH1LocationData("Neverland", 265_4052),
|
||||
"Neverland Captain's Cabin Chest": KH1LocationData("Neverland", 265_4053),
|
||||
"Hollow Bastion Rising Falls Water's Surface Chest": KH1LocationData("Hollow Bastion", 265_4054),
|
||||
"Hollow Bastion Rising Falls Under Water 1st Chest": KH1LocationData("Hollow Bastion", 265_4091),
|
||||
"Hollow Bastion Rising Falls Under Water 2nd Chest": KH1LocationData("Hollow Bastion", 265_4092),
|
||||
"Hollow Bastion Rising Falls Floating Platform Near Save Chest": KH1LocationData("Hollow Bastion", 265_4093),
|
||||
"Hollow Bastion Rising Falls Floating Platform Near Bubble Chest": KH1LocationData("Hollow Bastion", 265_4094),
|
||||
"Hollow Bastion Rising Falls High Platform Chest": KH1LocationData("Hollow Bastion", 265_4131),
|
||||
"Hollow Bastion Castle Gates Gravity Chest": KH1LocationData("Hollow Bastion", 265_4132),
|
||||
"Hollow Bastion Castle Gates Freestanding Pillar Chest": KH1LocationData("Hollow Bastion", 265_4133),
|
||||
"Hollow Bastion Castle Gates High Pillar Chest": KH1LocationData("Hollow Bastion", 265_4134),
|
||||
"Hollow Bastion Great Crest Lower Chest": KH1LocationData("Hollow Bastion", 265_4171),
|
||||
"Hollow Bastion Great Crest After Battle Platform Chest": KH1LocationData("Hollow Bastion", 265_4172),
|
||||
"Hollow Bastion High Tower 2nd Gravity Chest": KH1LocationData("Hollow Bastion", 265_4173),
|
||||
"Hollow Bastion High Tower 1st Gravity Chest": KH1LocationData("Hollow Bastion", 265_4174),
|
||||
"Hollow Bastion High Tower Above Sliding Blocks Chest": KH1LocationData("Hollow Bastion", 265_4211),
|
||||
"Hollow Bastion Library Top of Bookshelf Chest": KH1LocationData("Hollow Bastion", 265_4213),
|
||||
"Hollow Bastion Library 1st Floor Turn the Carousel Chest": KH1LocationData("Hollow Bastion", 265_4214),
|
||||
"Hollow Bastion Library Top of Bookshelf Turn the Carousel Chest": KH1LocationData("Hollow Bastion", 265_4251),
|
||||
"Hollow Bastion Library 2nd Floor Turn the Carousel 1st Chest": KH1LocationData("Hollow Bastion", 265_4252),
|
||||
"Hollow Bastion Library 2nd Floor Turn the Carousel 2nd Chest": KH1LocationData("Hollow Bastion", 265_4253),
|
||||
"Hollow Bastion Lift Stop Library Node After High Tower Switch Gravity Chest": KH1LocationData("Hollow Bastion", 265_4254),
|
||||
"Hollow Bastion Lift Stop Library Node Gravity Chest": KH1LocationData("Hollow Bastion", 265_4291),
|
||||
"Hollow Bastion Lift Stop Under High Tower Sliding Blocks Chest": KH1LocationData("Hollow Bastion", 265_4292),
|
||||
"Hollow Bastion Lift Stop Outside Library Gravity Chest": KH1LocationData("Hollow Bastion", 265_4293),
|
||||
"Hollow Bastion Lift Stop Heartless Sigil Door Gravity Chest": KH1LocationData("Hollow Bastion", 265_4294),
|
||||
"Hollow Bastion Base Level Bubble Under the Wall Platform Chest": KH1LocationData("Hollow Bastion", 265_4331),
|
||||
"Hollow Bastion Base Level Platform Near Entrance Chest": KH1LocationData("Hollow Bastion", 265_4332),
|
||||
"Hollow Bastion Base Level Near Crystal Switch Chest": KH1LocationData("Hollow Bastion", 265_4333),
|
||||
"Hollow Bastion Waterway Near Save Chest": KH1LocationData("Hollow Bastion", 265_4334),
|
||||
"Hollow Bastion Waterway Blizzard on Bubble Chest": KH1LocationData("Hollow Bastion", 265_4371),
|
||||
"Hollow Bastion Waterway Unlock Passage from Base Level Chest": KH1LocationData("Hollow Bastion", 265_4372),
|
||||
"Hollow Bastion Dungeon By Candles Chest": KH1LocationData("Hollow Bastion", 265_4373),
|
||||
"Hollow Bastion Dungeon Corner Chest": KH1LocationData("Hollow Bastion", 265_4374),
|
||||
"Hollow Bastion Grand Hall Steps Right Side Chest": KH1LocationData("Hollow Bastion", 265_4454),
|
||||
"Hollow Bastion Grand Hall Oblivion Chest": KH1LocationData("Hollow Bastion", 265_4491),
|
||||
"Hollow Bastion Grand Hall Left of Gate Chest": KH1LocationData("Hollow Bastion", 265_4492),
|
||||
#"Hollow Bastion Entrance Hall Push the Statue Chest": KH1LocationData("Hollow Bastion", 265_4493), --handled later
|
||||
"Hollow Bastion Entrance Hall Left of Emblem Door Chest": KH1LocationData("Hollow Bastion", 265_4212),
|
||||
"Hollow Bastion Rising Falls White Trinity Chest": KH1LocationData("Hollow Bastion", 265_4494),
|
||||
"End of the World Final Dimension 1st Chest": KH1LocationData("End of the World", 265_4531),
|
||||
"End of the World Final Dimension 2nd Chest": KH1LocationData("End of the World", 265_4532),
|
||||
"End of the World Final Dimension 3rd Chest": KH1LocationData("End of the World", 265_4533),
|
||||
"End of the World Final Dimension 4th Chest": KH1LocationData("End of the World", 265_4534),
|
||||
"End of the World Final Dimension 5th Chest": KH1LocationData("End of the World", 265_4571),
|
||||
"End of the World Final Dimension 6th Chest": KH1LocationData("End of the World", 265_4572),
|
||||
"End of the World Final Dimension 10th Chest": KH1LocationData("End of the World", 265_4573),
|
||||
"End of the World Final Dimension 9th Chest": KH1LocationData("End of the World", 265_4574),
|
||||
"End of the World Final Dimension 8th Chest": KH1LocationData("End of the World", 265_4611),
|
||||
"End of the World Final Dimension 7th Chest": KH1LocationData("End of the World", 265_4612),
|
||||
"End of the World Giant Crevasse 3rd Chest": KH1LocationData("End of the World", 265_4613),
|
||||
"End of the World Giant Crevasse 5th Chest": KH1LocationData("End of the World", 265_4614),
|
||||
"End of the World Giant Crevasse 1st Chest": KH1LocationData("End of the World", 265_4651),
|
||||
"End of the World Giant Crevasse 4th Chest": KH1LocationData("End of the World", 265_4652),
|
||||
"End of the World Giant Crevasse 2nd Chest": KH1LocationData("End of the World", 265_4653),
|
||||
"End of the World World Terminus Traverse Town Chest": KH1LocationData("End of the World", 265_4654),
|
||||
"End of the World World Terminus Wonderland Chest": KH1LocationData("End of the World", 265_4691),
|
||||
"End of the World World Terminus Olympus Coliseum Chest": KH1LocationData("End of the World", 265_4692),
|
||||
"End of the World World Terminus Deep Jungle Chest": KH1LocationData("End of the World", 265_4693),
|
||||
"End of the World World Terminus Agrabah Chest": KH1LocationData("End of the World", 265_4694),
|
||||
"End of the World World Terminus Atlantica Chest": KH1LocationData("End of the World", 265_4731),
|
||||
"End of the World World Terminus Halloween Town Chest": KH1LocationData("End of the World", 265_4732),
|
||||
"End of the World World Terminus Neverland Chest": KH1LocationData("End of the World", 265_4733),
|
||||
"End of the World World Terminus 100 Acre Wood Chest": KH1LocationData("End of the World", 265_4734),
|
||||
#"End of the World World Terminus Hollow Bastion Chest": KH1LocationData("End of the World", 265_4771),
|
||||
"End of the World Final Rest Chest": KH1LocationData("End of the World", 265_4772),
|
||||
"Monstro Chamber 6 White Trinity Chest": KH1LocationData("End of the World", 265_5092),
|
||||
#"Awakening Chest": KH1LocationData("Awakening", 265_5093), missable
|
||||
|
||||
"Traverse Town Defeat Guard Armor Dodge Roll Event": KH1LocationData("Traverse Town", 265_6011),
|
||||
"Traverse Town Defeat Guard Armor Fire Event": KH1LocationData("Traverse Town", 265_6012),
|
||||
"Traverse Town Defeat Guard Armor Blue Trinity Event": KH1LocationData("Traverse Town", 265_6013),
|
||||
"Traverse Town Leon Secret Waterway Earthshine Event": KH1LocationData("Traverse Town", 265_6014),
|
||||
"Traverse Town Kairi Secret Waterway Oathkeeper Event": KH1LocationData("Traverse Town", 265_6015),
|
||||
"Traverse Town Defeat Guard Armor Brave Warrior Event": KH1LocationData("Traverse Town", 265_6016),
|
||||
"Deep Jungle Defeat Sabor White Fang Event": KH1LocationData("Deep Jungle", 265_6021),
|
||||
"Deep Jungle Defeat Clayton Cure Event": KH1LocationData("Deep Jungle", 265_6022),
|
||||
"Deep Jungle Seal Keyhole Jungle King Event": KH1LocationData("Deep Jungle", 265_6023),
|
||||
"Deep Jungle Seal Keyhole Red Trinity Event": KH1LocationData("Deep Jungle", 265_6024),
|
||||
"Olympus Coliseum Clear Phil's Training Thunder Event": KH1LocationData("Olympus Coliseum", 265_6031),
|
||||
"Olympus Coliseum Defeat Cerberus Inferno Band Event": KH1LocationData("Olympus Coliseum", 265_6033),
|
||||
"Wonderland Defeat Trickmaster Blizzard Event": KH1LocationData("Wonderland", 265_6041),
|
||||
"Wonderland Defeat Trickmaster Ifrit's Horn Event": KH1LocationData("Wonderland", 265_6042),
|
||||
"Agrabah Defeat Pot Centipede Ray of Light Event": KH1LocationData("Agrabah", 265_6051),
|
||||
"Agrabah Defeat Jafar Blizzard Event": KH1LocationData("Agrabah", 265_6052),
|
||||
"Agrabah Defeat Jafar Genie Fire Event": KH1LocationData("Agrabah", 265_6053),
|
||||
"Agrabah Seal Keyhole Genie Event": KH1LocationData("Agrabah", 265_6054),
|
||||
"Agrabah Seal Keyhole Three Wishes Event": KH1LocationData("Agrabah", 265_6055),
|
||||
"Agrabah Seal Keyhole Green Trinity Event": KH1LocationData("Agrabah", 265_6056),
|
||||
"Monstro Defeat Parasite Cage I Goofy Cheer Event": KH1LocationData("Monstro", 265_6061),
|
||||
"Monstro Defeat Parasite Cage II Stop Event": KH1LocationData("Monstro", 265_6062),
|
||||
"Atlantica Defeat Ursula I Mermaid Kick Event": KH1LocationData("Atlantica", 265_6071),
|
||||
"Atlantica Defeat Ursula II Thunder Event": KH1LocationData("Atlantica", 265_6072),
|
||||
"Atlantica Seal Keyhole Crabclaw Event": KH1LocationData("Atlantica", 265_6073),
|
||||
"Halloween Town Defeat Oogie Boogie Holy Circlet Event": KH1LocationData("Halloween Town", 265_6081),
|
||||
"Halloween Town Defeat Oogie's Manor Gravity Event": KH1LocationData("Halloween Town", 265_6082),
|
||||
"Halloween Town Seal Keyhole Pumpkinhead Event": KH1LocationData("Halloween Town", 265_6083),
|
||||
"Neverland Defeat Anti Sora Raven's Claw Event": KH1LocationData("Neverland", 265_6091),
|
||||
"Neverland Encounter Hook Cure Event": KH1LocationData("Neverland", 265_6092),
|
||||
"Neverland Seal Keyhole Fairy Harp Event": KH1LocationData("Neverland", 265_6093),
|
||||
"Neverland Seal Keyhole Tinker Bell Event": KH1LocationData("Neverland", 265_6094),
|
||||
"Neverland Seal Keyhole Glide Event": KH1LocationData("Neverland", 265_6095),
|
||||
"Neverland Defeat Phantom Stop Event": KH1LocationData("Neverland", 265_6096),
|
||||
"Neverland Defeat Captain Hook Ars Arcanum Event": KH1LocationData("Neverland", 265_6097),
|
||||
"Hollow Bastion Defeat Riku I White Trinity Event": KH1LocationData("Hollow Bastion", 265_6101),
|
||||
"Hollow Bastion Defeat Maleficent Donald Cheer Event": KH1LocationData("Hollow Bastion", 265_6102),
|
||||
"Hollow Bastion Defeat Dragon Maleficent Fireglow Event": KH1LocationData("Hollow Bastion", 265_6103),
|
||||
"Hollow Bastion Defeat Riku II Ragnarok Event": KH1LocationData("Hollow Bastion", 265_6104),
|
||||
"Hollow Bastion Defeat Behemoth Omega Arts Event": KH1LocationData("Hollow Bastion", 265_6105),
|
||||
"Hollow Bastion Speak to Princesses Fire Event": KH1LocationData("Hollow Bastion", 265_6106),
|
||||
"End of the World Defeat Chernabog Superglide Event": KH1LocationData("End of the World", 265_6111),
|
||||
|
||||
"Traverse Town Mail Postcard 01 Event": KH1LocationData("Traverse Town", 265_6120),
|
||||
"Traverse Town Mail Postcard 02 Event": KH1LocationData("Traverse Town", 265_6121),
|
||||
"Traverse Town Mail Postcard 03 Event": KH1LocationData("Traverse Town", 265_6122),
|
||||
"Traverse Town Mail Postcard 04 Event": KH1LocationData("Traverse Town", 265_6123),
|
||||
"Traverse Town Mail Postcard 05 Event": KH1LocationData("Traverse Town", 265_6124),
|
||||
"Traverse Town Mail Postcard 06 Event": KH1LocationData("Traverse Town", 265_6125),
|
||||
"Traverse Town Mail Postcard 07 Event": KH1LocationData("Traverse Town", 265_6126),
|
||||
"Traverse Town Mail Postcard 08 Event": KH1LocationData("Traverse Town", 265_6127),
|
||||
"Traverse Town Mail Postcard 09 Event": KH1LocationData("Traverse Town", 265_6128),
|
||||
"Traverse Town Mail Postcard 10 Event": KH1LocationData("Traverse Town", 265_6129),
|
||||
|
||||
"Traverse Town Defeat Opposite Armor Aero Event": KH1LocationData("Traverse Town", 265_6131),
|
||||
|
||||
"Atlantica Undersea Gorge Blizzard Clam": KH1LocationData("Atlantica", 265_6201),
|
||||
"Atlantica Undersea Gorge Ocean Floor Clam": KH1LocationData("Atlantica", 265_6202),
|
||||
"Atlantica Undersea Valley Higher Cave Clam": KH1LocationData("Atlantica", 265_6203),
|
||||
"Atlantica Undersea Valley Lower Cave Clam": KH1LocationData("Atlantica", 265_6204),
|
||||
"Atlantica Undersea Valley Fire Clam": KH1LocationData("Atlantica", 265_6205),
|
||||
"Atlantica Undersea Valley Wall Clam": KH1LocationData("Atlantica", 265_6206),
|
||||
"Atlantica Undersea Valley Pillar Clam": KH1LocationData("Atlantica", 265_6207),
|
||||
"Atlantica Undersea Valley Ocean Floor Clam": KH1LocationData("Atlantica", 265_6208),
|
||||
"Atlantica Triton's Palace Thunder Clam": KH1LocationData("Atlantica", 265_6209),
|
||||
"Atlantica Triton's Palace Wall Right Clam": KH1LocationData("Atlantica", 265_6210),
|
||||
"Atlantica Triton's Palace Near Path Clam": KH1LocationData("Atlantica", 265_6211),
|
||||
"Atlantica Triton's Palace Wall Left Clam": KH1LocationData("Atlantica", 265_6212),
|
||||
"Atlantica Cavern Nook Clam": KH1LocationData("Atlantica", 265_6213),
|
||||
"Atlantica Below Deck Clam": KH1LocationData("Atlantica", 265_6214),
|
||||
"Atlantica Undersea Garden Clam": KH1LocationData("Atlantica", 265_6215),
|
||||
"Atlantica Undersea Cave Clam": KH1LocationData("Atlantica", 265_6216),
|
||||
|
||||
#"Traverse Town Magician's Study Turn in Naturespark": KH1LocationData("Traverse Town", 265_6300),
|
||||
#"Traverse Town Magician's Study Turn in Watergleam": KH1LocationData("Traverse Town", 265_6301),
|
||||
#"Traverse Town Magician's Study Turn in Fireglow": KH1LocationData("Traverse Town", 265_6302),
|
||||
#"Traverse Town Magician's Study Turn in all Summon Gems": KH1LocationData("Traverse Town", 265_6303),
|
||||
"Traverse Town Geppetto's House Geppetto Reward 1": KH1LocationData("Traverse Town", 265_6304),
|
||||
"Traverse Town Geppetto's House Geppetto Reward 2": KH1LocationData("Traverse Town", 265_6305),
|
||||
"Traverse Town Geppetto's House Geppetto Reward 3": KH1LocationData("Traverse Town", 265_6306),
|
||||
"Traverse Town Geppetto's House Geppetto Reward 4": KH1LocationData("Traverse Town", 265_6307),
|
||||
"Traverse Town Geppetto's House Geppetto Reward 5": KH1LocationData("Traverse Town", 265_6308),
|
||||
"Traverse Town Geppetto's House Geppetto All Summons Reward": KH1LocationData("Traverse Town", 265_6309),
|
||||
"Traverse Town Geppetto's House Talk to Pinocchio": KH1LocationData("Traverse Town", 265_6310),
|
||||
"Traverse Town Magician's Study Obtained All Arts Items": KH1LocationData("Traverse Town", 265_6311),
|
||||
"Traverse Town Magician's Study Obtained All LV1 Magic": KH1LocationData("Traverse Town", 265_6312),
|
||||
"Traverse Town Magician's Study Obtained All LV3 Magic": KH1LocationData("Traverse Town", 265_6313),
|
||||
"Traverse Town Piano Room Return 10 Puppies": KH1LocationData("Traverse Town", 265_6314),
|
||||
"Traverse Town Piano Room Return 20 Puppies": KH1LocationData("Traverse Town", 265_6315),
|
||||
"Traverse Town Piano Room Return 30 Puppies": KH1LocationData("Traverse Town", 265_6316),
|
||||
"Traverse Town Piano Room Return 40 Puppies": KH1LocationData("Traverse Town", 265_6317),
|
||||
"Traverse Town Piano Room Return 50 Puppies Reward 1": KH1LocationData("Traverse Town", 265_6318),
|
||||
"Traverse Town Piano Room Return 50 Puppies Reward 2": KH1LocationData("Traverse Town", 265_6319),
|
||||
"Traverse Town Piano Room Return 60 Puppies": KH1LocationData("Traverse Town", 265_6320),
|
||||
"Traverse Town Piano Room Return 70 Puppies": KH1LocationData("Traverse Town", 265_6321),
|
||||
"Traverse Town Piano Room Return 80 Puppies": KH1LocationData("Traverse Town", 265_6322),
|
||||
"Traverse Town Piano Room Return 90 Puppies": KH1LocationData("Traverse Town", 265_6324),
|
||||
"Traverse Town Piano Room Return 99 Puppies Reward 1": KH1LocationData("Traverse Town", 265_6326),
|
||||
"Traverse Town Piano Room Return 99 Puppies Reward 2": KH1LocationData("Traverse Town", 265_6327),
|
||||
"Olympus Coliseum Cloud Sonic Blade Event": KH1LocationData("Olympus Coliseum", 265_6032), #Had to change the way we send this check, not changing location_id
|
||||
"Olympus Coliseum Defeat Sephiroth One-Winged Angel Event": KH1LocationData("Olympus Coliseum", 265_6328),
|
||||
"Olympus Coliseum Defeat Ice Titan Diamond Dust Event": KH1LocationData("Olympus Coliseum", 265_6329),
|
||||
"Olympus Coliseum Gates Purple Jar After Defeating Hades": KH1LocationData("Olympus Coliseum", 265_6330),
|
||||
"Halloween Town Guillotine Square Ring Jack's Doorbell 3 Times": KH1LocationData("Halloween Town", 265_6331),
|
||||
#"Neverland Clock Tower 01:00 Door": KH1LocationData("Neverland", 265_6332),
|
||||
#"Neverland Clock Tower 02:00 Door": KH1LocationData("Neverland", 265_6333),
|
||||
#"Neverland Clock Tower 03:00 Door": KH1LocationData("Neverland", 265_6334),
|
||||
#"Neverland Clock Tower 04:00 Door": KH1LocationData("Neverland", 265_6335),
|
||||
#"Neverland Clock Tower 05:00 Door": KH1LocationData("Neverland", 265_6336),
|
||||
#"Neverland Clock Tower 06:00 Door": KH1LocationData("Neverland", 265_6337),
|
||||
#"Neverland Clock Tower 07:00 Door": KH1LocationData("Neverland", 265_6338),
|
||||
#"Neverland Clock Tower 08:00 Door": KH1LocationData("Neverland", 265_6339),
|
||||
#"Neverland Clock Tower 09:00 Door": KH1LocationData("Neverland", 265_6340),
|
||||
#"Neverland Clock Tower 10:00 Door": KH1LocationData("Neverland", 265_6341),
|
||||
#"Neverland Clock Tower 11:00 Door": KH1LocationData("Neverland", 265_6342),
|
||||
#"Neverland Clock Tower 12:00 Door": KH1LocationData("Neverland", 265_6343),
|
||||
"Neverland Hold Aero Chest": KH1LocationData("Neverland", 265_6344),
|
||||
"100 Acre Wood Bouncing Spot Turn in Rare Nut 1": KH1LocationData("100 Acre Wood", 265_6345),
|
||||
"100 Acre Wood Bouncing Spot Turn in Rare Nut 2": KH1LocationData("100 Acre Wood", 265_6346),
|
||||
"100 Acre Wood Bouncing Spot Turn in Rare Nut 3": KH1LocationData("100 Acre Wood", 265_6347),
|
||||
"100 Acre Wood Bouncing Spot Turn in Rare Nut 4": KH1LocationData("100 Acre Wood", 265_6348),
|
||||
"100 Acre Wood Bouncing Spot Turn in Rare Nut 5": KH1LocationData("100 Acre Wood", 265_6349),
|
||||
"100 Acre Wood Pooh's House Owl Cheer": KH1LocationData("100 Acre Wood", 265_6350),
|
||||
"100 Acre Wood Convert Torn Page 1": KH1LocationData("100 Acre Wood", 265_6351),
|
||||
"100 Acre Wood Convert Torn Page 2": KH1LocationData("100 Acre Wood", 265_6352),
|
||||
"100 Acre Wood Convert Torn Page 3": KH1LocationData("100 Acre Wood", 265_6353),
|
||||
"100 Acre Wood Convert Torn Page 4": KH1LocationData("100 Acre Wood", 265_6354),
|
||||
"100 Acre Wood Convert Torn Page 5": KH1LocationData("100 Acre Wood", 265_6355),
|
||||
"100 Acre Wood Pooh's House Start Fire": KH1LocationData("100 Acre Wood", 265_6356),
|
||||
"100 Acre Wood Pooh's Room Cabinet": KH1LocationData("100 Acre Wood", 265_6357),
|
||||
"100 Acre Wood Pooh's Room Chimney": KH1LocationData("100 Acre Wood", 265_6358),
|
||||
"100 Acre Wood Bouncing Spot Break Log": KH1LocationData("100 Acre Wood", 265_6359),
|
||||
"100 Acre Wood Bouncing Spot Fall Through Top of Tree Next to Pooh": KH1LocationData("100 Acre Wood", 265_6360),
|
||||
"Deep Jungle Camp Hi-Potion Experiment": KH1LocationData("Deep Jungle", 265_6361),
|
||||
"Deep Jungle Camp Ether Experiment": KH1LocationData("Deep Jungle", 265_6362),
|
||||
"Deep Jungle Camp Replication Experiment": KH1LocationData("Deep Jungle", 265_6363),
|
||||
"Deep Jungle Cliff Save Gorillas": KH1LocationData("Deep Jungle", 265_6364),
|
||||
"Deep Jungle Tree House Save Gorillas": KH1LocationData("Deep Jungle", 265_6365),
|
||||
"Deep Jungle Camp Save Gorillas": KH1LocationData("Deep Jungle", 265_6366),
|
||||
"Deep Jungle Bamboo Thicket Save Gorillas": KH1LocationData("Deep Jungle", 265_6367),
|
||||
"Deep Jungle Climbing Trees Save Gorillas": KH1LocationData("Deep Jungle", 265_6368),
|
||||
"Olympus Coliseum Olympia Chest": KH1LocationData("Olympus Coliseum", 265_6369),
|
||||
"Deep Jungle Jungle Slider 10 Fruits": KH1LocationData("Deep Jungle", 265_6370),
|
||||
"Deep Jungle Jungle Slider 20 Fruits": KH1LocationData("Deep Jungle", 265_6371),
|
||||
"Deep Jungle Jungle Slider 30 Fruits": KH1LocationData("Deep Jungle", 265_6372),
|
||||
"Deep Jungle Jungle Slider 40 Fruits": KH1LocationData("Deep Jungle", 265_6373),
|
||||
"Deep Jungle Jungle Slider 50 Fruits": KH1LocationData("Deep Jungle", 265_6374),
|
||||
"Traverse Town 1st District Speak with Cid Event": KH1LocationData("Traverse Town", 265_6375),
|
||||
"Wonderland Bizarre Room Read Book": KH1LocationData("Wonderland", 265_6376),
|
||||
"Olympus Coliseum Coliseum Gates Green Trinity": KH1LocationData("Olympus Coliseum", 265_6377),
|
||||
"Agrabah Defeat Kurt Zisa Zantetsuken Event": KH1LocationData("Agrabah", 265_6378),
|
||||
"Hollow Bastion Defeat Unknown EXP Necklace Event": KH1LocationData("Hollow Bastion", 265_6379),
|
||||
"Olympus Coliseum Coliseum Gates Hero's License Event": KH1LocationData("Olympus Coliseum", 265_6380),
|
||||
"Atlantica Sunken Ship Crystal Trident Event": KH1LocationData("Atlantica", 265_6381),
|
||||
"Halloween Town Graveyard Forget-Me-Not Event": KH1LocationData("Halloween Town", 265_6382),
|
||||
"Deep Jungle Tent Protect-G Event": KH1LocationData("Deep Jungle", 265_6383),
|
||||
"Deep Jungle Cavern of Hearts Navi-G Piece Event": KH1LocationData("Deep Jungle", 265_6384),
|
||||
"Wonderland Bizarre Room Navi-G Piece Event": KH1LocationData("Wonderland", 265_6385),
|
||||
"Olympus Coliseum Coliseum Gates Entry Pass Event": KH1LocationData("Olympus Coliseum", 265_6386),
|
||||
|
||||
"Traverse Town Synth Log": KH1LocationData("Traverse Town", 265_6401),
|
||||
"Traverse Town Synth Cloth": KH1LocationData("Traverse Town", 265_6402),
|
||||
"Traverse Town Synth Rope": KH1LocationData("Traverse Town", 265_6403),
|
||||
"Traverse Town Synth Seagull Egg": KH1LocationData("Traverse Town", 265_6404),
|
||||
"Traverse Town Synth Fish": KH1LocationData("Traverse Town", 265_6405),
|
||||
"Traverse Town Synth Mushroom": KH1LocationData("Traverse Town", 265_6406),
|
||||
|
||||
"Traverse Town Item Shop Postcard": KH1LocationData("Traverse Town", 265_6500),
|
||||
"Traverse Town 1st District Safe Postcard": KH1LocationData("Traverse Town", 265_6501),
|
||||
"Traverse Town Gizmo Shop Postcard 1": KH1LocationData("Traverse Town", 265_6502),
|
||||
"Traverse Town Gizmo Shop Postcard 2": KH1LocationData("Traverse Town", 265_6503),
|
||||
"Traverse Town Item Workshop Postcard": KH1LocationData("Traverse Town", 265_6504),
|
||||
"Traverse Town 3rd District Balcony Postcard": KH1LocationData("Traverse Town", 265_6505),
|
||||
"Traverse Town Geppetto's House Postcard": KH1LocationData("Traverse Town", 265_6506),
|
||||
"Halloween Town Lab Torn Page": KH1LocationData("Halloween Town", 265_6508),
|
||||
"Hollow Bastion Entrance Hall Emblem Piece (Flame)": KH1LocationData("Hollow Bastion", 265_6516),
|
||||
"Hollow Bastion Entrance Hall Emblem Piece (Chest)": KH1LocationData("Hollow Bastion", 265_6517),
|
||||
"Hollow Bastion Entrance Hall Emblem Piece (Statue)": KH1LocationData("Hollow Bastion", 265_6518),
|
||||
"Hollow Bastion Entrance Hall Emblem Piece (Fountain)": KH1LocationData("Hollow Bastion", 265_6519),
|
||||
#"Traverse Town 1st District Leon Gift": KH1LocationData("Traverse Town", 265_6520),
|
||||
#"Traverse Town 1st District Aerith Gift": KH1LocationData("Traverse Town", 265_6521),
|
||||
"Hollow Bastion Library Speak to Belle Divine Rose": KH1LocationData("Hollow Bastion", 265_6522),
|
||||
"Hollow Bastion Library Speak to Aerith Cure": KH1LocationData("Hollow Bastion", 265_6523),
|
||||
|
||||
"Agrabah Defeat Jafar Genie Ansem's Report 1": KH1LocationData("Agrabah", 265_7018),
|
||||
"Hollow Bastion Speak with Aerith Ansem's Report 2": KH1LocationData("Hollow Bastion", 265_7017),
|
||||
"Atlantica Defeat Ursula II Ansem's Report 3": KH1LocationData("Atlantica", 265_7016),
|
||||
"Hollow Bastion Speak with Aerith Ansem's Report 4": KH1LocationData("Hollow Bastion", 265_7015),
|
||||
"Hollow Bastion Defeat Maleficent Ansem's Report 5": KH1LocationData("Hollow Bastion", 265_7014),
|
||||
"Hollow Bastion Speak with Aerith Ansem's Report 6": KH1LocationData("Hollow Bastion", 265_7013),
|
||||
"Halloween Town Defeat Oogie Boogie Ansem's Report 7": KH1LocationData("Halloween Town", 265_7012),
|
||||
"Olympus Coliseum Defeat Hades Ansem's Report 8": KH1LocationData("Olympus Coliseum", 265_7011),
|
||||
"Neverland Defeat Hook Ansem's Report 9": KH1LocationData("Neverland", 265_7028),
|
||||
"Hollow Bastion Speak with Aerith Ansem's Report 10": KH1LocationData("Hollow Bastion", 265_7027),
|
||||
"Agrabah Defeat Kurt Zisa Ansem's Report 11": KH1LocationData("Agrabah", 265_7026),
|
||||
"Olympus Coliseum Defeat Sephiroth Ansem's Report 12": KH1LocationData("Olympus Coliseum", 265_7025),
|
||||
"Hollow Bastion Defeat Unknown Ansem's Report 13": KH1LocationData("Hollow Bastion", 265_7024),
|
||||
"Level 001": KH1LocationData("Levels", 265_8001),
|
||||
"Level 002": KH1LocationData("Levels", 265_8002),
|
||||
"Level 003": KH1LocationData("Levels", 265_8003),
|
||||
"Level 004": KH1LocationData("Levels", 265_8004),
|
||||
"Level 005": KH1LocationData("Levels", 265_8005),
|
||||
"Level 006": KH1LocationData("Levels", 265_8006),
|
||||
"Level 007": KH1LocationData("Levels", 265_8007),
|
||||
"Level 008": KH1LocationData("Levels", 265_8008),
|
||||
"Level 009": KH1LocationData("Levels", 265_8009),
|
||||
"Level 010": KH1LocationData("Levels", 265_8010),
|
||||
"Level 011": KH1LocationData("Levels", 265_8011),
|
||||
"Level 012": KH1LocationData("Levels", 265_8012),
|
||||
"Level 013": KH1LocationData("Levels", 265_8013),
|
||||
"Level 014": KH1LocationData("Levels", 265_8014),
|
||||
"Level 015": KH1LocationData("Levels", 265_8015),
|
||||
"Level 016": KH1LocationData("Levels", 265_8016),
|
||||
"Level 017": KH1LocationData("Levels", 265_8017),
|
||||
"Level 018": KH1LocationData("Levels", 265_8018),
|
||||
"Level 019": KH1LocationData("Levels", 265_8019),
|
||||
"Level 020": KH1LocationData("Levels", 265_8020),
|
||||
"Level 021": KH1LocationData("Levels", 265_8021),
|
||||
"Level 022": KH1LocationData("Levels", 265_8022),
|
||||
"Level 023": KH1LocationData("Levels", 265_8023),
|
||||
"Level 024": KH1LocationData("Levels", 265_8024),
|
||||
"Level 025": KH1LocationData("Levels", 265_8025),
|
||||
"Level 026": KH1LocationData("Levels", 265_8026),
|
||||
"Level 027": KH1LocationData("Levels", 265_8027),
|
||||
"Level 028": KH1LocationData("Levels", 265_8028),
|
||||
"Level 029": KH1LocationData("Levels", 265_8029),
|
||||
"Level 030": KH1LocationData("Levels", 265_8030),
|
||||
"Level 031": KH1LocationData("Levels", 265_8031),
|
||||
"Level 032": KH1LocationData("Levels", 265_8032),
|
||||
"Level 033": KH1LocationData("Levels", 265_8033),
|
||||
"Level 034": KH1LocationData("Levels", 265_8034),
|
||||
"Level 035": KH1LocationData("Levels", 265_8035),
|
||||
"Level 036": KH1LocationData("Levels", 265_8036),
|
||||
"Level 037": KH1LocationData("Levels", 265_8037),
|
||||
"Level 038": KH1LocationData("Levels", 265_8038),
|
||||
"Level 039": KH1LocationData("Levels", 265_8039),
|
||||
"Level 040": KH1LocationData("Levels", 265_8040),
|
||||
"Level 041": KH1LocationData("Levels", 265_8041),
|
||||
"Level 042": KH1LocationData("Levels", 265_8042),
|
||||
"Level 043": KH1LocationData("Levels", 265_8043),
|
||||
"Level 044": KH1LocationData("Levels", 265_8044),
|
||||
"Level 045": KH1LocationData("Levels", 265_8045),
|
||||
"Level 046": KH1LocationData("Levels", 265_8046),
|
||||
"Level 047": KH1LocationData("Levels", 265_8047),
|
||||
"Level 048": KH1LocationData("Levels", 265_8048),
|
||||
"Level 049": KH1LocationData("Levels", 265_8049),
|
||||
"Level 050": KH1LocationData("Levels", 265_8050),
|
||||
"Level 051": KH1LocationData("Levels", 265_8051),
|
||||
"Level 052": KH1LocationData("Levels", 265_8052),
|
||||
"Level 053": KH1LocationData("Levels", 265_8053),
|
||||
"Level 054": KH1LocationData("Levels", 265_8054),
|
||||
"Level 055": KH1LocationData("Levels", 265_8055),
|
||||
"Level 056": KH1LocationData("Levels", 265_8056),
|
||||
"Level 057": KH1LocationData("Levels", 265_8057),
|
||||
"Level 058": KH1LocationData("Levels", 265_8058),
|
||||
"Level 059": KH1LocationData("Levels", 265_8059),
|
||||
"Level 060": KH1LocationData("Levels", 265_8060),
|
||||
"Level 061": KH1LocationData("Levels", 265_8061),
|
||||
"Level 062": KH1LocationData("Levels", 265_8062),
|
||||
"Level 063": KH1LocationData("Levels", 265_8063),
|
||||
"Level 064": KH1LocationData("Levels", 265_8064),
|
||||
"Level 065": KH1LocationData("Levels", 265_8065),
|
||||
"Level 066": KH1LocationData("Levels", 265_8066),
|
||||
"Level 067": KH1LocationData("Levels", 265_8067),
|
||||
"Level 068": KH1LocationData("Levels", 265_8068),
|
||||
"Level 069": KH1LocationData("Levels", 265_8069),
|
||||
"Level 070": KH1LocationData("Levels", 265_8070),
|
||||
"Level 071": KH1LocationData("Levels", 265_8071),
|
||||
"Level 072": KH1LocationData("Levels", 265_8072),
|
||||
"Level 073": KH1LocationData("Levels", 265_8073),
|
||||
"Level 074": KH1LocationData("Levels", 265_8074),
|
||||
"Level 075": KH1LocationData("Levels", 265_8075),
|
||||
"Level 076": KH1LocationData("Levels", 265_8076),
|
||||
"Level 077": KH1LocationData("Levels", 265_8077),
|
||||
"Level 078": KH1LocationData("Levels", 265_8078),
|
||||
"Level 079": KH1LocationData("Levels", 265_8079),
|
||||
"Level 080": KH1LocationData("Levels", 265_8080),
|
||||
"Level 081": KH1LocationData("Levels", 265_8081),
|
||||
"Level 082": KH1LocationData("Levels", 265_8082),
|
||||
"Level 083": KH1LocationData("Levels", 265_8083),
|
||||
"Level 084": KH1LocationData("Levels", 265_8084),
|
||||
"Level 085": KH1LocationData("Levels", 265_8085),
|
||||
"Level 086": KH1LocationData("Levels", 265_8086),
|
||||
"Level 087": KH1LocationData("Levels", 265_8087),
|
||||
"Level 088": KH1LocationData("Levels", 265_8088),
|
||||
"Level 089": KH1LocationData("Levels", 265_8089),
|
||||
"Level 090": KH1LocationData("Levels", 265_8090),
|
||||
"Level 091": KH1LocationData("Levels", 265_8091),
|
||||
"Level 092": KH1LocationData("Levels", 265_8092),
|
||||
"Level 093": KH1LocationData("Levels", 265_8093),
|
||||
"Level 094": KH1LocationData("Levels", 265_8094),
|
||||
"Level 095": KH1LocationData("Levels", 265_8095),
|
||||
"Level 096": KH1LocationData("Levels", 265_8096),
|
||||
"Level 097": KH1LocationData("Levels", 265_8097),
|
||||
"Level 098": KH1LocationData("Levels", 265_8098),
|
||||
"Level 099": KH1LocationData("Levels", 265_8099),
|
||||
"Level 100": KH1LocationData("Levels", 265_8100),
|
||||
"Complete Phil Cup": KH1LocationData("Olympus Coliseum", 265_9001),
|
||||
"Complete Phil Cup Solo": KH1LocationData("Olympus Coliseum", 265_9002),
|
||||
"Complete Phil Cup Time Trial": KH1LocationData("Olympus Coliseum", 265_9003),
|
||||
"Complete Pegasus Cup": KH1LocationData("Olympus Coliseum", 265_9004),
|
||||
"Complete Pegasus Cup Solo": KH1LocationData("Olympus Coliseum", 265_9005),
|
||||
"Complete Pegasus Cup Time Trial": KH1LocationData("Olympus Coliseum", 265_9006),
|
||||
"Complete Hercules Cup": KH1LocationData("Olympus Coliseum", 265_9007),
|
||||
"Complete Hercules Cup Solo": KH1LocationData("Olympus Coliseum", 265_9008),
|
||||
"Complete Hercules Cup Time Trial": KH1LocationData("Olympus Coliseum", 265_9009),
|
||||
"Complete Hades Cup": KH1LocationData("Olympus Coliseum", 265_9010),
|
||||
"Complete Hades Cup Solo": KH1LocationData("Olympus Coliseum", 265_9011),
|
||||
"Complete Hades Cup Time Trial": KH1LocationData("Olympus Coliseum", 265_9012),
|
||||
"Hades Cup Defeat Cloud and Leon Event": KH1LocationData("Olympus Coliseum", 265_9013),
|
||||
"Hades Cup Defeat Yuffie Event": KH1LocationData("Olympus Coliseum", 265_9014),
|
||||
"Hades Cup Defeat Cerberus Event": KH1LocationData("Olympus Coliseum", 265_9015),
|
||||
"Hades Cup Defeat Behemoth Event": KH1LocationData("Olympus Coliseum", 265_9016),
|
||||
"Hades Cup Defeat Hades Event": KH1LocationData("Olympus Coliseum", 265_9017),
|
||||
"Hercules Cup Defeat Cloud Event": KH1LocationData("Olympus Coliseum", 265_9018),
|
||||
"Hercules Cup Yellow Trinity Event": KH1LocationData("Olympus Coliseum", 265_9019),
|
||||
"Final Ansem": KH1LocationData("Final", 265_9999)
|
||||
}
|
||||
|
||||
event_location_table: Dict[str, KH1LocationData] = {}
|
||||
|
||||
lookup_id_to_name: typing.Dict[int, str] = {data.code: item_name for item_name, data in location_table.items() if data.code}
|
||||
|
||||
|
||||
#Make location categories
|
||||
location_name_groups: Dict[str, Set[str]] = {}
|
||||
for location in location_table.keys():
|
||||
category = location_table[location].category
|
||||
if category not in location_name_groups.keys():
|
||||
location_name_groups[category] = set()
|
||||
location_name_groups[category].add(location)
|
||||
445
worlds/kh1/Options.py
Normal file
445
worlds/kh1/Options.py
Normal file
@@ -0,0 +1,445 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
from Options import NamedRange, Choice, Range, Toggle, DefaultOnToggle, PerGameCommonOptions, StartInventoryPool, OptionGroup
|
||||
|
||||
class StrengthIncrease(Range):
|
||||
"""
|
||||
Determines the number of Strength Increases to add to the multiworld.
|
||||
|
||||
The randomizer will add all stat ups defined here into a pool and choose up to 100 to add to the multiworld.
|
||||
Accessory Slot Increases and Item Slot Increases are prioritized first, then the remaining items (up to 100 total) are chosen at random.
|
||||
"""
|
||||
display_name = "STR Increases"
|
||||
range_start = 0
|
||||
range_end = 100
|
||||
default = 24
|
||||
|
||||
class DefenseIncrease(Range):
|
||||
"""
|
||||
Determines the number of Defense Increases to add to the multiworld.
|
||||
|
||||
The randomizer will add all stat ups defined here into a pool and choose up to 100 to add to the multiworld.
|
||||
Accessory Slot Increases and Item Slot Increases are prioritized first, then the remaining items (up to 100 total) are chosen at random.
|
||||
"""
|
||||
display_name = "DEF Increases"
|
||||
range_start = 0
|
||||
range_end = 100
|
||||
default = 24
|
||||
|
||||
class HPIncrease(Range):
|
||||
"""
|
||||
Determines the number of HP Increases to add to the multiworld.
|
||||
|
||||
The randomizer will add all stat ups defined here into a pool and choose up to 100 to add to the multiworld.
|
||||
Accessory Slot Increases and Item Slot Increases are prioritized first, then the remaining items (up to 100 total) are chosen at random.
|
||||
"""
|
||||
display_name = "HP Increases"
|
||||
range_start = 0
|
||||
range_end = 100
|
||||
default = 23
|
||||
|
||||
class APIncrease(Range):
|
||||
"""
|
||||
Determines the number of AP Increases to add to the multiworld.
|
||||
|
||||
The randomizer will add all stat ups defined here into a pool and choose up to 100 to add to the multiworld.
|
||||
Accessory Slot Increases and Item Slot Increases are prioritized first, then the remaining items (up to 100 total) are chosen at random.
|
||||
"""
|
||||
display_name = "AP Increases"
|
||||
range_start = 0
|
||||
range_end = 100
|
||||
default = 18
|
||||
|
||||
class MPIncrease(Range):
|
||||
"""
|
||||
Determines the number of MP Increases to add to the multiworld.
|
||||
|
||||
The randomizer will add all stat ups defined here into a pool and choose up to 100 to add to the multiworld.
|
||||
Accessory Slot Increases and Item Slot Increases are prioritized first, then the remaining items (up to 100 total) are chosen at random.
|
||||
"""
|
||||
display_name = "MP Increases"
|
||||
range_start = 0
|
||||
range_end = 20
|
||||
default = 7
|
||||
|
||||
class AccessorySlotIncrease(Range):
|
||||
"""
|
||||
Determines the number of Accessory Slot Increases to add to the multiworld.
|
||||
|
||||
The randomizer will add all stat ups defined here into a pool and choose up to 100 to add to the multiworld.
|
||||
Accessory Slot Increases and Item Slot Increases are prioritized first, then the remaining items (up to 100 total) are chosen at random.
|
||||
"""
|
||||
display_name = "Accessory Slot Increases"
|
||||
range_start = 0
|
||||
range_end = 6
|
||||
default = 1
|
||||
|
||||
class ItemSlotIncrease(Range):
|
||||
"""
|
||||
Determines the number of Item Slot Increases to add to the multiworld.
|
||||
|
||||
The randomizer will add all stat ups defined here into a pool and choose up to 100 to add to the multiworld.
|
||||
Accessory Slot Increases and Item Slot Increases are prioritized first, then the remaining items (up to 100 total) are chosen at random.
|
||||
"""
|
||||
display_name = "Item Slot Increases"
|
||||
range_start = 0
|
||||
range_end = 5
|
||||
default = 3
|
||||
|
||||
class Atlantica(Toggle):
|
||||
"""
|
||||
Toggle whether to include checks in Atlantica.
|
||||
"""
|
||||
display_name = "Atlantica"
|
||||
|
||||
class HundredAcreWood(Toggle):
|
||||
"""
|
||||
Toggle whether to include checks in the 100 Acre Wood.
|
||||
"""
|
||||
display_name = "100 Acre Wood"
|
||||
|
||||
class SuperBosses(Toggle):
|
||||
"""
|
||||
Toggle whether to include checks behind Super Bosses.
|
||||
"""
|
||||
display_name = "Super Bosses"
|
||||
|
||||
class Cups(Toggle):
|
||||
"""
|
||||
Toggle whether to include checks behind completing Phil, Pegasus, Hercules, or Hades cups.
|
||||
Please note that the cup items will still appear in the multiworld even if toggled off, as they are required to challenge Sephiroth.
|
||||
"""
|
||||
display_name = "Cups"
|
||||
|
||||
class Goal(Choice):
|
||||
"""
|
||||
Determines when victory is achieved in your playthrough.
|
||||
|
||||
Sephiroth: Defeat Sephiroth
|
||||
Unknown: Defeat Unknown
|
||||
Postcards: Turn in all 10 postcards in Traverse Town
|
||||
Final Ansem: Enter End of the World and defeat Ansem as normal
|
||||
Puppies: Rescue and return all 99 puppies in Traverse Town
|
||||
Final Rest: Open the chest in End of the World Final Rest
|
||||
"""
|
||||
display_name = "Goal"
|
||||
option_sephiroth = 0
|
||||
option_unknown = 1
|
||||
option_postcards = 2
|
||||
option_final_ansem = 3
|
||||
option_puppies = 4
|
||||
option_final_rest = 5
|
||||
default = 3
|
||||
|
||||
class EndoftheWorldUnlock(Choice):
|
||||
"""Determines how End of the World is unlocked.
|
||||
|
||||
Item: You can receive an item called "End of the World" which unlocks the world
|
||||
Reports: A certain amount of reports are required to unlock End of the World, which is defined in your options"""
|
||||
display_name = "End of the World Unlock"
|
||||
option_item = 0
|
||||
option_reports = 1
|
||||
default = 1
|
||||
|
||||
class FinalRestDoor(Choice):
|
||||
"""Determines what conditions need to be met to manifest the door in Final Rest, allowing the player to challenge Ansem.
|
||||
|
||||
Reports: A certain number of Ansem's Reports are required, determined by the "Reports to Open Final Rest Door" option
|
||||
Puppies: Having all 99 puppies is required
|
||||
Postcards: Turning in all 10 postcards is required
|
||||
Superbosses: Defeating Sephiroth, Unknown, Kurt Zisa, and Phantom are required
|
||||
"""
|
||||
display_name = "Final Rest Door"
|
||||
option_reports = 0
|
||||
option_puppies = 1
|
||||
option_postcards = 2
|
||||
option_superbosses = 3
|
||||
|
||||
class Puppies(Choice):
|
||||
"""
|
||||
Determines how dalmatian puppies are shuffled into the pool.
|
||||
Full: All puppies are in one location
|
||||
Triplets: Puppies are found in triplets just as they are in the base game
|
||||
Individual: One puppy can be found per location
|
||||
"""
|
||||
display_name = "Puppies"
|
||||
option_full = 0
|
||||
option_triplets = 1
|
||||
option_individual = 2
|
||||
default = 1
|
||||
|
||||
class EXPMultiplier(NamedRange):
|
||||
"""
|
||||
Determines the multiplier to apply to EXP gained.
|
||||
"""
|
||||
display_name = "EXP Multiplier"
|
||||
default = 16
|
||||
range_start = default // 4
|
||||
range_end = 128
|
||||
special_range_names = {
|
||||
"0.25x": int(default // 4),
|
||||
"0.5x": int(default // 2),
|
||||
"1x": default,
|
||||
"2x": default * 2,
|
||||
"3x": default * 3,
|
||||
"4x": default * 4,
|
||||
"8x": default * 8,
|
||||
}
|
||||
|
||||
class RequiredReportsEotW(Range):
|
||||
"""
|
||||
If End of the World Unlock is set to "Reports", determines the number of Ansem's Reports required to open End of the World.
|
||||
"""
|
||||
display_name = "Reports to Open End of the World"
|
||||
default = 4
|
||||
range_start = 0
|
||||
range_end = 13
|
||||
|
||||
class RequiredReportsDoor(Range):
|
||||
"""
|
||||
If Final Rest Door is set to "Reports", determines the number of Ansem's Reports required to manifest the door in Final Rest to challenge Ansem.
|
||||
"""
|
||||
display_name = "Reports to Open Final Rest Door"
|
||||
default = 4
|
||||
range_start = 0
|
||||
range_end = 13
|
||||
|
||||
class ReportsInPool(Range):
|
||||
"""
|
||||
Determines the number of Ansem's Reports in the item pool.
|
||||
"""
|
||||
display_name = "Reports in Pool"
|
||||
default = 4
|
||||
range_start = 0
|
||||
range_end = 13
|
||||
|
||||
class RandomizeKeybladeStats(DefaultOnToggle):
|
||||
"""
|
||||
Determines whether Keyblade stats should be randomized.
|
||||
"""
|
||||
display_name = "Randomize Keyblade Stats"
|
||||
|
||||
class KeybladeMinStrength(Range):
|
||||
"""
|
||||
Determines the minimum STR bonus a keyblade can have.
|
||||
"""
|
||||
display_name = "Keyblade Minimum STR Bonus"
|
||||
default = 3
|
||||
range_start = 0
|
||||
range_end = 20
|
||||
|
||||
class KeybladeMaxStrength(Range):
|
||||
"""
|
||||
Determines the maximum STR bonus a keyblade can have.
|
||||
"""
|
||||
display_name = "Keyblade Maximum STR Bonus"
|
||||
default = 14
|
||||
range_start = 0
|
||||
range_end = 20
|
||||
|
||||
class KeybladeMinMP(Range):
|
||||
"""
|
||||
Determines the minimum MP bonus a keyblade can have.
|
||||
"""
|
||||
display_name = "Keyblade Minimum MP Bonus"
|
||||
default = -2
|
||||
range_start = -2
|
||||
range_end = 5
|
||||
|
||||
class KeybladeMaxMP(Range):
|
||||
"""
|
||||
Determines the maximum MP bonus a keyblade can have.
|
||||
"""
|
||||
display_name = "Keyblade Maximum MP Bonus"
|
||||
default = 3
|
||||
range_start = -2
|
||||
range_end = 5
|
||||
|
||||
class LevelChecks(Range):
|
||||
"""
|
||||
Determines the maximum level for which checks can be obtained.
|
||||
"""
|
||||
display_name = "Level Checks"
|
||||
default = 100
|
||||
range_start = 0
|
||||
range_end = 100
|
||||
|
||||
class ForceStatsOnLevels(NamedRange):
|
||||
"""
|
||||
If this value is less than the value for Level Checks, this determines the minimum level from which only stat ups are obtained at level up locations.
|
||||
For example, if you want to be able to find any multiworld item from levels 1-50, then just stat ups for levels 51-100, set this value to 51.
|
||||
"""
|
||||
display_name = "Force Stats on Level Starting From"
|
||||
default = 1
|
||||
range_start = 1
|
||||
range_end = 101
|
||||
special_range_names = {
|
||||
"none": 101,
|
||||
"multiworld-to-level-50": 51,
|
||||
"all": 1
|
||||
}
|
||||
|
||||
class BadStartingWeapons(Toggle):
|
||||
"""
|
||||
Forces Kingdom Key, Dream Sword, Dream Shield, and Dream Staff to have bad stats.
|
||||
"""
|
||||
display_name = "Bad Starting Weapons"
|
||||
|
||||
class DonaldDeathLink(Toggle):
|
||||
"""
|
||||
If Donald is KO'ed, so is Sora. If Death Link is toggled on in your client, this will send a death to everyone.
|
||||
"""
|
||||
display_name = "Donald Death Link"
|
||||
|
||||
class GoofyDeathLink(Toggle):
|
||||
"""
|
||||
If Goofy is KO'ed, so is Sora. If Death Link is toggled on in your client, this will send a death to everyone.
|
||||
"""
|
||||
display_name = "Goofy Death Link"
|
||||
|
||||
class KeybladesUnlockChests(Toggle):
|
||||
"""
|
||||
If toggled on, the player is required to have a certain keyblade to open chests in certain worlds.
|
||||
TT - Lionheart
|
||||
WL - Lady Luck
|
||||
OC - Olympia
|
||||
DJ - Jungle King
|
||||
AG - Three Wishes
|
||||
MS - Wishing Star
|
||||
HT - Pumpkinhead
|
||||
NL - Fairy Harp
|
||||
HB - Divine Rose
|
||||
EotW - Oblivion
|
||||
HAW - Oathkeeper
|
||||
|
||||
Note: Does not apply to Atlantica, the emblem and carousel chests in Hollow Bastion, or the Aero chest in Neverland currently.
|
||||
"""
|
||||
display_name = "Keyblades Unlock Chests"
|
||||
|
||||
class InteractInBattle(Toggle):
|
||||
"""
|
||||
Allow Sora to talk to people, examine objects, and open chests in battle.
|
||||
"""
|
||||
display_name = "Interact in Battle"
|
||||
|
||||
class AdvancedLogic(Toggle):
|
||||
"""
|
||||
If on, logic may expect you to do advanced skips like using Combo Master, Dumbo, and other unusual methods to reach locations.
|
||||
"""
|
||||
display_name = "Advanced Logic"
|
||||
|
||||
class ExtraSharedAbilities(Toggle):
|
||||
"""
|
||||
If on, adds extra shared abilities to the pool. These can stack, so multiple high jumps make you jump higher and multiple glides make you superglide faster.
|
||||
"""
|
||||
display_name = "Extra Shared Abilities"
|
||||
|
||||
class EXPZeroInPool(Toggle):
|
||||
"""
|
||||
If on, adds EXP Zero ability to the item pool. This is redundant if you are planning on playing on Proud.
|
||||
"""
|
||||
display_name = "EXP Zero in Pool"
|
||||
|
||||
class VanillaEmblemPieces(DefaultOnToggle):
|
||||
"""
|
||||
If on, the Hollow Bastion emblem pieces are in their vanilla locations.
|
||||
"""
|
||||
display_name = "Vanilla Emblem Pieces"
|
||||
|
||||
class StartingWorlds(Range):
|
||||
"""
|
||||
Number of random worlds to start with in addition to Traverse Town, which is always available. Will only consider Atlantica if toggled, and will only consider End of the World if its unlock is set to "Item".
|
||||
"""
|
||||
display_name = "Starting Worlds"
|
||||
default = 0
|
||||
range_start = 0
|
||||
range_end = 10
|
||||
|
||||
@dataclass
|
||||
class KH1Options(PerGameCommonOptions):
|
||||
goal: Goal
|
||||
end_of_the_world_unlock: EndoftheWorldUnlock
|
||||
final_rest_door: FinalRestDoor
|
||||
required_reports_eotw: RequiredReportsEotW
|
||||
required_reports_door: RequiredReportsDoor
|
||||
reports_in_pool: ReportsInPool
|
||||
super_bosses: SuperBosses
|
||||
atlantica: Atlantica
|
||||
hundred_acre_wood: HundredAcreWood
|
||||
cups: Cups
|
||||
puppies: Puppies
|
||||
starting_worlds: StartingWorlds
|
||||
keyblades_unlock_chests: KeybladesUnlockChests
|
||||
interact_in_battle: InteractInBattle
|
||||
exp_multiplier: EXPMultiplier
|
||||
advanced_logic: AdvancedLogic
|
||||
extra_shared_abilities: ExtraSharedAbilities
|
||||
exp_zero_in_pool: EXPZeroInPool
|
||||
vanilla_emblem_pieces: VanillaEmblemPieces
|
||||
donald_death_link: DonaldDeathLink
|
||||
goofy_death_link: GoofyDeathLink
|
||||
randomize_keyblade_stats: RandomizeKeybladeStats
|
||||
bad_starting_weapons: BadStartingWeapons
|
||||
keyblade_min_str: KeybladeMinStrength
|
||||
keyblade_max_str: KeybladeMaxStrength
|
||||
keyblade_min_mp: KeybladeMinMP
|
||||
keyblade_max_mp: KeybladeMaxMP
|
||||
level_checks: LevelChecks
|
||||
force_stats_on_levels: ForceStatsOnLevels
|
||||
strength_increase: StrengthIncrease
|
||||
defense_increase: DefenseIncrease
|
||||
hp_increase: HPIncrease
|
||||
ap_increase: APIncrease
|
||||
mp_increase: MPIncrease
|
||||
accessory_slot_increase: AccessorySlotIncrease
|
||||
item_slot_increase: ItemSlotIncrease
|
||||
start_inventory_from_pool: StartInventoryPool
|
||||
|
||||
kh1_option_groups = [
|
||||
OptionGroup("Goal", [
|
||||
Goal,
|
||||
EndoftheWorldUnlock,
|
||||
FinalRestDoor,
|
||||
RequiredReportsDoor,
|
||||
RequiredReportsEotW,
|
||||
ReportsInPool,
|
||||
]),
|
||||
OptionGroup("Locations", [
|
||||
SuperBosses,
|
||||
Atlantica,
|
||||
Cups,
|
||||
HundredAcreWood,
|
||||
VanillaEmblemPieces,
|
||||
]),
|
||||
OptionGroup("Levels", [
|
||||
EXPMultiplier,
|
||||
LevelChecks,
|
||||
ForceStatsOnLevels,
|
||||
StrengthIncrease,
|
||||
DefenseIncrease,
|
||||
HPIncrease,
|
||||
APIncrease,
|
||||
MPIncrease,
|
||||
AccessorySlotIncrease,
|
||||
ItemSlotIncrease,
|
||||
]),
|
||||
OptionGroup("Keyblades", [
|
||||
KeybladesUnlockChests,
|
||||
RandomizeKeybladeStats,
|
||||
BadStartingWeapons,
|
||||
KeybladeMaxStrength,
|
||||
KeybladeMinStrength,
|
||||
KeybladeMaxMP,
|
||||
KeybladeMinMP,
|
||||
]),
|
||||
OptionGroup("Misc", [
|
||||
StartingWorlds,
|
||||
Puppies,
|
||||
InteractInBattle,
|
||||
AdvancedLogic,
|
||||
ExtraSharedAbilities,
|
||||
EXPZeroInPool,
|
||||
DonaldDeathLink,
|
||||
GoofyDeathLink,
|
||||
])
|
||||
]
|
||||
177
worlds/kh1/Presets.py
Normal file
177
worlds/kh1/Presets.py
Normal file
@@ -0,0 +1,177 @@
|
||||
from typing import Any, Dict
|
||||
|
||||
from .Options import *
|
||||
|
||||
kh1_option_presets: Dict[str, Dict[str, Any]] = {
|
||||
# Standard playthrough where your goal is to defeat Ansem, reaching him by acquiring enough reports.
|
||||
"Final Ansem": {
|
||||
"goal": Goal.option_final_ansem,
|
||||
"end_of_the_world_unlock": EndoftheWorldUnlock.option_reports,
|
||||
"final_rest_door": FinalRestDoor.option_reports,
|
||||
"required_reports_eotw": 7,
|
||||
"required_reports_door": 10,
|
||||
"reports_in_pool": 13,
|
||||
|
||||
"super_bosses": False,
|
||||
"atlantica": False,
|
||||
"hundred_acre_wood": False,
|
||||
"cups": False,
|
||||
"vanilla_emblem_pieces": True,
|
||||
|
||||
"exp_multiplier": 48,
|
||||
"level_checks": 100,
|
||||
"force_stats_on_levels": 1,
|
||||
"strength_increase": 24,
|
||||
"defense_increase": 24,
|
||||
"hp_increase": 23,
|
||||
"ap_increase": 18,
|
||||
"mp_increase": 7,
|
||||
"accessory_slot_increase": 1,
|
||||
"item_slot_increase": 3,
|
||||
|
||||
"keyblades_unlock_chests": False,
|
||||
"randomize_keyblade_stats": True,
|
||||
"bad_starting_weapons": False,
|
||||
"keyblade_max_str": 14,
|
||||
"keyblade_min_str": 3,
|
||||
"keyblade_max_mp": 3,
|
||||
"keyblade_min_mp": -2,
|
||||
|
||||
"puppies": Puppies.option_triplets,
|
||||
"starting_worlds": 0,
|
||||
"interact_in_battle": False,
|
||||
"advanced_logic": False,
|
||||
"extra_shared_abilities": False,
|
||||
"exp_zero_in_pool": False,
|
||||
"donald_death_link": False,
|
||||
"goofy_death_link": False
|
||||
},
|
||||
# Puppies are found individually, and the goal is to return them all.
|
||||
"Puppy Hunt": {
|
||||
"goal": Goal.option_puppies,
|
||||
"end_of_the_world_unlock": EndoftheWorldUnlock.option_item,
|
||||
"final_rest_door": FinalRestDoor.option_puppies,
|
||||
"required_reports_eotw": 13,
|
||||
"required_reports_door": 13,
|
||||
"reports_in_pool": 13,
|
||||
|
||||
"super_bosses": False,
|
||||
"atlantica": False,
|
||||
"hundred_acre_wood": False,
|
||||
"cups": False,
|
||||
"vanilla_emblem_pieces": True,
|
||||
|
||||
"exp_multiplier": 48,
|
||||
"level_checks": 100,
|
||||
"force_stats_on_levels": 1,
|
||||
"strength_increase": 24,
|
||||
"defense_increase": 24,
|
||||
"hp_increase": 23,
|
||||
"ap_increase": 18,
|
||||
"mp_increase": 7,
|
||||
"accessory_slot_increase": 1,
|
||||
"item_slot_increase": 3,
|
||||
|
||||
"keyblades_unlock_chests": False,
|
||||
"randomize_keyblade_stats": True,
|
||||
"bad_starting_weapons": False,
|
||||
"keyblade_max_str": 14,
|
||||
"keyblade_min_str": 3,
|
||||
"keyblade_max_mp": 3,
|
||||
"keyblade_min_mp": -2,
|
||||
|
||||
"puppies": Puppies.option_individual,
|
||||
"starting_worlds": 0,
|
||||
"interact_in_battle": False,
|
||||
"advanced_logic": False,
|
||||
"extra_shared_abilities": False,
|
||||
"exp_zero_in_pool": False,
|
||||
"donald_death_link": False,
|
||||
"goofy_death_link": False
|
||||
},
|
||||
# Advanced playthrough with most settings on.
|
||||
"Advanced": {
|
||||
"goal": Goal.option_final_ansem,
|
||||
"end_of_the_world_unlock": EndoftheWorldUnlock.option_reports,
|
||||
"final_rest_door": FinalRestDoor.option_reports,
|
||||
"required_reports_eotw": 7,
|
||||
"required_reports_door": 10,
|
||||
"reports_in_pool": 13,
|
||||
|
||||
"super_bosses": True,
|
||||
"atlantica": True,
|
||||
"hundred_acre_wood": True,
|
||||
"cups": True,
|
||||
"vanilla_emblem_pieces": False,
|
||||
|
||||
"exp_multiplier": 48,
|
||||
"level_checks": 100,
|
||||
"force_stats_on_levels": 1,
|
||||
"strength_increase": 24,
|
||||
"defense_increase": 24,
|
||||
"hp_increase": 23,
|
||||
"ap_increase": 18,
|
||||
"mp_increase": 7,
|
||||
"accessory_slot_increase": 1,
|
||||
"item_slot_increase": 3,
|
||||
|
||||
"keyblades_unlock_chests": True,
|
||||
"randomize_keyblade_stats": True,
|
||||
"bad_starting_weapons": True,
|
||||
"keyblade_max_str": 14,
|
||||
"keyblade_min_str": 3,
|
||||
"keyblade_max_mp": 3,
|
||||
"keyblade_min_mp": -2,
|
||||
|
||||
"puppies": Puppies.option_triplets,
|
||||
"starting_worlds": 0,
|
||||
"interact_in_battle": True,
|
||||
"advanced_logic": True,
|
||||
"extra_shared_abilities": True,
|
||||
"exp_zero_in_pool": True,
|
||||
"donald_death_link": False,
|
||||
"goofy_death_link": False
|
||||
},
|
||||
# Playthrough meant to enhance the level 1 experience.
|
||||
"Level 1": {
|
||||
"goal": Goal.option_final_ansem,
|
||||
"end_of_the_world_unlock": EndoftheWorldUnlock.option_reports,
|
||||
"final_rest_door": FinalRestDoor.option_reports,
|
||||
"required_reports_eotw": 7,
|
||||
"required_reports_door": 10,
|
||||
"reports_in_pool": 13,
|
||||
|
||||
"super_bosses": False,
|
||||
"atlantica": False,
|
||||
"hundred_acre_wood": False,
|
||||
"cups": False,
|
||||
"vanilla_emblem_pieces": True,
|
||||
|
||||
"exp_multiplier": 16,
|
||||
"level_checks": 0,
|
||||
"force_stats_on_levels": 101,
|
||||
"strength_increase": 0,
|
||||
"defense_increase": 0,
|
||||
"hp_increase": 0,
|
||||
"mp_increase": 0,
|
||||
"accessory_slot_increase": 6,
|
||||
"item_slot_increase": 5,
|
||||
|
||||
"keyblades_unlock_chests": False,
|
||||
"randomize_keyblade_stats": True,
|
||||
"bad_starting_weapons": False,
|
||||
"keyblade_max_str": 14,
|
||||
"keyblade_min_str": 3,
|
||||
"keyblade_max_mp": 3,
|
||||
"keyblade_min_mp": -2,
|
||||
|
||||
"puppies": Puppies.option_triplets,
|
||||
"starting_worlds": 0,
|
||||
"interact_in_battle": False,
|
||||
"advanced_logic": False,
|
||||
"extra_shared_abilities": False,
|
||||
"exp_zero_in_pool": False,
|
||||
"donald_death_link": False,
|
||||
"goofy_death_link": False
|
||||
}
|
||||
}
|
||||
516
worlds/kh1/Regions.py
Normal file
516
worlds/kh1/Regions.py
Normal file
@@ -0,0 +1,516 @@
|
||||
from typing import Dict, List, NamedTuple, Optional
|
||||
|
||||
from BaseClasses import MultiWorld, Region, Entrance
|
||||
from .Locations import KH1Location, location_table
|
||||
|
||||
|
||||
class KH1RegionData(NamedTuple):
|
||||
locations: List[str]
|
||||
region_exits: Optional[List[str]]
|
||||
|
||||
|
||||
def create_regions(multiworld: MultiWorld, player: int, options):
|
||||
regions: Dict[str, KH1RegionData] = {
|
||||
"Menu": KH1RegionData([], ["Awakening", "Levels"]),
|
||||
"Awakening": KH1RegionData([], ["Destiny Islands"]),
|
||||
"Destiny Islands": KH1RegionData([], ["Traverse Town"]),
|
||||
"Traverse Town": KH1RegionData([], ["World Map"]),
|
||||
"Wonderland": KH1RegionData([], []),
|
||||
"Olympus Coliseum": KH1RegionData([], []),
|
||||
"Deep Jungle": KH1RegionData([], []),
|
||||
"Agrabah": KH1RegionData([], []),
|
||||
"Monstro": KH1RegionData([], []),
|
||||
"Atlantica": KH1RegionData([], []),
|
||||
"Halloween Town": KH1RegionData([], []),
|
||||
"Neverland": KH1RegionData([], []),
|
||||
"Hollow Bastion": KH1RegionData([], []),
|
||||
"End of the World": KH1RegionData([], []),
|
||||
"100 Acre Wood": KH1RegionData([], []),
|
||||
"Levels": KH1RegionData([], []),
|
||||
"World Map": KH1RegionData([], ["Wonderland", "Olympus Coliseum", "Deep Jungle",
|
||||
"Agrabah", "Monstro", "Atlantica",
|
||||
"Halloween Town", "Neverland", "Hollow Bastion",
|
||||
"End of the World", "100 Acre Wood"])
|
||||
}
|
||||
|
||||
# Set up locations
|
||||
regions["Agrabah"].locations.append("Agrabah Aladdin's House Main Street Entrance Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Aladdin's House Plaza Entrance Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Alley Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Bazaar Across Windows Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Bazaar High Corner Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Bottomless Hall Across Chasm Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Bottomless Hall Pillar Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Bottomless Hall Raised Platform Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Dark Chamber Abu Gem Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Dark Chamber Across from Relic Chamber Entrance Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Dark Chamber Bridge Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Dark Chamber Near Save Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Entrance Left Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Entrance Tall Tower Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Entrance White Trinity Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Hall High Left Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Hall Near Bottomless Hall Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Hidden Room Left Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Hidden Room Right Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Relic Chamber Jump from Stairs Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Relic Chamber Stairs Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Silent Chamber Blue Trinity Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Treasure Room Above Fire Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Treasure Room Across Platforms Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Treasure Room Large Treasure Pile Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Cave of Wonders Treasure Room Small Treasure Pile Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Defeat Jafar Blizzard Event")
|
||||
regions["Agrabah"].locations.append("Agrabah Defeat Jafar Genie Ansem's Report 1")
|
||||
regions["Agrabah"].locations.append("Agrabah Defeat Jafar Genie Fire Event")
|
||||
regions["Agrabah"].locations.append("Agrabah Defeat Pot Centipede Ray of Light Event")
|
||||
regions["Agrabah"].locations.append("Agrabah Main Street High Above Alley Entrance Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Main Street High Above Palace Gates Entrance Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Main Street Right Palace Entrance Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Palace Gates High Close to Palace Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Palace Gates High Opposite Palace Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Palace Gates Low Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Plaza By Storage Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Plaza Raised Terrace Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Plaza Top Corner Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Seal Keyhole Genie Event")
|
||||
regions["Agrabah"].locations.append("Agrabah Seal Keyhole Green Trinity Event")
|
||||
regions["Agrabah"].locations.append("Agrabah Seal Keyhole Three Wishes Event")
|
||||
regions["Agrabah"].locations.append("Agrabah Storage Behind Barrel Chest")
|
||||
regions["Agrabah"].locations.append("Agrabah Storage Green Trinity Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Bamboo Thicket Save Gorillas")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Camp Blue Trinity Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Camp Ether Experiment")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Camp Hi-Potion Experiment")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Camp Replication Experiment")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Camp Save Gorillas")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Cavern of Hearts Navi-G Piece Event")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Cavern of Hearts White Trinity Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Cliff Right Cliff Left Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Cliff Right Cliff Right Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Cliff Save Gorillas")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Climbing Trees Blue Trinity Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Climbing Trees Save Gorillas")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Defeat Clayton Cure Event")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Defeat Sabor White Fang Event")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Hippo's Lagoon Center Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Hippo's Lagoon Left Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Hippo's Lagoon Right Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Jungle Slider 10 Fruits")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Jungle Slider 20 Fruits")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Jungle Slider 30 Fruits")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Jungle Slider 40 Fruits")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Jungle Slider 50 Fruits")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Seal Keyhole Jungle King Event")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Seal Keyhole Red Trinity Event")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Tent Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Tent Protect-G Event")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Tree House Beneath Tree House Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Tree House Rooftop Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Tree House Save Gorillas")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Tree House Suspended Boat Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Tunnel Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Vines 2 Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Vines Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Waterfall Cavern High Middle Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Waterfall Cavern High Wall Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Waterfall Cavern Low Chest")
|
||||
regions["Deep Jungle"].locations.append("Deep Jungle Waterfall Cavern Middle Chest")
|
||||
regions["End of the World"].locations.append("End of the World Defeat Chernabog Superglide Event")
|
||||
regions["End of the World"].locations.append("End of the World Final Dimension 10th Chest")
|
||||
regions["End of the World"].locations.append("End of the World Final Dimension 1st Chest")
|
||||
regions["End of the World"].locations.append("End of the World Final Dimension 2nd Chest")
|
||||
regions["End of the World"].locations.append("End of the World Final Dimension 3rd Chest")
|
||||
regions["End of the World"].locations.append("End of the World Final Dimension 4th Chest")
|
||||
regions["End of the World"].locations.append("End of the World Final Dimension 5th Chest")
|
||||
regions["End of the World"].locations.append("End of the World Final Dimension 6th Chest")
|
||||
regions["End of the World"].locations.append("End of the World Final Dimension 7th Chest")
|
||||
regions["End of the World"].locations.append("End of the World Final Dimension 8th Chest")
|
||||
regions["End of the World"].locations.append("End of the World Final Dimension 9th Chest")
|
||||
regions["End of the World"].locations.append("End of the World Final Rest Chest")
|
||||
regions["End of the World"].locations.append("End of the World Giant Crevasse 1st Chest")
|
||||
regions["End of the World"].locations.append("End of the World Giant Crevasse 2nd Chest")
|
||||
regions["End of the World"].locations.append("End of the World Giant Crevasse 3rd Chest")
|
||||
regions["End of the World"].locations.append("End of the World Giant Crevasse 4th Chest")
|
||||
regions["End of the World"].locations.append("End of the World Giant Crevasse 5th Chest")
|
||||
regions["End of the World"].locations.append("End of the World World Terminus 100 Acre Wood Chest")
|
||||
regions["End of the World"].locations.append("End of the World World Terminus Agrabah Chest")
|
||||
regions["End of the World"].locations.append("End of the World World Terminus Atlantica Chest")
|
||||
regions["End of the World"].locations.append("End of the World World Terminus Deep Jungle Chest")
|
||||
regions["End of the World"].locations.append("End of the World World Terminus Halloween Town Chest")
|
||||
#regions["End of the World"].locations.append("End of the World World Terminus Hollow Bastion Chest")
|
||||
regions["End of the World"].locations.append("End of the World World Terminus Neverland Chest")
|
||||
regions["End of the World"].locations.append("End of the World World Terminus Olympus Coliseum Chest")
|
||||
regions["End of the World"].locations.append("End of the World World Terminus Traverse Town Chest")
|
||||
regions["End of the World"].locations.append("End of the World World Terminus Wonderland Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Boneyard Tombstone Puzzle Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Bridge Left of Gate Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Bridge Right of Gate Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Bridge Under Bridge")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Cemetery Behind Grave Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Cemetery Between Graves Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Cemetery By Cat Shape Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Cemetery By Striped Grave Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Defeat Oogie Boogie Ansem's Report 7")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Defeat Oogie Boogie Holy Circlet Event")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Defeat Oogie's Manor Gravity Event")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Graveyard Forget-Me-Not Event")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Guillotine Square High Tower Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Guillotine Square Pumpkin Structure Left Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Guillotine Square Pumpkin Structure Right Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Guillotine Square Ring Jack's Doorbell 3 Times")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Guillotine Square Under Jack's House Stairs Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Lab Torn Page")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Moonlight Hill White Trinity Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Oogie's Manor Entrance Steps Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Oogie's Manor Grounds Red Trinity Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Oogie's Manor Hollow Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Oogie's Manor Inside Entrance Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Oogie's Manor Lower Iron Cage Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Oogie's Manor Upper Iron Cage Chest")
|
||||
regions["Halloween Town"].locations.append("Halloween Town Seal Keyhole Pumpkinhead Event")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Base Level Bubble Under the Wall Platform Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Base Level Near Crystal Switch Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Base Level Platform Near Entrance Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Castle Gates Freestanding Pillar Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Castle Gates Gravity Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Castle Gates High Pillar Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Defeat Behemoth Omega Arts Event")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Defeat Dragon Maleficent Fireglow Event")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Defeat Maleficent Ansem's Report 5")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Defeat Maleficent Donald Cheer Event")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Defeat Riku I White Trinity Event")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Defeat Riku II Ragnarok Event")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Dungeon By Candles Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Dungeon Corner Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Entrance Hall Emblem Piece (Chest)")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Entrance Hall Emblem Piece (Flame)")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Entrance Hall Emblem Piece (Fountain)")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Entrance Hall Emblem Piece (Statue)")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Entrance Hall Left of Emblem Door Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Grand Hall Left of Gate Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Grand Hall Oblivion Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Grand Hall Steps Right Side Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Great Crest After Battle Platform Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Great Crest Lower Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion High Tower 1st Gravity Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion High Tower 2nd Gravity Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion High Tower Above Sliding Blocks Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Library 1st Floor Turn the Carousel Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Library 2nd Floor Turn the Carousel 1st Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Library 2nd Floor Turn the Carousel 2nd Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Library Speak to Aerith Cure")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Library Speak to Belle Divine Rose")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Library Top of Bookshelf Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Library Top of Bookshelf Turn the Carousel Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Lift Stop Heartless Sigil Door Gravity Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Lift Stop Library Node After High Tower Switch Gravity Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Lift Stop Library Node Gravity Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Lift Stop Outside Library Gravity Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Lift Stop Under High Tower Sliding Blocks Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Rising Falls Floating Platform Near Bubble Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Rising Falls Floating Platform Near Save Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Rising Falls High Platform Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Rising Falls Under Water 1st Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Rising Falls Under Water 2nd Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Rising Falls Water's Surface Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Rising Falls White Trinity Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Speak to Princesses Fire Event")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Speak with Aerith Ansem's Report 10")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Speak with Aerith Ansem's Report 2")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Speak with Aerith Ansem's Report 4")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Speak with Aerith Ansem's Report 6")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Waterway Blizzard on Bubble Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Waterway Near Save Chest")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Waterway Unlock Passage from Base Level Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 2 Ground Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 2 Platform Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 3 Ground Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 3 Near Chamber 6 Entrance Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 3 Platform Above Chamber 2 Entrance Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 3 Platform Near Chamber 6 Entrance Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 5 Atop Barrel Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 5 Low 1st Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 5 Low 2nd Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 5 Platform Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 6 Low Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 6 Other Platform Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 6 Platform Near Chamber 5 Entrance Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 6 Raised Area Near Chamber 1 Entrance Chest")
|
||||
regions["Monstro"].locations.append("Monstro Chamber 6 White Trinity Chest")
|
||||
regions["Monstro"].locations.append("Monstro Defeat Parasite Cage I Goofy Cheer Event")
|
||||
regions["Monstro"].locations.append("Monstro Defeat Parasite Cage II Stop Event")
|
||||
regions["Monstro"].locations.append("Monstro Mouth Boat Deck Chest")
|
||||
regions["Monstro"].locations.append("Monstro Mouth Green Trinity Top of Boat Chest")
|
||||
regions["Monstro"].locations.append("Monstro Mouth High Platform Across from Boat Chest")
|
||||
regions["Monstro"].locations.append("Monstro Mouth High Platform Boat Side Chest")
|
||||
regions["Monstro"].locations.append("Monstro Mouth High Platform Near Teeth Chest")
|
||||
regions["Monstro"].locations.append("Monstro Mouth Near Ship Chest")
|
||||
regions["Neverland"].locations.append("Neverland Cabin Chest")
|
||||
regions["Neverland"].locations.append("Neverland Captain's Cabin Chest")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 01:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 02:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 03:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 04:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 05:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 06:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 07:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 08:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 09:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 10:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 11:00 Door")
|
||||
#regions["Neverland"].locations.append("Neverland Clock Tower 12:00 Door")
|
||||
regions["Neverland"].locations.append("Neverland Clock Tower Chest")
|
||||
regions["Neverland"].locations.append("Neverland Defeat Anti Sora Raven's Claw Event")
|
||||
regions["Neverland"].locations.append("Neverland Defeat Captain Hook Ars Arcanum Event")
|
||||
regions["Neverland"].locations.append("Neverland Defeat Hook Ansem's Report 9")
|
||||
regions["Neverland"].locations.append("Neverland Encounter Hook Cure Event")
|
||||
regions["Neverland"].locations.append("Neverland Galley Chest")
|
||||
regions["Neverland"].locations.append("Neverland Hold Aero Chest")
|
||||
regions["Neverland"].locations.append("Neverland Hold Flight 1st Chest")
|
||||
regions["Neverland"].locations.append("Neverland Hold Flight 2nd Chest")
|
||||
regions["Neverland"].locations.append("Neverland Hold Yellow Trinity Green Chest")
|
||||
regions["Neverland"].locations.append("Neverland Hold Yellow Trinity Left Blue Chest")
|
||||
regions["Neverland"].locations.append("Neverland Hold Yellow Trinity Right Blue Chest")
|
||||
regions["Neverland"].locations.append("Neverland Pirate Ship Crows Nest Chest")
|
||||
regions["Neverland"].locations.append("Neverland Pirate Ship Deck White Trinity Chest")
|
||||
regions["Neverland"].locations.append("Neverland Seal Keyhole Fairy Harp Event")
|
||||
regions["Neverland"].locations.append("Neverland Seal Keyhole Glide Event")
|
||||
regions["Neverland"].locations.append("Neverland Seal Keyhole Tinker Bell Event")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Clear Phil's Training Thunder Event")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Cloud Sonic Blade Event")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Coliseum Gates Blizzaga Chest")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Coliseum Gates Blizzara Chest")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Coliseum Gates Entry Pass Event")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Coliseum Gates Green Trinity")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Coliseum Gates Hero's License Event")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Coliseum Gates Left Behind Columns Chest")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Coliseum Gates Left Blue Trinity Chest")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Coliseum Gates Right Blue Trinity Chest")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Coliseum Gates White Trinity Chest")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Defeat Cerberus Inferno Band Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town 1st District Accessory Shop Roof Chest")
|
||||
#regions["Traverse Town"].locations.append("Traverse Town 1st District Aerith Gift")
|
||||
regions["Traverse Town"].locations.append("Traverse Town 1st District Blue Trinity Balcony Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town 1st District Candle Puzzle Chest")
|
||||
#regions["Traverse Town"].locations.append("Traverse Town 1st District Leon Gift")
|
||||
regions["Traverse Town"].locations.append("Traverse Town 1st District Safe Postcard")
|
||||
regions["Traverse Town"].locations.append("Traverse Town 1st District Speak with Cid Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town 2nd District Boots and Shoes Awning Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town 2nd District Gizmo Shop Facade Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town 2nd District Rooftop Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town 3rd District Balcony Postcard")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Accessory Shop Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Alleyway Balcony Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Alleyway Behind Crates Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Alleyway Blue Room Awning Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Alleyway Corner Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Defeat Guard Armor Blue Trinity Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Defeat Guard Armor Brave Warrior Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Defeat Guard Armor Dodge Roll Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Defeat Guard Armor Fire Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Defeat Opposite Armor Aero Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Geppetto's House Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Geppetto's House Geppetto All Summons Reward")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Geppetto's House Geppetto Reward 1")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Geppetto's House Geppetto Reward 2")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Geppetto's House Geppetto Reward 3")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Geppetto's House Geppetto Reward 4")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Geppetto's House Geppetto Reward 5")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Geppetto's House Postcard")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Geppetto's House Talk to Pinocchio")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Gizmo Shop Postcard 1")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Gizmo Shop Postcard 2")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Green Room Clock Puzzle Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Green Room Table Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Item Shop Postcard")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Item Workshop Left Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Item Workshop Postcard")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Item Workshop Right Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Kairi Secret Waterway Oathkeeper Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Leon Secret Waterway Earthshine Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Magician's Study Obtained All Arts Items")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Magician's Study Obtained All LV1 Magic")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Magician's Study Obtained All LV3 Magic")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mail Postcard 01 Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mail Postcard 02 Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mail Postcard 03 Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mail Postcard 04 Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mail Postcard 05 Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mail Postcard 06 Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mail Postcard 07 Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mail Postcard 08 Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mail Postcard 09 Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mail Postcard 10 Event")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mystical House Glide Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Mystical House Yellow Trinity Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 10 Puppies")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 20 Puppies")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 30 Puppies")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 40 Puppies")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 50 Puppies Reward 1")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 50 Puppies Reward 2")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 60 Puppies")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 70 Puppies")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 80 Puppies")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 90 Puppies")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 99 Puppies Reward 1")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Piano Room Return 99 Puppies Reward 2")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Red Room Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Secret Waterway Near Stairs Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Secret Waterway White Trinity Chest")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Synth Cloth")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Synth Fish")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Synth Log")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Synth Mushroom")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Synth Rope")
|
||||
regions["Traverse Town"].locations.append("Traverse Town Synth Seagull Egg")
|
||||
regions["Wonderland"].locations.append("Wonderland Bizarre Room Green Trinity Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Bizarre Room Lamp Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Bizarre Room Navi-G Piece Event")
|
||||
regions["Wonderland"].locations.append("Wonderland Bizarre Room Read Book")
|
||||
regions["Wonderland"].locations.append("Wonderland Defeat Trickmaster Blizzard Event")
|
||||
regions["Wonderland"].locations.append("Wonderland Defeat Trickmaster Ifrit's Horn Event")
|
||||
regions["Wonderland"].locations.append("Wonderland Lotus Forest Corner Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Lotus Forest Glide Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Lotus Forest Nut Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Lotus Forest Through the Painting Thunder Plant Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Lotus Forest Through the Painting White Trinity Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Lotus Forest Thunder Plant Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Queen's Castle Hedge Left Red Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Queen's Castle Hedge Right Blue Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Queen's Castle Hedge Right Red Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Rabbit Hole Defeat Heartless 1 Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Rabbit Hole Defeat Heartless 2 Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Rabbit Hole Defeat Heartless 3 Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Rabbit Hole Green Trinity Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Tea Party Garden Above Lotus Forest Entrance 1st Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Tea Party Garden Above Lotus Forest Entrance 2nd Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Tea Party Garden Across From Bizarre Room Entrance Chest")
|
||||
regions["Wonderland"].locations.append("Wonderland Tea Party Garden Bear and Clock Puzzle Chest")
|
||||
if options.hundred_acre_wood:
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Meadow Inside Log Chest")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Bouncing Spot Left Cliff Chest")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Bouncing Spot Right Tree Alcove Chest")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Bouncing Spot Under Giant Pot Chest")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Bouncing Spot Turn in Rare Nut 1")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Bouncing Spot Turn in Rare Nut 2")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Bouncing Spot Turn in Rare Nut 3")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Bouncing Spot Turn in Rare Nut 4")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Bouncing Spot Turn in Rare Nut 5")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Pooh's House Owl Cheer")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Convert Torn Page 1")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Convert Torn Page 2")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Convert Torn Page 3")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Convert Torn Page 4")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Convert Torn Page 5")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Pooh's House Start Fire")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Pooh's Room Cabinet")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Pooh's Room Chimney")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Bouncing Spot Break Log")
|
||||
regions["100 Acre Wood"].locations.append("100 Acre Wood Bouncing Spot Fall Through Top of Tree Next to Pooh")
|
||||
if options.atlantica:
|
||||
regions["Atlantica"].locations.append("Atlantica Sunken Ship In Flipped Boat Chest")
|
||||
regions["Atlantica"].locations.append("Atlantica Sunken Ship Seabed Chest")
|
||||
regions["Atlantica"].locations.append("Atlantica Sunken Ship Inside Ship Chest")
|
||||
regions["Atlantica"].locations.append("Atlantica Ariel's Grotto High Chest")
|
||||
regions["Atlantica"].locations.append("Atlantica Ariel's Grotto Middle Chest")
|
||||
regions["Atlantica"].locations.append("Atlantica Ariel's Grotto Low Chest")
|
||||
regions["Atlantica"].locations.append("Atlantica Ursula's Lair Use Fire on Urchin Chest")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Gorge Jammed by Ariel's Grotto Chest")
|
||||
regions["Atlantica"].locations.append("Atlantica Triton's Palace White Trinity Chest")
|
||||
regions["Atlantica"].locations.append("Atlantica Defeat Ursula I Mermaid Kick Event")
|
||||
regions["Atlantica"].locations.append("Atlantica Defeat Ursula II Thunder Event")
|
||||
regions["Atlantica"].locations.append("Atlantica Seal Keyhole Crabclaw Event")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Gorge Blizzard Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Gorge Ocean Floor Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Valley Higher Cave Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Valley Lower Cave Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Valley Fire Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Valley Wall Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Valley Pillar Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Valley Ocean Floor Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Triton's Palace Thunder Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Triton's Palace Wall Right Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Triton's Palace Near Path Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Triton's Palace Wall Left Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Cavern Nook Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Below Deck Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Garden Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Undersea Cave Clam")
|
||||
regions["Atlantica"].locations.append("Atlantica Sunken Ship Crystal Trident Event")
|
||||
regions["Atlantica"].locations.append("Atlantica Defeat Ursula II Ansem's Report 3")
|
||||
if options.cups:
|
||||
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("Hercules Cup Defeat Cloud Event")
|
||||
regions["Olympus Coliseum"].locations.append("Hercules Cup Yellow Trinity Event")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Defeat Hades Ansem's Report 8")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Olympia Chest")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Defeat Ice Titan Diamond Dust Event")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Gates Purple Jar After Defeating Hades")
|
||||
if options.super_bosses:
|
||||
regions["Neverland"].locations.append("Neverland Defeat Phantom Stop Event")
|
||||
regions["Agrabah"].locations.append("Agrabah Defeat Kurt Zisa Zantetsuken Event")
|
||||
regions["Agrabah"].locations.append("Agrabah Defeat Kurt Zisa Ansem's Report 11")
|
||||
if options.super_bosses or options.goal.current_key == "sephiroth":
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Defeat Sephiroth Ansem's Report 12")
|
||||
regions["Olympus Coliseum"].locations.append("Olympus Coliseum Defeat Sephiroth One-Winged Angel Event")
|
||||
if options.super_bosses or options.goal.current_key == "unknown":
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Defeat Unknown Ansem's Report 13")
|
||||
regions["Hollow Bastion"].locations.append("Hollow Bastion Defeat Unknown EXP Necklace Event")
|
||||
for i in range(options.level_checks):
|
||||
regions["Levels"].locations.append("Level " + str(i+1).rjust(3, '0'))
|
||||
if options.goal.current_key == "final_ansem":
|
||||
regions["End of the World"].locations.append("Final Ansem")
|
||||
|
||||
# Set up the regions correctly.
|
||||
for name, data in regions.items():
|
||||
multiworld.regions.append(create_region(multiworld, player, name, data))
|
||||
|
||||
multiworld.get_entrance("Awakening", player).connect(multiworld.get_region("Awakening", player))
|
||||
multiworld.get_entrance("Destiny Islands", player).connect(multiworld.get_region("Destiny Islands", player))
|
||||
multiworld.get_entrance("Traverse Town", player).connect(multiworld.get_region("Traverse Town", player))
|
||||
multiworld.get_entrance("Wonderland", player).connect(multiworld.get_region("Wonderland", player))
|
||||
multiworld.get_entrance("Olympus Coliseum", player).connect(multiworld.get_region("Olympus Coliseum", player))
|
||||
multiworld.get_entrance("Deep Jungle", player).connect(multiworld.get_region("Deep Jungle", player))
|
||||
multiworld.get_entrance("Agrabah", player).connect(multiworld.get_region("Agrabah", player))
|
||||
multiworld.get_entrance("Monstro", player).connect(multiworld.get_region("Monstro", player))
|
||||
multiworld.get_entrance("Atlantica", player).connect(multiworld.get_region("Atlantica", player))
|
||||
multiworld.get_entrance("Halloween Town", player).connect(multiworld.get_region("Halloween Town", player))
|
||||
multiworld.get_entrance("Neverland", player).connect(multiworld.get_region("Neverland", player))
|
||||
multiworld.get_entrance("Hollow Bastion", player).connect(multiworld.get_region("Hollow Bastion", player))
|
||||
multiworld.get_entrance("End of the World", player).connect(multiworld.get_region("End of the World", player))
|
||||
multiworld.get_entrance("100 Acre Wood", player).connect(multiworld.get_region("100 Acre Wood", player))
|
||||
multiworld.get_entrance("World Map", player).connect(multiworld.get_region("World Map", player))
|
||||
multiworld.get_entrance("Levels", player).connect(multiworld.get_region("Levels", player))
|
||||
|
||||
def create_region(multiworld: MultiWorld, player: int, name: str, data: KH1RegionData):
|
||||
region = Region(name, player, multiworld)
|
||||
if data.locations:
|
||||
for loc_name in data.locations:
|
||||
loc_data = location_table.get(loc_name)
|
||||
location = KH1Location(player, loc_name, loc_data.code if loc_data else None, region)
|
||||
region.locations.append(location)
|
||||
|
||||
if data.region_exits:
|
||||
for exit in data.region_exits:
|
||||
entrance = Entrance(player, exit, region)
|
||||
region.exits.append(entrance)
|
||||
|
||||
return region
|
||||
1947
worlds/kh1/Rules.py
Normal file
1947
worlds/kh1/Rules.py
Normal file
File diff suppressed because it is too large
Load Diff
282
worlds/kh1/__init__.py
Normal file
282
worlds/kh1/__init__.py
Normal file
@@ -0,0 +1,282 @@
|
||||
import logging
|
||||
from typing import List
|
||||
|
||||
from BaseClasses import Tutorial
|
||||
from worlds.AutoWorld import WebWorld, World
|
||||
from .Items import KH1Item, KH1ItemData, event_item_table, get_items_by_category, item_table, item_name_groups
|
||||
from .Locations import KH1Location, location_table, get_locations_by_category, location_name_groups
|
||||
from .Options import KH1Options, kh1_option_groups
|
||||
from .Regions import create_regions
|
||||
from .Rules import set_rules
|
||||
from .Presets import kh1_option_presets
|
||||
from worlds.LauncherComponents import Component, components, Type, launch_subprocess
|
||||
|
||||
|
||||
def launch_client():
|
||||
from .Client import launch
|
||||
launch_subprocess(launch, name="KH1 Client")
|
||||
|
||||
|
||||
components.append(Component("KH1 Client", "KH1Client", func=launch_client, component_type=Type.CLIENT))
|
||||
|
||||
|
||||
class KH1Web(WebWorld):
|
||||
theme = "ocean"
|
||||
tutorials = [Tutorial(
|
||||
"Multiworld Setup Guide",
|
||||
"A guide to setting up the Kingdom Hearts Randomizer software on your computer."
|
||||
"This guide covers single-player, multiworld, and related software.",
|
||||
"English",
|
||||
"kh1_en.md",
|
||||
"kh1/en",
|
||||
["Gicu"]
|
||||
)]
|
||||
option_groups = kh1_option_groups
|
||||
options_presets = kh1_option_presets
|
||||
|
||||
|
||||
class KH1World(World):
|
||||
"""
|
||||
Kingdom Hearts is an action RPG following Sora on his journey
|
||||
through many worlds to find Riku and Kairi.
|
||||
"""
|
||||
game = "Kingdom Hearts"
|
||||
options_dataclass = KH1Options
|
||||
options: KH1Options
|
||||
topology_present = True
|
||||
web = KH1Web()
|
||||
|
||||
item_name_to_id = {name: data.code for name, data in item_table.items()}
|
||||
location_name_to_id = {name: data.code for name, data in location_table.items()}
|
||||
item_name_groups = item_name_groups
|
||||
location_name_groups = location_name_groups
|
||||
fillers = {}
|
||||
fillers.update(get_items_by_category("Item"))
|
||||
fillers.update(get_items_by_category("Camping"))
|
||||
fillers.update(get_items_by_category("Stat Ups"))
|
||||
|
||||
def create_items(self):
|
||||
self.place_predetermined_items()
|
||||
# Handle starting worlds
|
||||
starting_worlds = []
|
||||
if self.options.starting_worlds > 0:
|
||||
possible_starting_worlds = ["Wonderland", "Olympus Coliseum", "Deep Jungle", "Agrabah", "Monstro", "Halloween Town", "Neverland", "Hollow Bastion"]
|
||||
if self.options.atlantica:
|
||||
possible_starting_worlds.append("Atlantica")
|
||||
if self.options.end_of_the_world_unlock == "item":
|
||||
possible_starting_worlds.append("End of the World")
|
||||
starting_worlds = self.random.sample(possible_starting_worlds, min(self.options.starting_worlds.value, len(possible_starting_worlds)))
|
||||
for starting_world in starting_worlds:
|
||||
self.multiworld.push_precollected(self.create_item(starting_world))
|
||||
|
||||
item_pool: List[KH1Item] = []
|
||||
possible_level_up_item_pool = []
|
||||
level_up_item_pool = []
|
||||
|
||||
# Calculate Level Up Items
|
||||
# Fill pool with mandatory items
|
||||
for _ in range(self.options.item_slot_increase):
|
||||
level_up_item_pool.append("Item Slot Increase")
|
||||
for _ in range(self.options.accessory_slot_increase):
|
||||
level_up_item_pool.append("Accessory Slot Increase")
|
||||
|
||||
# Create other pool
|
||||
for _ in range(self.options.strength_increase):
|
||||
possible_level_up_item_pool.append("Strength Increase")
|
||||
for _ in range(self.options.defense_increase):
|
||||
possible_level_up_item_pool.append("Defense Increase")
|
||||
for _ in range(self.options.hp_increase):
|
||||
possible_level_up_item_pool.append("Max HP Increase")
|
||||
for _ in range(self.options.mp_increase):
|
||||
possible_level_up_item_pool.append("Max MP Increase")
|
||||
for _ in range(self.options.ap_increase):
|
||||
possible_level_up_item_pool.append("Max AP Increase")
|
||||
|
||||
# Fill remaining pool with items from other pool
|
||||
self.random.shuffle(possible_level_up_item_pool)
|
||||
level_up_item_pool = level_up_item_pool + possible_level_up_item_pool[:(100 - len(level_up_item_pool))]
|
||||
|
||||
level_up_locations = list(get_locations_by_category("Levels").keys())
|
||||
self.random.shuffle(level_up_item_pool)
|
||||
current_level_for_placing_stats = self.options.force_stats_on_levels.value
|
||||
while len(level_up_item_pool) > 0 and current_level_for_placing_stats <= self.options.level_checks:
|
||||
self.get_location(level_up_locations[current_level_for_placing_stats - 1]).place_locked_item(self.create_item(level_up_item_pool.pop()))
|
||||
current_level_for_placing_stats += 1
|
||||
|
||||
# Calculate prefilled locations and items
|
||||
prefilled_items = []
|
||||
if self.options.vanilla_emblem_pieces:
|
||||
prefilled_items = prefilled_items + ["Emblem Piece (Flame)", "Emblem Piece (Chest)", "Emblem Piece (Fountain)", "Emblem Piece (Statue)"]
|
||||
|
||||
total_locations = len(self.multiworld.get_unfilled_locations(self.player))
|
||||
|
||||
non_filler_item_categories = ["Key", "Magic", "Worlds", "Trinities", "Cups", "Summons", "Abilities", "Shared Abilities", "Keyblades", "Accessory", "Weapons", "Puppies"]
|
||||
if self.options.hundred_acre_wood:
|
||||
non_filler_item_categories.append("Torn Pages")
|
||||
for name, data in item_table.items():
|
||||
quantity = data.max_quantity
|
||||
if data.category not in non_filler_item_categories:
|
||||
continue
|
||||
if name in starting_worlds:
|
||||
continue
|
||||
if data.category == "Puppies":
|
||||
if self.options.puppies == "triplets" and "-" in name:
|
||||
item_pool += [self.create_item(name) for _ in range(quantity)]
|
||||
if self.options.puppies == "individual" and "Puppy" in name:
|
||||
item_pool += [self.create_item(name) for _ in range(0, quantity)]
|
||||
if self.options.puppies == "full" and name == "All Puppies":
|
||||
item_pool += [self.create_item(name) for _ in range(0, quantity)]
|
||||
elif name == "Atlantica":
|
||||
if self.options.atlantica:
|
||||
item_pool += [self.create_item(name) for _ in range(0, quantity)]
|
||||
elif name == "Mermaid Kick":
|
||||
if self.options.atlantica:
|
||||
if self.options.extra_shared_abilities:
|
||||
item_pool += [self.create_item(name) for _ in range(0, 2)]
|
||||
else:
|
||||
item_pool += [self.create_item(name) for _ in range(0, quantity)]
|
||||
elif name == "Crystal Trident":
|
||||
if self.options.atlantica:
|
||||
item_pool += [self.create_item(name) for _ in range(0, quantity)]
|
||||
elif name == "High Jump":
|
||||
if self.options.extra_shared_abilities:
|
||||
item_pool += [self.create_item(name) for _ in range(0, 3)]
|
||||
else:
|
||||
item_pool += [self.create_item(name) for _ in range(0, quantity)]
|
||||
elif name == "Progressive Glide":
|
||||
if self.options.extra_shared_abilities:
|
||||
item_pool += [self.create_item(name) for _ in range(0, 4)]
|
||||
else:
|
||||
item_pool += [self.create_item(name) for _ in range(0, quantity)]
|
||||
elif name == "End of the World":
|
||||
if self.options.end_of_the_world_unlock.current_key == "item":
|
||||
item_pool += [self.create_item(name) for _ in range(0, quantity)]
|
||||
elif name == "EXP Zero":
|
||||
if self.options.exp_zero_in_pool:
|
||||
item_pool += [self.create_item(name) for _ in range(0, quantity)]
|
||||
elif name not in prefilled_items:
|
||||
item_pool += [self.create_item(name) for _ in range(0, quantity)]
|
||||
|
||||
for i in range(self.determine_reports_in_pool()):
|
||||
item_pool += [self.create_item("Ansem's Report " + str(i+1))]
|
||||
|
||||
while len(item_pool) < total_locations and len(level_up_item_pool) > 0:
|
||||
item_pool += [self.create_item(level_up_item_pool.pop())]
|
||||
|
||||
# Fill any empty locations with filler items.
|
||||
while len(item_pool) < total_locations:
|
||||
item_pool.append(self.create_item(self.get_filler_item_name()))
|
||||
|
||||
self.multiworld.itempool += item_pool
|
||||
|
||||
def place_predetermined_items(self) -> None:
|
||||
goal_dict = {
|
||||
"sephiroth": "Olympus Coliseum Defeat Sephiroth Ansem's Report 12",
|
||||
"unknown": "Hollow Bastion Defeat Unknown Ansem's Report 13",
|
||||
"postcards": "Traverse Town Mail Postcard 10 Event",
|
||||
"final_ansem": "Final Ansem",
|
||||
"puppies": "Traverse Town Piano Room Return 99 Puppies Reward 2",
|
||||
"final_rest": "End of the World Final Rest Chest"
|
||||
}
|
||||
self.get_location(goal_dict[self.options.goal.current_key]).place_locked_item(self.create_item("Victory"))
|
||||
if self.options.vanilla_emblem_pieces:
|
||||
self.get_location("Hollow Bastion Entrance Hall Emblem Piece (Flame)").place_locked_item(self.create_item("Emblem Piece (Flame)"))
|
||||
self.get_location("Hollow Bastion Entrance Hall Emblem Piece (Statue)").place_locked_item(self.create_item("Emblem Piece (Statue)"))
|
||||
self.get_location("Hollow Bastion Entrance Hall Emblem Piece (Fountain)").place_locked_item(self.create_item("Emblem Piece (Fountain)"))
|
||||
self.get_location("Hollow Bastion Entrance Hall Emblem Piece (Chest)").place_locked_item(self.create_item("Emblem Piece (Chest)"))
|
||||
|
||||
def get_filler_item_name(self) -> str:
|
||||
weights = [data.weight for data in self.fillers.values()]
|
||||
return self.random.choices([filler for filler in self.fillers.keys()], weights)[0]
|
||||
|
||||
def fill_slot_data(self) -> dict:
|
||||
slot_data = {"xpmult": int(self.options.exp_multiplier)/16,
|
||||
"required_reports_eotw": self.determine_reports_required_to_open_end_of_the_world(),
|
||||
"required_reports_door": self.determine_reports_required_to_open_final_rest_door(),
|
||||
"door": self.options.final_rest_door.current_key,
|
||||
"seed": self.multiworld.seed_name,
|
||||
"advanced_logic": bool(self.options.advanced_logic),
|
||||
"hundred_acre_wood": bool(self.options.hundred_acre_wood),
|
||||
"atlantica": bool(self.options.atlantica),
|
||||
"goal": str(self.options.goal.current_key)}
|
||||
if self.options.randomize_keyblade_stats:
|
||||
min_str_bonus = min(self.options.keyblade_min_str.value, self.options.keyblade_max_str.value)
|
||||
max_str_bonus = max(self.options.keyblade_min_str.value, self.options.keyblade_max_str.value)
|
||||
self.options.keyblade_min_str.value = min_str_bonus
|
||||
self.options.keyblade_max_str.value = max_str_bonus
|
||||
min_mp_bonus = min(self.options.keyblade_min_mp.value, self.options.keyblade_max_mp.value)
|
||||
max_mp_bonus = max(self.options.keyblade_min_mp.value, self.options.keyblade_max_mp.value)
|
||||
self.options.keyblade_min_mp.value = min_mp_bonus
|
||||
self.options.keyblade_max_mp.value = max_mp_bonus
|
||||
slot_data["keyblade_stats"] = ""
|
||||
for i in range(22):
|
||||
if i < 4 and self.options.bad_starting_weapons:
|
||||
slot_data["keyblade_stats"] = slot_data["keyblade_stats"] + "1,0,"
|
||||
else:
|
||||
str_bonus = int(self.random.randint(min_str_bonus, max_str_bonus))
|
||||
mp_bonus = int(self.random.randint(min_mp_bonus, max_mp_bonus))
|
||||
slot_data["keyblade_stats"] = slot_data["keyblade_stats"] + str(str_bonus) + "," + str(mp_bonus) + ","
|
||||
slot_data["keyblade_stats"] = slot_data["keyblade_stats"][:-1]
|
||||
if self.options.donald_death_link:
|
||||
slot_data["donalddl"] = ""
|
||||
if self.options.goofy_death_link:
|
||||
slot_data["goofydl"] = ""
|
||||
if self.options.keyblades_unlock_chests:
|
||||
slot_data["chestslocked"] = ""
|
||||
else:
|
||||
slot_data["chestsunlocked"] = ""
|
||||
if self.options.interact_in_battle:
|
||||
slot_data["interactinbattle"] = ""
|
||||
return slot_data
|
||||
|
||||
def create_item(self, name: str) -> KH1Item:
|
||||
data = item_table[name]
|
||||
return KH1Item(name, data.classification, data.code, self.player)
|
||||
|
||||
def create_event(self, name: str) -> KH1Item:
|
||||
data = event_item_table[name]
|
||||
return KH1Item(name, data.classification, data.code, self.player)
|
||||
|
||||
def set_rules(self):
|
||||
set_rules(self)
|
||||
|
||||
def create_regions(self):
|
||||
create_regions(self.multiworld, self.player, self.options)
|
||||
|
||||
def generate_early(self):
|
||||
value_names = ["Reports to Open End of the World", "Reports to Open Final Rest Door", "Reports in Pool"]
|
||||
initial_report_settings = [self.options.required_reports_eotw.value, self.options.required_reports_door.value, self.options.reports_in_pool.value]
|
||||
self.change_numbers_of_reports_to_consider()
|
||||
new_report_settings = [self.options.required_reports_eotw.value, self.options.required_reports_door.value, self.options.reports_in_pool.value]
|
||||
for i in range(3):
|
||||
if initial_report_settings[i] != new_report_settings[i]:
|
||||
logging.info(f"{self.player_name}'s value {initial_report_settings[i]} for \"{value_names[i]}\" was invalid\n"
|
||||
f"Setting \"{value_names[i]}\" value to {new_report_settings[i]}")
|
||||
|
||||
def change_numbers_of_reports_to_consider(self) -> None:
|
||||
if self.options.end_of_the_world_unlock == "reports" and self.options.final_rest_door == "reports":
|
||||
self.options.required_reports_eotw.value, self.options.required_reports_door.value, self.options.reports_in_pool.value = sorted(
|
||||
[self.options.required_reports_eotw.value, self.options.required_reports_door.value, self.options.reports_in_pool.value])
|
||||
|
||||
elif self.options.end_of_the_world_unlock == "reports":
|
||||
self.options.required_reports_eotw.value, self.options.reports_in_pool.value = sorted(
|
||||
[self.options.required_reports_eotw.value, self.options.reports_in_pool.value])
|
||||
|
||||
elif self.options.final_rest_door == "reports":
|
||||
self.options.required_reports_door.value, self.options.reports_in_pool.value = sorted(
|
||||
[self.options.required_reports_door.value, self.options.reports_in_pool.value])
|
||||
|
||||
def determine_reports_in_pool(self) -> int:
|
||||
if self.options.end_of_the_world_unlock == "reports" or self.options.final_rest_door == "reports":
|
||||
return self.options.reports_in_pool.value
|
||||
return 0
|
||||
|
||||
def determine_reports_required_to_open_end_of_the_world(self) -> int:
|
||||
if self.options.end_of_the_world_unlock == "reports":
|
||||
return self.options.required_reports_eotw.value
|
||||
return 14
|
||||
|
||||
def determine_reports_required_to_open_final_rest_door(self) -> int:
|
||||
if self.options.final_rest_door == "reports":
|
||||
return self.options.required_reports_door.value
|
||||
return 14
|
||||
88
worlds/kh1/docs/en_Kingdom Hearts.md
Normal file
88
worlds/kh1/docs/en_Kingdom Hearts.md
Normal file
@@ -0,0 +1,88 @@
|
||||
# Kingdom Hearts (PC)
|
||||
|
||||
## Where is the options page?
|
||||
|
||||
The [player options page for this game](../player-options) contains most of the options you need to
|
||||
configure and export a config file.
|
||||
|
||||
## What does randomization do to this game?
|
||||
|
||||
The Kingdom Hearts AP Randomizer randomizes most rewards in the game and adds several items which are used to unlock worlds, Olympus Coliseum cups, and world progression.
|
||||
|
||||
Worlds can only be accessed by finding the corresponding item. For example, you need to find the `Monstro` item to enter Monstro.
|
||||
|
||||
The default goal is to enter End of the World and defeat Final Ansem.
|
||||
|
||||
## What items and locations get shuffled?
|
||||
|
||||
### Items
|
||||
|
||||
Any weapon, accessory, spell, trinity, summon, world, key item, stat up, consumable, or ability can be found in any location.
|
||||
|
||||
### Locations
|
||||
|
||||
Locations the player can find items include chests, event rewards, Atlantica clams, level up rewards, 101 Dalmatian rewards, and postcard rewards.
|
||||
|
||||
## Which items can be in another player's world?
|
||||
|
||||
Any of the items which can be shuffled may also be placed into another player's world. It is possible to choose to limit
|
||||
certain items to your own world.
|
||||
## When the player receives an item, what happens?
|
||||
|
||||
When the player receives an item, your client will display a message displaying the item you have obtained. You will also see a notification in the "LEVEL UP" box.
|
||||
|
||||
## What do I do if I encounter a bug with the game?
|
||||
|
||||
Please reach out to Gicu#7034 on Discord.
|
||||
|
||||
## How do I progress in a certain world?
|
||||
|
||||
### The evidence boxes aren't spawning in Wonderland.
|
||||
|
||||
Find `Footprints` in the multiworld.
|
||||
|
||||
### I can't enter any cups in Olympus Coliseum.
|
||||
|
||||
Firstly, find `Entry Pass` in the multiworld. Additionally, `Phil Cup`, `Pegasus Cup`, and `Hercules Cup` are all multiworld items. Finding all 3 grant you access to the Hades Cup and the Platinum Match. Clearing all cups lets you challenge Ice Titan.
|
||||
|
||||
### The slides aren't spawning in Deep Jungle.
|
||||
|
||||
Find `Slides` in the multiworld.
|
||||
|
||||
### I can't progress in Atlantica.
|
||||
Find `Crystal Trident` in the multiworld.
|
||||
|
||||
### I can't progress in Halloween Town.
|
||||
|
||||
Find `Forget-Me-Not` and `Jack-in-the-Box` in the multiworld.
|
||||
|
||||
### The Hollow Bastion Library is missing a book.
|
||||
|
||||
Find `Theon Vol. 6` in the multiworld.
|
||||
|
||||
## How do I enter the End of the World?
|
||||
|
||||
You can enter End of the World by obtaining a number of Ansem's Reports or by finding `End of the World` in the multiworld, depending on your options.
|
||||
|
||||
## Credits
|
||||
This is a collaborative effort from several individuals in the Kingdom Hearts community, but most of all, denhonator.
|
||||
|
||||
Denho's original KH rando laid the foundation for the work here and makes everything here possible, so thank you Denho for such a blast of a randomizer.
|
||||
|
||||
Other credits include:
|
||||
|
||||
Sonicshadowsilver2 for their work finding many memory addresses, working to identify and resolve bugs, and converting the code base to the latest EGS update.
|
||||
|
||||
Shananas and the rest of the OpenKH team for providing such an amazing tool for us to utilize on this project.
|
||||
|
||||
TopazTK for their work on the `Show Prompt` method and Krujo for their implementation of the method in AP.
|
||||
|
||||
JaredWeakStrike for helping clean up my mess of code.
|
||||
|
||||
KSX for their `Interact in Battle` code.
|
||||
|
||||
RavSpect for their title screen image edit.
|
||||
|
||||
SunCatMC for their work on ChecksFinder, which I used as a basis for game-to-client communication.
|
||||
|
||||
ThePhar for their work on Rogue Legacy AP, which I used as a basis for the apworld creation.
|
||||
54
worlds/kh1/docs/kh1_en.md
Normal file
54
worlds/kh1/docs/kh1_en.md
Normal file
@@ -0,0 +1,54 @@
|
||||
# Kingdom Hearts Randomizer Setup Guide
|
||||
|
||||
## Setting up the required mods
|
||||
|
||||
BEFORE MODDING, PLEASE INSTALL AND RUN KH1 AT LEAST ONCE.
|
||||
|
||||
1. Install OpenKH and the LUA Backend
|
||||
|
||||
Download the [latest release of OpenKH](https://github.com/OpenKH/OpenKh/releases/tag/latest)
|
||||
|
||||
Extract the files to a directory of your choosing.
|
||||
|
||||
Open `OpenKh.Tools.ModsManager.exe` and run first time set up
|
||||
|
||||
When prompted for game edition, choose `PC Release`, select which platform you're using (EGS or Steam), navigate to your `Kingdom Hearts I.5 + II.5` installation folder in the path box and click `Next`
|
||||
|
||||
When prompted, install Panacea, then click `Next`
|
||||
|
||||
When prompted, check KH1 plus any other AP game you play and click `Install and configure LUA backend`, then click `Next`
|
||||
|
||||
Extracting game data for KH1 is unnecessary, but you may want to extract data for KH2 if you plan on playing KH2 AP
|
||||
|
||||
Click `Finish`
|
||||
|
||||
2. Open `OpenKh.Tools.ModsManager.exe`
|
||||
|
||||
3. Click the drop-down menu at the top-right and choose `Kingdom Hearts 1`
|
||||
|
||||
4. Click `Mods>Install a New Mod`
|
||||
|
||||
5. In `Add a new mod from GitHub` paste `gaithern/KH-1FM-AP-LUA`
|
||||
|
||||
6. Click `Install`
|
||||
|
||||
7. Navigate to Mod Loader and click `Build and Run`
|
||||
|
||||
|
||||
## Configuring your YAML file
|
||||
|
||||
### What is a YAML file and why do I need one?
|
||||
|
||||
Your YAML file contains a set of configuration options which provide the generator with information about how it should
|
||||
generate your game. Each player of a multiworld will provide their own YAML file. This setup allows each player to enjoy
|
||||
an experience customized for their taste, and different players in the same multiworld can all have different options.
|
||||
|
||||
### Where do I get a YAML file?
|
||||
|
||||
you can customize your settings by visiting the [Kingdom Hearts Options Page](/games/Kingdom%20Hearts/player-options).
|
||||
|
||||
## Connect to the MultiWorld
|
||||
|
||||
For first-time players, it is recommended to open your KH1 Client first before opening the game.
|
||||
|
||||
On the title screen, open your KH1 Client and connect to your multiworld.
|
||||
5
worlds/kh1/test/__init__.py
Normal file
5
worlds/kh1/test/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from test.bases import WorldTestBase
|
||||
|
||||
|
||||
class KH1TestBase(WorldTestBase):
|
||||
game = "Kingdom Hearts"
|
||||
33
worlds/kh1/test/test_goal.py
Normal file
33
worlds/kh1/test/test_goal.py
Normal file
@@ -0,0 +1,33 @@
|
||||
from . import KH1TestBase
|
||||
|
||||
class TestDefault(KH1TestBase):
|
||||
options = {}
|
||||
|
||||
class TestSephiroth(KH1TestBase):
|
||||
options = {
|
||||
"Goal": 0,
|
||||
}
|
||||
|
||||
class TestUnknown(KH1TestBase):
|
||||
options = {
|
||||
"Goal": 1,
|
||||
}
|
||||
|
||||
class TestPostcards(KH1TestBase):
|
||||
options = {
|
||||
"Goal": 2,
|
||||
}
|
||||
|
||||
class TestFinalAnsem(KH1TestBase):
|
||||
options = {
|
||||
"Goal": 3,
|
||||
}
|
||||
|
||||
class TestPuppies(KH1TestBase):
|
||||
options = {
|
||||
"Goal": 4,
|
||||
}
|
||||
class TestFinalRest(KH1TestBase):
|
||||
options = {
|
||||
"Goal": 5,
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user