+
-
+
{{ option.default | default(option.range_start) if option.default != "random" else option.range_start }}
{{ RandomizeButton(option_name, option) }}
diff --git a/WebHostLib/templates/playerOptions/playerOptions.html b/WebHostLib/templates/playerOptions/playerOptions.html
index aeb6e864a54b..73de5d56eb20 100644
--- a/WebHostLib/templates/playerOptions/playerOptions.html
+++ b/WebHostLib/templates/playerOptions/playerOptions.html
@@ -11,7 +11,7 @@
diff --git a/test/general/test_fill.py b/test/general/test_fill.py
index 485007ff0d56..db24b706918c 100644
--- a/test/general/test_fill.py
+++ b/test/general/test_fill.py
@@ -174,8 +174,8 @@ def test_minimal_mixed_fill(self):
player1 = generate_player_data(multiworld, 1, 3, 3)
player2 = generate_player_data(multiworld, 2, 3, 3)
- multiworld.accessibility[player1.id].value = multiworld.accessibility[player1.id].option_minimal
- multiworld.accessibility[player2.id].value = multiworld.accessibility[player2.id].option_locations
+ multiworld.worlds[player1.id].options.accessibility.value = Accessibility.option_minimal
+ multiworld.worlds[player2.id].options.accessibility.value = Accessibility.option_full
multiworld.completion_condition[player1.id] = lambda state: True
multiworld.completion_condition[player2.id] = lambda state: state.has(player2.prog_items[2].name, player2.id)
diff --git a/test/general/test_options.py b/test/general/test_options.py
index 6cf642029e65..2229b7ea7e66 100644
--- a/test/general/test_options.py
+++ b/test/general/test_options.py
@@ -1,6 +1,6 @@
import unittest
-from BaseClasses import PlandoOptions
+from BaseClasses import MultiWorld, PlandoOptions
from Options import ItemLinks
from worlds.AutoWorld import AutoWorldRegister
@@ -47,3 +47,15 @@ def test_item_links_name_groups(self):
self.assertIn("Bow", link.value[0]["item_pool"])
# TODO test that the group created using these options has the items
+
+ def test_item_links_resolve(self):
+ """Test item link option resolves correctly."""
+ item_link_group = [{
+ "name": "ItemLinkTest",
+ "item_pool": ["Everything"],
+ "link_replacement": False,
+ "replacement_item": None,
+ }]
+ item_links = {1: ItemLinks.from_any(item_link_group), 2: ItemLinks.from_any(item_link_group)}
+ for link in item_links.values():
+ self.assertEqual(link.value[0], item_link_group[0])
diff --git a/test/multiworld/test_multiworlds.py b/test/multiworld/test_multiworlds.py
index 677f0de82930..5289cac6c357 100644
--- a/test/multiworld/test_multiworlds.py
+++ b/test/multiworld/test_multiworlds.py
@@ -69,7 +69,7 @@ def test_two_player_single_game_fills(self) -> None:
for world in AutoWorldRegister.world_types.values():
self.multiworld = setup_multiworld([world, world], ())
for world in self.multiworld.worlds.values():
- world.options.accessibility.value = Accessibility.option_locations
+ world.options.accessibility.value = Accessibility.option_full
self.assertSteps(gen_steps)
with self.subTest("filling multiworld", seed=self.multiworld.seed):
distribute_items_restrictive(self.multiworld)
diff --git a/worlds/alttp/Options.py b/worlds/alttp/Options.py
index ee3ebc587ce7..20dd18038a14 100644
--- a/worlds/alttp/Options.py
+++ b/worlds/alttp/Options.py
@@ -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,
diff --git a/worlds/alttp/Rules.py b/worlds/alttp/Rules.py
index 67684a6f3ced..f596749ae669 100644
--- a/worlds/alttp/Rules.py
+++ b/worlds/alttp/Rules.py
@@ -2,6 +2,7 @@
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))
@@ -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 tr_big_key_chest_keys_needed(state):
# 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 tr_big_key_chest_keys_needed(state):
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)))
diff --git a/worlds/alttp/test/inverted/TestInverted.py b/worlds/alttp/test/inverted/TestInverted.py
index 0a2aa7a18653..a0a654991b43 100644
--- a/worlds/alttp/test/inverted/TestInverted.py
+++ b/worlds/alttp/test/inverted/TestInverted.py
@@ -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
diff --git a/worlds/alttp/test/inverted_minor_glitches/TestInvertedMinor.py b/worlds/alttp/test/inverted_minor_glitches/TestInvertedMinor.py
index a8fa5c808c3b..bf25c5c9a164 100644
--- a/worlds/alttp/test/inverted_minor_glitches/TestInvertedMinor.py
+++ b/worlds/alttp/test/inverted_minor_glitches/TestInvertedMinor.py
@@ -6,7 +6,7 @@
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
diff --git a/worlds/alttp/test/inverted_owg/TestInvertedOWG.py b/worlds/alttp/test/inverted_owg/TestInvertedOWG.py
index bbdf0f792444..1de22b95e593 100644
--- a/worlds/alttp/test/inverted_owg/TestInvertedOWG.py
+++ b/worlds/alttp/test/inverted_owg/TestInvertedOWG.py
@@ -6,7 +6,7 @@
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
diff --git a/worlds/bomb_rush_cyberfunk/Rules.py b/worlds/bomb_rush_cyberfunk/Rules.py
index f59a4285709d..8f283ee613b7 100644
--- a/worlds/bomb_rush_cyberfunk/Rules.py
+++ b/worlds/bomb_rush_cyberfunk/Rules.py
@@ -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))
diff --git a/worlds/cv64/options.py b/worlds/cv64/options.py
index 93b417ad26fd..07e86347bda6 100644
--- a/worlds/cv64/options.py
+++ b/worlds/cv64/options.py
@@ -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
diff --git a/worlds/ffmq/Regions.py b/worlds/ffmq/Regions.py
index f7b9b9eed4d8..c1d3d619ffaa 100644
--- a/worlds/ffmq/Regions.py
+++ b/worlds/ffmq/Regions.py
@@ -216,7 +216,7 @@ def stage_set_rules(multiworld):
multiworld.worlds[player].options.accessibility == "minimal"]) * 3):
for player in no_enemies_players:
for location in vendor_locations:
- if multiworld.worlds[player].options.accessibility == "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
diff --git a/worlds/ffmq/__init__.py b/worlds/ffmq/__init__.py
index c464203dc6a4..3c58487265a6 100644
--- a/worlds/ffmq/__init__.py
+++ b/worlds/ffmq/__init__.py
@@ -25,14 +25,25 @@
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):
diff --git a/worlds/ffmq/docs/en_Final Fantasy Mystic Quest.md b/worlds/ffmq/docs/en_Final Fantasy Mystic Quest.md
index a652d4e5adcd..4e093930739d 100644
--- a/worlds/ffmq/docs/en_Final Fantasy Mystic Quest.md
+++ b/worlds/ffmq/docs/en_Final Fantasy Mystic Quest.md
@@ -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
diff --git a/worlds/ffmq/docs/fr_Final Fantasy Mystic Quest.md b/worlds/ffmq/docs/fr_Final Fantasy Mystic Quest.md
new file mode 100644
index 000000000000..70c2d938bfc6
--- /dev/null
+++ b/worlds/ffmq/docs/fr_Final Fantasy Mystic Quest.md
@@ -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).
diff --git a/worlds/ffmq/docs/setup_en.md b/worlds/ffmq/docs/setup_en.md
index 35d775f1bc9f..77569c93f0c8 100644
--- a/worlds/ffmq/docs/setup_en.md
+++ b/worlds/ffmq/docs/setup_en.md
@@ -17,6 +17,12 @@ The Archipelago community cannot supply you with this.
## Installation Procedures
+### Linux Setup
+
+1. Download and install [Archipelago](). **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](). **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".
diff --git a/worlds/ffmq/docs/setup_fr.md b/worlds/ffmq/docs/setup_fr.md
new file mode 100644
index 000000000000..12ea41c6b3a0
--- /dev/null
+++ b/worlds/ffmq/docs/setup_fr.md
@@ -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]().
+** 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]().
+** 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.
+
+
+![Capture d'écran du menu Network Commands setting](/static/generated/docs/A%20Link%20to%20the%20Past/retroarch-network-commands-en.png)
+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.
diff --git a/worlds/messenger/options.py b/worlds/messenger/options.py
index 1f76dba4894a..59e694cd3963 100644
--- a/worlds/messenger/options.py
+++ b/worlds/messenger/options.py
@@ -3,15 +3,15 @@
from schema import And, Optional, Or, Schema
-from Options import Accessibility, Choice, DeathLinkMixin, DefaultOnToggle, OptionDict, PerGameCommonOptions, \
+from Options import Choice, DeathLinkMixin, DefaultOnToggle, ItemsAccessibility, OptionDict, PerGameCommonOptions, \
PlandoConnections, Range, StartInventoryPool, Toggle, Visibility
from .portals import CHECKPOINTS, PORTALS, SHOP_POINTS
-class MessengerAccessibility(Accessibility):
- default = Accessibility.option_locations
+class MessengerAccessibility(ItemsAccessibility):
# defaulting to locations accessibility since items makes certain items self-locking
- __doc__ = Accessibility.__doc__.replace(f"default {Accessibility.default}", f"default {default}")
+ default = ItemsAccessibility.option_full
+ __doc__ = ItemsAccessibility.__doc__
class PortalPlando(PlandoConnections):
diff --git a/worlds/minecraft/docs/minecraft_es.md b/worlds/minecraft/docs/minecraft_es.md
index 3f2df6e7ba76..4f4899212240 100644
--- a/worlds/minecraft/docs/minecraft_es.md
+++ b/worlds/minecraft/docs/minecraft_es.md
@@ -29,7 +29,7 @@ name: TuNombre
game: Minecraft
# Opciones compartidas por todos los juegos:
-accessibility: locations
+accessibility: full
progression_balancing: 50
# Opciones Especficicas para Minecraft
diff --git a/worlds/minecraft/docs/minecraft_sv.md b/worlds/minecraft/docs/minecraft_sv.md
index fd89d681ee37..ab8c1b5d8ea7 100644
--- a/worlds/minecraft/docs/minecraft_sv.md
+++ b/worlds/minecraft/docs/minecraft_sv.md
@@ -79,7 +79,7 @@ description: Template Name
# Ditt spelnamn. Mellanslag kommer bli omplacerad med understräck och det är en 16-karaktärsgräns.
name: YourName
game: Minecraft
-accessibility: locations
+accessibility: full
progression_balancing: 0
advancement_goal:
few: 0
diff --git a/worlds/pokemon_rb/__init__.py b/worlds/pokemon_rb/__init__.py
index 5f527033289a..277d73b2258b 100644
--- a/worlds/pokemon_rb/__init__.py
+++ b/worlds/pokemon_rb/__init__.py
@@ -443,7 +443,7 @@ def pre_fill(self) -> None:
self.multiworld.elite_four_pokedex_condition[self.player].total = \
int((len(reachable_mons) / 100) * self.multiworld.elite_four_pokedex_condition[self.player].value)
- if self.multiworld.accessibility[self.player] == "locations":
+ if self.multiworld.accessibility[self.player] == "full":
balls = [self.create_item(ball) for ball in ["Poke Ball", "Great Ball", "Ultra Ball"]]
traps = [self.create_item(trap) for trap in item_groups["Traps"]]
locations = [location for location in self.multiworld.get_locations(self.player) if "Pokedex - " in
diff --git a/worlds/pokemon_rb/options.py b/worlds/pokemon_rb/options.py
index bd6515913aca..54d486a6cf9f 100644
--- a/worlds/pokemon_rb/options.py
+++ b/worlds/pokemon_rb/options.py
@@ -1,4 +1,4 @@
-from Options import Toggle, Choice, Range, NamedRange, TextChoice, DeathLink
+from Options import Toggle, Choice, Range, NamedRange, TextChoice, DeathLink, ItemsAccessibility
class GameVersion(Choice):
@@ -287,7 +287,7 @@ class AllPokemonSeen(Toggle):
class DexSanity(NamedRange):
"""Adds location checks for Pokemon flagged "owned" on your Pokedex. You may specify a percentage of Pokemon to
- have checks added. If Accessibility is set to locations, this will be the percentage of all logically reachable
+ have checks added. If Accessibility is set to full, this will be the percentage of all logically reachable
Pokemon that will get a location check added to it. With items or minimal Accessibility, it will be the percentage
of all 151 Pokemon.
If Pokedex is required, the items for Pokemon acquired before acquiring the Pokedex can be found by talking to
@@ -861,6 +861,7 @@ class RandomizePokemonPalettes(Choice):
pokemon_rb_options = {
+ "accessibility": ItemsAccessibility,
"game_version": GameVersion,
"trainer_name": TrainerName,
"rival_name": RivalName,
diff --git a/worlds/pokemon_rb/rules.py b/worlds/pokemon_rb/rules.py
index 21dceb75e8df..1d68f3148963 100644
--- a/worlds/pokemon_rb/rules.py
+++ b/worlds/pokemon_rb/rules.py
@@ -22,7 +22,7 @@ def prize_rule(i):
item_rules["Celadon Prize Corner - Item Prize 2"] = prize_rule
item_rules["Celadon Prize Corner - Item Prize 3"] = prize_rule
- if multiworld.accessibility[player] != "locations":
+ if multiworld.accessibility[player] != "full":
multiworld.get_location("Cerulean Bicycle Shop", player).always_allow = (lambda state, item:
item.name == "Bike Voucher"
and item.player == player)
diff --git a/worlds/shivers/Items.py b/worlds/shivers/Items.py
index 3b403be5cb76..10d234d450bb 100644
--- a/worlds/shivers/Items.py
+++ b/worlds/shivers/Items.py
@@ -33,28 +33,38 @@ class ItemData(typing.NamedTuple):
"Lightning Pot Top": ItemData(SHIVERS_ITEM_ID_OFFSET + 17, "pot"),
"Sand Pot Top": ItemData(SHIVERS_ITEM_ID_OFFSET + 18, "pot"),
"Metal Pot Top": ItemData(SHIVERS_ITEM_ID_OFFSET + 19, "pot"),
+ "Water Pot Complete": ItemData(SHIVERS_ITEM_ID_OFFSET + 20, "pot_type2"),
+ "Wax Pot Complete": ItemData(SHIVERS_ITEM_ID_OFFSET + 21, "pot_type2"),
+ "Ash Pot Complete": ItemData(SHIVERS_ITEM_ID_OFFSET + 22, "pot_type2"),
+ "Oil Pot Complete": ItemData(SHIVERS_ITEM_ID_OFFSET + 23, "pot_type2"),
+ "Cloth Pot Complete": ItemData(SHIVERS_ITEM_ID_OFFSET + 24, "pot_type2"),
+ "Wood Pot Complete": ItemData(SHIVERS_ITEM_ID_OFFSET + 25, "pot_type2"),
+ "Crystal Pot Complete": ItemData(SHIVERS_ITEM_ID_OFFSET + 26, "pot_type2"),
+ "Lightning Pot Complete": ItemData(SHIVERS_ITEM_ID_OFFSET + 27, "pot_type2"),
+ "Sand Pot Complete": ItemData(SHIVERS_ITEM_ID_OFFSET + 28, "pot_type2"),
+ "Metal Pot Complete": ItemData(SHIVERS_ITEM_ID_OFFSET + 29, "pot_type2"),
#Keys
- "Key for Office Elevator": ItemData(SHIVERS_ITEM_ID_OFFSET + 20, "key"),
- "Key for Bedroom Elevator": ItemData(SHIVERS_ITEM_ID_OFFSET + 21, "key"),
- "Key for Three Floor Elevator": ItemData(SHIVERS_ITEM_ID_OFFSET + 22, "key"),
- "Key for Workshop": ItemData(SHIVERS_ITEM_ID_OFFSET + 23, "key"),
- "Key for Office": ItemData(SHIVERS_ITEM_ID_OFFSET + 24, "key"),
- "Key for Prehistoric Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 25, "key"),
- "Key for Greenhouse Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 26, "key"),
- "Key for Ocean Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 27, "key"),
- "Key for Projector Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 28, "key"),
- "Key for Generator Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 29, "key"),
- "Key for Egypt Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 30, "key"),
- "Key for Library Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 31, "key"),
- "Key for Shaman Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 32, "key"),
- "Key for UFO Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 33, "key"),
- "Key for Torture Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 34, "key"),
- "Key for Puzzle Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 35, "key"),
- "Key for Bedroom": ItemData(SHIVERS_ITEM_ID_OFFSET + 36, "key"),
- "Key for Underground Lake Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 37, "key"),
- "Key for Janitor Closet": ItemData(SHIVERS_ITEM_ID_OFFSET + 38, "key"),
- "Key for Front Door": ItemData(SHIVERS_ITEM_ID_OFFSET + 39, "key-optional"),
+ "Key for Office Elevator": ItemData(SHIVERS_ITEM_ID_OFFSET + 30, "key"),
+ "Key for Bedroom Elevator": ItemData(SHIVERS_ITEM_ID_OFFSET + 31, "key"),
+ "Key for Three Floor Elevator": ItemData(SHIVERS_ITEM_ID_OFFSET + 32, "key"),
+ "Key for Workshop": ItemData(SHIVERS_ITEM_ID_OFFSET + 33, "key"),
+ "Key for Office": ItemData(SHIVERS_ITEM_ID_OFFSET + 34, "key"),
+ "Key for Prehistoric Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 35, "key"),
+ "Key for Greenhouse Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 36, "key"),
+ "Key for Ocean Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 37, "key"),
+ "Key for Projector Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 38, "key"),
+ "Key for Generator Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 39, "key"),
+ "Key for Egypt Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 40, "key"),
+ "Key for Library Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 41, "key"),
+ "Key for Shaman Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 42, "key"),
+ "Key for UFO Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 43, "key"),
+ "Key for Torture Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 44, "key"),
+ "Key for Puzzle Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 45, "key"),
+ "Key for Bedroom": ItemData(SHIVERS_ITEM_ID_OFFSET + 46, "key"),
+ "Key for Underground Lake Room": ItemData(SHIVERS_ITEM_ID_OFFSET + 47, "key"),
+ "Key for Janitor Closet": ItemData(SHIVERS_ITEM_ID_OFFSET + 48, "key"),
+ "Key for Front Door": ItemData(SHIVERS_ITEM_ID_OFFSET + 49, "key-optional"),
#Abilities
"Crawling": ItemData(SHIVERS_ITEM_ID_OFFSET + 50, "ability"),
@@ -83,6 +93,16 @@ class ItemData(typing.NamedTuple):
"Lightning Pot Top DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 87, "potduplicate"),
"Sand Pot Top DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 88, "potduplicate"),
"Metal Pot Top DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 89, "potduplicate"),
+ "Water Pot Complete DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 140, "potduplicate_type2"),
+ "Wax Pot Complete DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 141, "potduplicate_type2"),
+ "Ash Pot Complete DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 142, "potduplicate_type2"),
+ "Oil Pot Complete DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 143, "potduplicate_type2"),
+ "Cloth Pot Complete DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 144, "potduplicate_type2"),
+ "Wood Pot Complete DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 145, "potduplicate_type2"),
+ "Crystal Pot Complete DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 146, "potduplicate_type2"),
+ "Lightning Pot Complete DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 147, "potduplicate_type2"),
+ "Sand Pot Complete DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 148, "potduplicate_type2"),
+ "Metal Pot Complete DUPE": ItemData(SHIVERS_ITEM_ID_OFFSET + 149, "potduplicate_type2"),
#Filler
"Empty": ItemData(SHIVERS_ITEM_ID_OFFSET + 90, "filler"),
diff --git a/worlds/shivers/Options.py b/worlds/shivers/Options.py
index b70882f9a545..2f33eb18e5d1 100644
--- a/worlds/shivers/Options.py
+++ b/worlds/shivers/Options.py
@@ -1,21 +1,37 @@
-from Options import Choice, DefaultOnToggle, Toggle, PerGameCommonOptions
+from Options import Choice, DefaultOnToggle, Toggle, PerGameCommonOptions, Range
from dataclasses import dataclass
+class IxupiCapturesNeeded(Range):
+ """
+ Number of Ixupi Captures needed for goal condition.
+ """
+ display_name = "Number of Ixupi Captures Needed"
+ range_start = 1
+ range_end = 10
+ default = 10
+
class LobbyAccess(Choice):
- """Chooses how keys needed to reach the lobby are placed.
+ """
+ Chooses how keys needed to reach the lobby are placed.
- Normal: Keys are placed anywhere
- Early: Keys are placed early
- - Local: Keys are placed locally"""
+ - Local: Keys are placed locally
+ """
display_name = "Lobby Access"
option_normal = 0
option_early = 1
option_local = 2
+ default = 1
class PuzzleHintsRequired(DefaultOnToggle):
- """If turned on puzzle hints will be available before the corresponding puzzle is required. For example: The Shaman
- Drums puzzle will be placed after access to the security cameras which give you the solution. Turning this off
- allows for greater randomization."""
+ """
+ If turned on puzzle hints/solutions will be available before the corresponding puzzle is required.
+
+ For example: The Red Door puzzle will be logically required only after access to the Beth's Address Book which gives you the solution.
+
+ Turning this off allows for greater randomization.
+ """
display_name = "Puzzle Hints Required"
class InformationPlaques(Toggle):
@@ -26,7 +42,9 @@ class InformationPlaques(Toggle):
display_name = "Include Information Plaques"
class FrontDoorUsable(Toggle):
- """Adds a key to unlock the front door of the museum."""
+ """
+ Adds a key to unlock the front door of the museum.
+ """
display_name = "Front Door Usable"
class ElevatorsStaySolved(DefaultOnToggle):
@@ -37,7 +55,9 @@ class ElevatorsStaySolved(DefaultOnToggle):
display_name = "Elevators Stay Solved"
class EarlyBeth(DefaultOnToggle):
- """Beth's body is open at the start of the game. This allows any pot piece to be placed in the slide and early checks on the second half of the final riddle."""
+ """
+ Beth's body is open at the start of the game. This allows any pot piece to be placed in the slide and early checks on the second half of the final riddle.
+ """
display_name = "Early Beth"
class EarlyLightning(Toggle):
@@ -47,9 +67,34 @@ class EarlyLightning(Toggle):
"""
display_name = "Early Lightning"
+class LocationPotPieces(Choice):
+ """
+ Chooses where pot pieces will be located within the multiworld.
+ - Own World: Pot pieces will be located within your own world
+ - Different World: Pot pieces will be located in another world
+ - Any World: Pot pieces will be located in any world
+ """
+ display_name = "Location of Pot Pieces"
+ option_own_world = 0
+ option_different_world = 1
+ option_any_world = 2
+
+class FullPots(Choice):
+ """
+ Chooses if pots will be in pieces or already completed
+ - Pieces: Only pot pieces will be added to the item pool
+ - Complete: Only completed pots will be added to the item pool
+ - Mixed: Each pot will be randomly chosen to be pieces or already completed.
+ """
+ display_name = "Full Pots"
+ option_pieces = 0
+ option_complete = 1
+ option_mixed = 2
+
@dataclass
class ShiversOptions(PerGameCommonOptions):
+ ixupi_captures_needed: IxupiCapturesNeeded
lobby_access: LobbyAccess
puzzle_hints_required: PuzzleHintsRequired
include_information_plaques: InformationPlaques
@@ -57,3 +102,5 @@ class ShiversOptions(PerGameCommonOptions):
elevators_stay_solved: ElevatorsStaySolved
early_beth: EarlyBeth
early_lightning: EarlyLightning
+ location_pot_pieces: LocationPotPieces
+ full_pots: FullPots
diff --git a/worlds/shivers/Rules.py b/worlds/shivers/Rules.py
index 3dc4f51c47a2..5288fa2c9c3f 100644
--- a/worlds/shivers/Rules.py
+++ b/worlds/shivers/Rules.py
@@ -8,58 +8,58 @@
def water_capturable(state: CollectionState, player: int) -> bool:
- return (state.can_reach("Lobby", "Region", player) or (state.can_reach("Janitor Closet", "Region", player) and cloth_capturable(state, player))) \
- and state.has_all({"Water Pot Bottom", "Water Pot Top", "Water Pot Bottom DUPE", "Water Pot Top DUPE"}, player)
+ return state.has_all({"Water Pot Bottom", "Water Pot Top", "Water Pot Bottom DUPE", "Water Pot Top DUPE"}, player) or \
+ state.has_all({"Water Pot Complete", "Water Pot Complete DUPE"}, player)
def wax_capturable(state: CollectionState, player: int) -> bool:
- return (state.can_reach("Library", "Region", player) or state.can_reach("Anansi", "Region", player)) \
- and state.has_all({"Wax Pot Bottom", "Wax Pot Top", "Wax Pot Bottom DUPE", "Wax Pot Top DUPE"}, player)
+ return state.has_all({"Wax Pot Bottom", "Wax Pot Top", "Wax Pot Bottom DUPE", "Wax Pot Top DUPE"}, player) or \
+ state.has_all({"Wax Pot Complete", "Wax Pot Complete DUPE"}, player)
def ash_capturable(state: CollectionState, player: int) -> bool:
- return (state.can_reach("Office", "Region", player) or state.can_reach("Burial", "Region", player)) \
- and state.has_all({"Ash Pot Bottom", "Ash Pot Top", "Ash Pot Bottom DUPE", "Ash Pot Top DUPE"}, player)
+ return state.has_all({"Ash Pot Bottom", "Ash Pot Top", "Ash Pot Bottom DUPE", "Ash Pot Top DUPE"}, player) or \
+ state.has_all({"Ash Pot Complete", "Ash Pot Complete DUPE"}, player)
def oil_capturable(state: CollectionState, player: int) -> bool:
- return (state.can_reach("Prehistoric", "Region", player) or state.can_reach("Tar River", "Region", player)) \
- and state.has_all({"Oil Pot Bottom", "Oil Pot Top", "Oil Pot Bottom DUPE", "Oil Pot Top DUPE"}, player)
+ return state.has_all({"Oil Pot Bottom", "Oil Pot Top", "Oil Pot Bottom DUPE", "Oil Pot Top DUPE"}, player) or \
+ state.has_all({"Oil Pot Complete", "Oil Pot Complete DUPE"}, player)
def cloth_capturable(state: CollectionState, player: int) -> bool:
- return (state.can_reach("Egypt", "Region", player) or state.can_reach("Burial", "Region", player) or state.can_reach("Janitor Closet", "Region", player)) \
- and state.has_all({"Cloth Pot Bottom", "Cloth Pot Top", "Cloth Pot Bottom DUPE", "Cloth Pot Top DUPE"}, player)
+ return state.has_all({"Cloth Pot Bottom", "Cloth Pot Top", "Cloth Pot Bottom DUPE", "Cloth Pot Top DUPE"}, player) or \
+ state.has_all({"Cloth Pot Complete", "Cloth Pot Complete DUPE"}, player)
def wood_capturable(state: CollectionState, player: int) -> bool:
- return (state.can_reach("Workshop", "Region", player) or state.can_reach("Blue Maze", "Region", player) or state.can_reach("Gods Room", "Region", player) or state.can_reach("Anansi", "Region", player)) \
- and state.has_all({"Wood Pot Bottom", "Wood Pot Top", "Wood Pot Bottom DUPE", "Wood Pot Top DUPE"}, player)
+ return state.has_all({"Wood Pot Bottom", "Wood Pot Top", "Wood Pot Bottom DUPE", "Wood Pot Top DUPE"}, player) or \
+ state.has_all({"Wood Pot Complete", "Wood Pot Complete DUPE"}, player)
def crystal_capturable(state: CollectionState, player: int) -> bool:
- return (state.can_reach("Lobby", "Region", player) or state.can_reach("Ocean", "Region", player)) \
- and state.has_all({"Crystal Pot Bottom", "Crystal Pot Top", "Crystal Pot Bottom DUPE", "Crystal Pot Top DUPE"}, player)
+ return state.has_all({"Crystal Pot Bottom", "Crystal Pot Top", "Crystal Pot Bottom DUPE", "Crystal Pot Top DUPE"}, player) or \
+ state.has_all({"Crystal Pot Complete", "Crystal Pot Complete DUPE"}, player)
def sand_capturable(state: CollectionState, player: int) -> bool:
- return (state.can_reach("Greenhouse", "Region", player) or state.can_reach("Ocean", "Region", player)) \
- and state.has_all({"Sand Pot Bottom", "Sand Pot Top", "Sand Pot Bottom DUPE", "Sand Pot Top DUPE"}, player)
+ return state.has_all({"Sand Pot Bottom", "Sand Pot Top", "Sand Pot Bottom DUPE", "Sand Pot Top DUPE"}, player) or \
+ state.has_all({"Sand Pot Complete", "Sand Pot Complete DUPE"}, player)
def metal_capturable(state: CollectionState, player: int) -> bool:
- return (state.can_reach("Projector Room", "Region", player) or state.can_reach("Prehistoric", "Region", player) or state.can_reach("Bedroom", "Region", player)) \
- and state.has_all({"Metal Pot Bottom", "Metal Pot Top", "Metal Pot Bottom DUPE", "Metal Pot Top DUPE"}, player)
+ return state.has_all({"Metal Pot Bottom", "Metal Pot Top", "Metal Pot Bottom DUPE", "Metal Pot Top DUPE"}, player) or \
+ state.has_all({"Metal Pot Complete", "Metal Pot Complete DUPE"}, player)
def lightning_capturable(state: CollectionState, player: int) -> bool:
- return (first_nine_ixupi_capturable or state.multiworld.early_lightning[player].value) \
- and state.can_reach("Generator", "Region", player) \
- and state.has_all({"Lightning Pot Bottom", "Lightning Pot Top", "Lightning Pot Bottom DUPE", "Lightning Pot Top DUPE"}, player)
+ return (first_nine_ixupi_capturable(state, player) or state.multiworld.worlds[player].options.early_lightning.value) \
+ and (state.has_all({"Lightning Pot Bottom", "Lightning Pot Top", "Lightning Pot Bottom DUPE", "Lightning Pot Top DUPE"}, player) or \
+ state.has_all({"Lightning Pot Complete", "Lightning Pot Complete DUPE"}, player))
def beths_body_available(state: CollectionState, player: int) -> bool:
- return (first_nine_ixupi_capturable(state, player) or state.multiworld.early_beth[player].value) \
+ return (first_nine_ixupi_capturable(state, player) or state.multiworld.worlds[player].options.early_beth.value) \
and state.can_reach("Generator", "Region", player)
@@ -123,7 +123,8 @@ def get_rules_lookup(player: int):
"To Burial From Egypt": lambda state: state.can_reach("Egypt", "Region", player),
"To Gods Room From Anansi": lambda state: state.can_reach("Gods Room", "Region", player),
"To Slide Room": lambda state: all_skull_dials_available(state, player),
- "To Lobby From Slide Room": lambda state: (beths_body_available(state, player))
+ "To Lobby From Slide Room": lambda state: beths_body_available(state, player),
+ "To Water Capture From Janitor Closet": lambda state: cloth_capturable(state, player)
},
"locations_required": {
"Puzzle Solved Anansi Musicbox": lambda state: state.can_reach("Clock Tower", "Region", player),
@@ -207,8 +208,10 @@ def set_rules(world: "ShiversWorld") -> None:
# forbid cloth in janitor closet and oil in tar river
forbid_item(multiworld.get_location("Accessible: Storage: Janitor Closet", player), "Cloth Pot Bottom DUPE", player)
forbid_item(multiworld.get_location("Accessible: Storage: Janitor Closet", player), "Cloth Pot Top DUPE", player)
+ forbid_item(multiworld.get_location("Accessible: Storage: Janitor Closet", player), "Cloth Pot Complete DUPE", player)
forbid_item(multiworld.get_location("Accessible: Storage: Tar River", player), "Oil Pot Bottom DUPE", player)
forbid_item(multiworld.get_location("Accessible: Storage: Tar River", player), "Oil Pot Top DUPE", player)
+ forbid_item(multiworld.get_location("Accessible: Storage: Tar River", player), "Oil Pot Complete DUPE", player)
# Filler Item Forbids
forbid_item(multiworld.get_location("Puzzle Solved Lyre", player), "Easier Lyre", player)
@@ -234,4 +237,8 @@ def set_rules(world: "ShiversWorld") -> None:
forbid_item(multiworld.get_location("Ixupi Captured Metal", player), "Metal Always Available in Prehistoric", player)
# Set completion condition
- multiworld.completion_condition[player] = lambda state: (first_nine_ixupi_capturable(state, player) and lightning_capturable(state, player))
+ multiworld.completion_condition[player] = lambda state: ((
+ water_capturable(state, player) + wax_capturable(state, player) + ash_capturable(state, player) \
+ + oil_capturable(state, player) + cloth_capturable(state, player) + wood_capturable(state, player) \
+ + crystal_capturable(state, player) + sand_capturable(state, player) + metal_capturable(state, player) \
+ + lightning_capturable(state, player)) >= world.options.ixupi_captures_needed.value)
diff --git a/worlds/shivers/__init__.py b/worlds/shivers/__init__.py
index e43e91fb5ae3..a2d7bc14644e 100644
--- a/worlds/shivers/__init__.py
+++ b/worlds/shivers/__init__.py
@@ -1,3 +1,4 @@
+from typing import List
from .Items import item_table, ShiversItem
from .Rules import set_rules
from BaseClasses import Item, Tutorial, Region, Location
@@ -22,7 +23,7 @@ class ShiversWorld(World):
Shivers is a horror themed point and click adventure. Explore the mysteries of Windlenot's Museum of the Strange and Unusual.
"""
- game: str = "Shivers"
+ game = "Shivers"
topology_present = False
web = ShiversWeb()
options_dataclass = ShiversOptions
@@ -30,7 +31,13 @@ class ShiversWorld(World):
item_name_to_id = {name: data.code for name, data in item_table.items()}
location_name_to_id = Constants.location_name_to_id
-
+ shivers_item_id_offset = 27000
+ pot_completed_list: List[int]
+
+
+ def generate_early(self):
+ self.pot_completed_list = []
+
def create_item(self, name: str) -> Item:
data = item_table[name]
return ShiversItem(name, data.classification, data.code, self.player)
@@ -78,9 +85,28 @@ def create_items(self) -> None:
#Add items to item pool
itempool = []
for name, data in item_table.items():
- if data.type in {"pot", "key", "ability", "filler2"}:
+ if data.type in {"key", "ability", "filler2"}:
itempool.append(self.create_item(name))
+ # Pot pieces/Completed/Mixed:
+ for i in range(10):
+ if self.options.full_pots == "pieces":
+ itempool.append(self.create_item(self.item_id_to_name[self.shivers_item_id_offset + i]))
+ itempool.append(self.create_item(self.item_id_to_name[self.shivers_item_id_offset + 10 + i]))
+ elif self.options.full_pots == "complete":
+ itempool.append(self.create_item(self.item_id_to_name[self.shivers_item_id_offset + 20 + i]))
+ else:
+ # Roll for if pieces or a complete pot will be used.
+ # Pot Pieces
+ if self.random.randint(0, 1) == 0:
+ self.pot_completed_list.append(0)
+ itempool.append(self.create_item(self.item_id_to_name[self.shivers_item_id_offset + i]))
+ itempool.append(self.create_item(self.item_id_to_name[self.shivers_item_id_offset + 10 + i]))
+ # Completed Pot
+ else:
+ self.pot_completed_list.append(1)
+ itempool.append(self.create_item(self.item_id_to_name[self.shivers_item_id_offset + 20 + i]))
+
#Add Filler
itempool += [self.create_item("Easier Lyre") for i in range(9)]
@@ -88,7 +114,6 @@ def create_items(self) -> None:
filler_needed = len(self.multiworld.get_unfilled_locations(self.player)) - 24 - len(itempool)
itempool += [self.random.choices([self.create_item("Heal"), self.create_item("Easier Lyre")], weights=[95, 5])[0] for i in range(filler_needed)]
-
#Place library escape items. Choose a location to place the escape item
library_region = self.multiworld.get_region("Library", self.player)
librarylocation = self.random.choice([loc for loc in library_region.locations if not loc.name.startswith("Accessible:")])
@@ -123,14 +148,14 @@ def create_items(self) -> None:
self.multiworld.itempool += itempool
#Lobby acess:
- if self.options.lobby_access == 1:
+ if self.options.lobby_access == "early":
if lobby_access_keys == 1:
self.multiworld.early_items[self.player]["Key for Underground Lake Room"] = 1
self.multiworld.early_items[self.player]["Key for Office Elevator"] = 1
self.multiworld.early_items[self.player]["Key for Office"] = 1
elif lobby_access_keys == 2:
self.multiworld.early_items[self.player]["Key for Front Door"] = 1
- if self.options.lobby_access == 2:
+ if self.options.lobby_access == "local":
if lobby_access_keys == 1:
self.multiworld.local_early_items[self.player]["Key for Underground Lake Room"] = 1
self.multiworld.local_early_items[self.player]["Key for Office Elevator"] = 1
@@ -138,6 +163,12 @@ def create_items(self) -> None:
elif lobby_access_keys == 2:
self.multiworld.local_early_items[self.player]["Key for Front Door"] = 1
+ #Pot piece shuffle location:
+ if self.options.location_pot_pieces == "own_world":
+ self.options.local_items.value |= {name for name, data in item_table.items() if data.type == "pot" or data.type == "pot_type2"}
+ if self.options.location_pot_pieces == "different_world":
+ self.options.non_local_items.value |= {name for name, data in item_table.items() if data.type == "pot" or data.type == "pot_type2"}
+
def pre_fill(self) -> None:
# Prefills event storage locations with duplicate pots
storagelocs = []
@@ -149,7 +180,23 @@ def pre_fill(self) -> None:
if loc_name.startswith("Accessible: "):
storagelocs.append(self.multiworld.get_location(loc_name, self.player))
- storageitems += [self.create_item(name) for name, data in item_table.items() if data.type == 'potduplicate']
+ #Pot pieces/Completed/Mixed:
+ if self.options.full_pots == "pieces":
+ storageitems += [self.create_item(name) for name, data in item_table.items() if data.type == 'potduplicate']
+ elif self.options.full_pots == "complete":
+ storageitems += [self.create_item(name) for name, data in item_table.items() if data.type == 'potduplicate_type2']
+ storageitems += [self.create_item("Empty") for i in range(10)]
+ else:
+ for i in range(10):
+ #Pieces
+ if self.pot_completed_list[i] == 0:
+ storageitems += [self.create_item(self.item_id_to_name[self.shivers_item_id_offset + 70 + i])]
+ storageitems += [self.create_item(self.item_id_to_name[self.shivers_item_id_offset + 80 + i])]
+ #Complete
+ else:
+ storageitems += [self.create_item(self.item_id_to_name[self.shivers_item_id_offset + 140 + i])]
+ storageitems += [self.create_item("Empty")]
+
storageitems += [self.create_item("Empty") for i in range(3)]
state = self.multiworld.get_all_state(True)
@@ -166,11 +213,13 @@ def pre_fill(self) -> None:
def fill_slot_data(self) -> dict:
return {
- "storageplacements": self.storage_placements,
- "excludedlocations": {str(excluded_location).replace('ExcludeLocations(', '').replace(')', '') for excluded_location in self.multiworld.exclude_locations.values()},
- "elevatorsstaysolved": {self.options.elevators_stay_solved.value},
- "earlybeth": {self.options.early_beth.value},
- "earlylightning": {self.options.early_lightning.value},
+ "StoragePlacements": self.storage_placements,
+ "ExcludedLocations": list(self.options.exclude_locations.value),
+ "IxupiCapturesNeeded": self.options.ixupi_captures_needed.value,
+ "ElevatorsStaySolved": self.options.elevators_stay_solved.value,
+ "EarlyBeth": self.options.early_beth.value,
+ "EarlyLightning": self.options.early_lightning.value,
+ "FrontDoorUsable": self.options.front_door_usable.value
}
diff --git a/worlds/shivers/data/locations.json b/worlds/shivers/data/locations.json
index 1d62f85d2d1c..64fe3647348d 100644
--- a/worlds/shivers/data/locations.json
+++ b/worlds/shivers/data/locations.json
@@ -81,7 +81,7 @@
"Information Plaque: (Ocean) Poseidon",
"Information Plaque: (Ocean) Colossus of Rhodes",
"Information Plaque: (Ocean) Poseidon's Temple",
- "Information Plaque: (Underground Maze) Subterranean World",
+ "Information Plaque: (Underground Maze Staircase) Subterranean World",
"Information Plaque: (Underground Maze) Dero",
"Information Plaque: (Egypt) Tomb of the Ixupi",
"Information Plaque: (Egypt) The Sphinx",
@@ -119,16 +119,6 @@
"Outside": [
"Puzzle Solved Gears",
"Puzzle Solved Stone Henge",
- "Ixupi Captured Water",
- "Ixupi Captured Wax",
- "Ixupi Captured Ash",
- "Ixupi Captured Oil",
- "Ixupi Captured Cloth",
- "Ixupi Captured Wood",
- "Ixupi Captured Crystal",
- "Ixupi Captured Sand",
- "Ixupi Captured Metal",
- "Ixupi Captured Lightning",
"Puzzle Solved Office Elevator",
"Puzzle Solved Three Floor Elevator",
"Puzzle Hint Found: Combo Lock in Mailbox",
@@ -182,7 +172,8 @@
"Accessible: Storage: Transforming Mask"
],
"Generator": [
- "Final Riddle: Beth's Body Page 17"
+ "Final Riddle: Beth's Body Page 17",
+ "Ixupi Captured Lightning"
],
"Theater Back Hallways": [
"Puzzle Solved Clock Tower Door"
@@ -210,6 +201,7 @@
"Information Plaque: (Ocean) Poseidon's Temple"
],
"Maze Staircase": [
+ "Information Plaque: (Underground Maze Staircase) Subterranean World",
"Puzzle Solved Maze Door"
],
"Egypt": [
@@ -305,7 +297,6 @@
],
"Tar River": [
"Accessible: Storage: Tar River",
- "Information Plaque: (Underground Maze) Subterranean World",
"Information Plaque: (Underground Maze) Dero"
],
"Theater": [
@@ -320,6 +311,33 @@
"Skull Dial Bridge": [
"Accessible: Storage: Skull Bridge",
"Puzzle Solved Skull Dial Door"
+ ],
+ "Water Capture": [
+ "Ixupi Captured Water"
+ ],
+ "Wax Capture": [
+ "Ixupi Captured Wax"
+ ],
+ "Ash Capture": [
+ "Ixupi Captured Ash"
+ ],
+ "Oil Capture": [
+ "Ixupi Captured Oil"
+ ],
+ "Cloth Capture": [
+ "Ixupi Captured Cloth"
+ ],
+ "Wood Capture": [
+ "Ixupi Captured Wood"
+ ],
+ "Crystal Capture": [
+ "Ixupi Captured Crystal"
+ ],
+ "Sand Capture": [
+ "Ixupi Captured Sand"
+ ],
+ "Metal Capture": [
+ "Ixupi Captured Metal"
]
}
-}
+}
diff --git a/worlds/shivers/data/regions.json b/worlds/shivers/data/regions.json
index 963d100faddb..aeb5aa737366 100644
--- a/worlds/shivers/data/regions.json
+++ b/worlds/shivers/data/regions.json
@@ -7,35 +7,35 @@
["Underground Lake", ["To Underground Tunnels From Underground Lake", "To Underground Blue Tunnels From Underground Lake"]],
["Underground Blue Tunnels", ["To Underground Lake From Underground Blue Tunnels", "To Office Elevator From Underground Blue Tunnels"]],
["Office Elevator", ["To Underground Blue Tunnels From Office Elevator","To Office From Office Elevator"]],
- ["Office", ["To Office Elevator From Office", "To Workshop", "To Lobby From Office", "To Bedroom Elevator From Office"]],
- ["Workshop", ["To Office From Workshop"]],
+ ["Office", ["To Office Elevator From Office", "To Workshop", "To Lobby From Office", "To Bedroom Elevator From Office", "To Ash Capture From Office"]],
+ ["Workshop", ["To Office From Workshop", "To Wood Capture From Workshop"]],
["Bedroom Elevator", ["To Office From Bedroom Elevator", "To Bedroom"]],
- ["Bedroom", ["To Bedroom Elevator From Bedroom"]],
- ["Lobby", ["To Office From Lobby", "To Library From Lobby", "To Theater From Lobby", "To Prehistoric From Lobby", "To Egypt From Lobby", "To Tar River From Lobby", "To Outside From Lobby"]],
- ["Library", ["To Lobby From Library", "To Maintenance Tunnels From Library"]],
+ ["Bedroom", ["To Bedroom Elevator From Bedroom", "To Metal Capture From Bedroom"]],
+ ["Lobby", ["To Office From Lobby", "To Library From Lobby", "To Theater From Lobby", "To Prehistoric From Lobby", "To Egypt From Lobby", "To Tar River From Lobby", "To Outside From Lobby", "To Water Capture From Lobby", "To Crystal Capture From Lobby"]],
+ ["Library", ["To Lobby From Library", "To Maintenance Tunnels From Library", "To Wax Capture From Library"]],
["Maintenance Tunnels", ["To Library From Maintenance Tunnels", "To Three Floor Elevator From Maintenance Tunnels", "To Generator"]],
["Generator", ["To Maintenance Tunnels From Generator"]],
["Theater", ["To Lobby From Theater", "To Theater Back Hallways From Theater"]],
["Theater Back Hallways", ["To Theater From Theater Back Hallways", "To Clock Tower Staircase From Theater Back Hallways", "To Maintenance Tunnels From Theater Back Hallways", "To Projector Room"]],
["Clock Tower Staircase", ["To Theater Back Hallways From Clock Tower Staircase", "To Clock Tower"]],
["Clock Tower", ["To Clock Tower Staircase From Clock Tower"]],
- ["Projector Room", ["To Theater Back Hallways From Projector Room"]],
- ["Prehistoric", ["To Lobby From Prehistoric", "To Greenhouse", "To Ocean From Prehistoric"]],
- ["Greenhouse", ["To Prehistoric From Greenhouse"]],
- ["Ocean", ["To Prehistoric From Ocean", "To Maze Staircase From Ocean"]],
+ ["Projector Room", ["To Theater Back Hallways From Projector Room", "To Metal Capture From Projector Room"]],
+ ["Prehistoric", ["To Lobby From Prehistoric", "To Greenhouse", "To Ocean From Prehistoric", "To Oil Capture From Prehistoric", "To Metal Capture From Prehistoric"]],
+ ["Greenhouse", ["To Prehistoric From Greenhouse", "To Sand Capture From Greenhouse"]],
+ ["Ocean", ["To Prehistoric From Ocean", "To Maze Staircase From Ocean", "To Crystal Capture From Ocean", "To Sand Capture From Ocean"]],
["Maze Staircase", ["To Ocean From Maze Staircase", "To Maze From Maze Staircase"]],
["Maze", ["To Maze Staircase From Maze", "To Tar River"]],
- ["Tar River", ["To Maze From Tar River", "To Lobby From Tar River"]],
- ["Egypt", ["To Lobby From Egypt", "To Burial From Egypt", "To Blue Maze From Egypt"]],
- ["Burial", ["To Egypt From Burial", "To Shaman From Burial"]],
- ["Shaman", ["To Burial From Shaman", "To Gods Room"]],
- ["Gods Room", ["To Shaman From Gods Room", "To Anansi From Gods Room"]],
- ["Anansi", ["To Gods Room From Anansi", "To Werewolf From Anansi"]],
+ ["Tar River", ["To Maze From Tar River", "To Lobby From Tar River", "To Oil Capture From Tar River"]],
+ ["Egypt", ["To Lobby From Egypt", "To Burial From Egypt", "To Blue Maze From Egypt", "To Cloth Capture From Egypt"]],
+ ["Burial", ["To Egypt From Burial", "To Shaman From Burial", "To Ash Capture From Burial", "To Cloth Capture From Burial"]],
+ ["Shaman", ["To Burial From Shaman", "To Gods Room", "To Wax Capture From Shaman"]],
+ ["Gods Room", ["To Shaman From Gods Room", "To Anansi From Gods Room", "To Wood Capture From Gods Room"]],
+ ["Anansi", ["To Gods Room From Anansi", "To Werewolf From Anansi", "To Wax Capture From Anansi", "To Wood Capture From Anansi"]],
["Werewolf", ["To Anansi From Werewolf", "To Night Staircase From Werewolf"]],
["Night Staircase", ["To Werewolf From Night Staircase", "To Janitor Closet", "To UFO"]],
- ["Janitor Closet", ["To Night Staircase From Janitor Closet"]],
+ ["Janitor Closet", ["To Night Staircase From Janitor Closet", "To Water Capture From Janitor Closet", "To Cloth Capture From Janitor Closet"]],
["UFO", ["To Night Staircase From UFO", "To Inventions From UFO"]],
- ["Blue Maze", ["To Egypt From Blue Maze", "To Three Floor Elevator From Blue Maze Bottom", "To Three Floor Elevator From Blue Maze Top", "To Fortune Teller", "To Inventions From Blue Maze"]],
+ ["Blue Maze", ["To Egypt From Blue Maze", "To Three Floor Elevator From Blue Maze Bottom", "To Three Floor Elevator From Blue Maze Top", "To Fortune Teller", "To Inventions From Blue Maze", "To Wood Capture From Blue Maze"]],
["Three Floor Elevator", ["To Maintenance Tunnels From Three Floor Elevator", "To Blue Maze From Three Floor Elevator"]],
["Fortune Teller", ["To Blue Maze From Fortune Teller"]],
["Inventions", ["To Blue Maze From Inventions", "To UFO From Inventions", "To Torture From Inventions"]],
@@ -43,7 +43,16 @@
["Puzzle Room Mastermind", ["To Torture", "To Puzzle Room Marbles From Puzzle Room Mastermind"]],
["Puzzle Room Marbles", ["To Puzzle Room Mastermind From Puzzle Room Marbles", "To Skull Dial Bridge From Puzzle Room Marbles"]],
["Skull Dial Bridge", ["To Puzzle Room Marbles From Skull Dial Bridge", "To Slide Room"]],
- ["Slide Room", ["To Skull Dial Bridge From Slide Room", "To Lobby From Slide Room"]]
+ ["Slide Room", ["To Skull Dial Bridge From Slide Room", "To Lobby From Slide Room"]],
+ ["Water Capture", []],
+ ["Wax Capture", []],
+ ["Ash Capture", []],
+ ["Oil Capture", []],
+ ["Cloth Capture", []],
+ ["Wood Capture", []],
+ ["Crystal Capture", []],
+ ["Sand Capture", []],
+ ["Metal Capture", []]
],
"mandatory_connections": [
["To Registry", "Registry"],
@@ -140,6 +149,29 @@
["To Puzzle Room Marbles From Skull Dial Bridge", "Puzzle Room Marbles"],
["To Skull Dial Bridge From Puzzle Room Marbles", "Skull Dial Bridge"],
["To Skull Dial Bridge From Slide Room", "Skull Dial Bridge"],
- ["To Slide Room", "Slide Room"]
+ ["To Slide Room", "Slide Room"],
+ ["To Wax Capture From Library", "Wax Capture"],
+ ["To Wax Capture From Shaman", "Wax Capture"],
+ ["To Wax Capture From Anansi", "Wax Capture"],
+ ["To Water Capture From Lobby", "Water Capture"],
+ ["To Water Capture From Janitor Closet", "Water Capture"],
+ ["To Ash Capture From Office", "Ash Capture"],
+ ["To Ash Capture From Burial", "Ash Capture"],
+ ["To Oil Capture From Prehistoric", "Oil Capture"],
+ ["To Oil Capture From Tar River", "Oil Capture"],
+ ["To Cloth Capture From Egypt", "Cloth Capture"],
+ ["To Cloth Capture From Burial", "Cloth Capture"],
+ ["To Cloth Capture From Janitor Closet", "Cloth Capture"],
+ ["To Wood Capture From Workshop", "Wood Capture"],
+ ["To Wood Capture From Gods Room", "Wood Capture"],
+ ["To Wood Capture From Anansi", "Wood Capture"],
+ ["To Wood Capture From Blue Maze", "Wood Capture"],
+ ["To Crystal Capture From Lobby", "Crystal Capture"],
+ ["To Crystal Capture From Ocean", "Crystal Capture"],
+ ["To Sand Capture From Greenhouse", "Sand Capture"],
+ ["To Sand Capture From Ocean", "Sand Capture"],
+ ["To Metal Capture From Bedroom", "Metal Capture"],
+ ["To Metal Capture From Projector Room", "Metal Capture"],
+ ["To Metal Capture From Prehistoric", "Metal Capture"]
]
-}
\ No newline at end of file
+}
diff --git a/worlds/shivers/docs/en_Shivers.md b/worlds/shivers/docs/en_Shivers.md
index a92f8a6b7911..2c56152a7a0c 100644
--- a/worlds/shivers/docs/en_Shivers.md
+++ b/worlds/shivers/docs/en_Shivers.md
@@ -12,8 +12,8 @@ these are randomized. Crawling has been added and is required to use any crawl s
## What is considered a location check in Shivers?
-1. All puzzle solves are location checks excluding elevator puzzles.
-2. All Ixupi captures are location checks excluding Lightning.
+1. All puzzle solves are location checks.
+2. All Ixupi captures are location checks.
3. Puzzle hints/solutions are location checks. For example, looking at the Atlantis map.
4. Optionally information plaques are location checks.
@@ -23,9 +23,9 @@ If the player receives a key then the corresponding door will be unlocked. If th
## What is the victory condition?
-Victory is achieved when the player captures Lightning in the generator room.
+Victory is achieved when the player has captured the required number Ixupi set in their options.
## Encountered a bug?
-Please contact GodlFire on Discord for bugs related to Shivers world generation.\
+Please contact GodlFire on Discord for bugs related to Shivers world generation.
Please contact GodlFire or mouse on Discord for bugs related to the Shivers Randomizer.
diff --git a/worlds/shivers/docs/setup_en.md b/worlds/shivers/docs/setup_en.md
index 187382ef643c..c53edcdf2b57 100644
--- a/worlds/shivers/docs/setup_en.md
+++ b/worlds/shivers/docs/setup_en.md
@@ -5,7 +5,7 @@
- [Shivers (GOG version)](https://www.gog.com/en/game/shivers) or original disc
- [ScummVM](https://www.scummvm.org/downloads/) version 2.7.0 or later
-- [Shivers Randomizer](https://www.speedrun.com/shivers/resources)
+- [Shivers Randomizer](https://github.com/GodlFire/Shivers-Randomizer-CSharp/releases/latest) Latest release version
## Setup ScummVM for Shivers
diff --git a/worlds/smz3/Options.py b/worlds/smz3/Options.py
index ada463fa3629..8c5efc431f5c 100644
--- a/worlds/smz3/Options.py
+++ b/worlds/smz3/Options.py
@@ -1,5 +1,5 @@
import typing
-from Options import Choice, Option, Toggle, DefaultOnToggle, Range
+from Options import Choice, Option, Toggle, DefaultOnToggle, Range, ItemsAccessibility
class SMLogic(Choice):
"""This option selects what kind of logic to use for item placement inside
@@ -128,6 +128,7 @@ class EnergyBeep(DefaultOnToggle):
smz3_options: typing.Dict[str, type(Option)] = {
+ "accessibility": ItemsAccessibility,
"sm_logic": SMLogic,
"sword_location": SwordLocation,
"morph_location": MorphLocation,
diff --git a/worlds/smz3/__init__.py b/worlds/smz3/__init__.py
index d78c9f7d8224..690e5172a25c 100644
--- a/worlds/smz3/__init__.py
+++ b/worlds/smz3/__init__.py
@@ -244,7 +244,7 @@ def set_rules(self):
set_rule(entrance, lambda state, region=region: region.CanEnter(state.smz3state[self.player]))
for loc in region.Locations:
l = self.locations[loc.Name]
- if self.multiworld.accessibility[self.player] != 'locations':
+ if self.multiworld.accessibility[self.player] != 'full':
l.always_allow = lambda state, item, loc=loc: \
item.game == "SMZ3" and \
loc.alwaysAllow(item.item, state.smz3state[self.player])
diff --git a/worlds/spire/Options.py b/worlds/spire/Options.py
index 76cbc4cf37ae..9c94756600d6 100644
--- a/worlds/spire/Options.py
+++ b/worlds/spire/Options.py
@@ -1,5 +1,7 @@
import typing
-from Options import TextChoice, Option, Range, Toggle
+from dataclasses import dataclass
+
+from Options import TextChoice, Range, Toggle, PerGameCommonOptions
class Character(TextChoice):
@@ -55,9 +57,18 @@ class Downfall(Toggle):
default = 0
-spire_options: typing.Dict[str, type(Option)] = {
- "character": Character,
- "ascension": Ascension,
- "final_act": FinalAct,
- "downfall": Downfall,
-}
+class DeathLink(Range):
+ """Percentage of health to lose when a death link is received."""
+ display_name = "Death Link %"
+ range_start = 0
+ range_end = 100
+ default = 0
+
+
+@dataclass
+class SpireOptions(PerGameCommonOptions):
+ character: Character
+ ascension: Ascension
+ final_act: FinalAct
+ downfall: Downfall
+ death_link: DeathLink
diff --git a/worlds/spire/__init__.py b/worlds/spire/__init__.py
index 5b0e1e17f23d..a0a6a794d8a9 100644
--- a/worlds/spire/__init__.py
+++ b/worlds/spire/__init__.py
@@ -3,7 +3,7 @@
from BaseClasses import Entrance, Item, ItemClassification, Location, MultiWorld, Region, Tutorial
from .Items import event_item_pairs, item_pool, item_table
from .Locations import location_table
-from .Options import spire_options
+from .Options import SpireOptions
from .Regions import create_regions
from .Rules import set_rules
from ..AutoWorld import WebWorld, World
@@ -27,7 +27,8 @@ class SpireWorld(World):
immense power, and Slay the Spire!
"""
- option_definitions = spire_options
+ options_dataclass = SpireOptions
+ options: SpireOptions
game = "Slay the Spire"
topology_present = False
web = SpireWeb()
@@ -63,15 +64,13 @@ def create_regions(self):
def fill_slot_data(self) -> dict:
slot_data = {
- 'seed': "".join(self.multiworld.per_slot_randoms[self.player].choice(string.ascii_letters) for i in range(16))
+ 'seed': "".join(self.random.choice(string.ascii_letters) for i in range(16))
}
- for option_name in spire_options:
- option = getattr(self.multiworld, option_name)[self.player]
- slot_data[option_name] = option.value
+ slot_data.update(self.options.as_dict("character", "ascension", "final_act", "downfall", "death_link"))
return slot_data
def get_filler_item_name(self) -> str:
- return self.multiworld.random.choice(["Card Draw", "Card Draw", "Card Draw", "Relic", "Relic"])
+ return self.random.choice(["Card Draw", "Card Draw", "Card Draw", "Relic", "Relic"])
def create_region(world: MultiWorld, player: int, name: str, locations=None, exits=None):
diff --git a/worlds/stardew_valley/presets.py b/worlds/stardew_valley/presets.py
index e663241ac6af..cf6f87a1501c 100644
--- a/worlds/stardew_valley/presets.py
+++ b/worlds/stardew_valley/presets.py
@@ -58,7 +58,7 @@
easy_settings = {
"progression_balancing": ProgressionBalancing.default,
- "accessibility": Accessibility.option_items,
+ "accessibility": Accessibility.option_full,
Goal.internal_name: Goal.option_community_center,
FarmType.internal_name: "random",
StartingMoney.internal_name: "very rich",
@@ -104,7 +104,7 @@
medium_settings = {
"progression_balancing": 25,
- "accessibility": Accessibility.option_locations,
+ "accessibility": Accessibility.option_full,
Goal.internal_name: Goal.option_community_center,
FarmType.internal_name: "random",
StartingMoney.internal_name: "rich",
@@ -150,7 +150,7 @@
hard_settings = {
"progression_balancing": 0,
- "accessibility": Accessibility.option_locations,
+ "accessibility": Accessibility.option_full,
Goal.internal_name: Goal.option_grandpa_evaluation,
FarmType.internal_name: "random",
StartingMoney.internal_name: "extra",
@@ -196,7 +196,7 @@
nightmare_settings = {
"progression_balancing": 0,
- "accessibility": Accessibility.option_locations,
+ "accessibility": Accessibility.option_full,
Goal.internal_name: Goal.option_community_center,
FarmType.internal_name: "random",
StartingMoney.internal_name: "vanilla",
@@ -242,7 +242,7 @@
short_settings = {
"progression_balancing": ProgressionBalancing.default,
- "accessibility": Accessibility.option_items,
+ "accessibility": Accessibility.option_full,
Goal.internal_name: Goal.option_bottom_of_the_mines,
FarmType.internal_name: "random",
StartingMoney.internal_name: "filthy rich",
@@ -334,7 +334,7 @@
allsanity_settings = {
"progression_balancing": ProgressionBalancing.default,
- "accessibility": Accessibility.option_locations,
+ "accessibility": Accessibility.option_full,
Goal.internal_name: Goal.default,
FarmType.internal_name: "random",
StartingMoney.internal_name: StartingMoney.default,
diff --git a/worlds/stardew_valley/test/__init__.py b/worlds/stardew_valley/test/__init__.py
index d077432e24ae..7e82ea91e434 100644
--- a/worlds/stardew_valley/test/__init__.py
+++ b/worlds/stardew_valley/test/__init__.py
@@ -6,7 +6,7 @@
from contextlib import contextmanager
from typing import Dict, ClassVar, Iterable, Tuple, Optional, List, Union, Any
-from BaseClasses import MultiWorld, CollectionState, get_seed, Location, Item, ItemClassification
+from BaseClasses import MultiWorld, CollectionState, PlandoOptions, get_seed, Location, Item, ItemClassification
from Options import VerifyKeys
from test.bases import WorldTestBase
from test.general import gen_steps, setup_solo_multiworld as setup_base_solo_multiworld
@@ -365,7 +365,7 @@ def setup_solo_multiworld(test_options: Optional[Dict[Union[str, StardewValleyOp
if issubclass(option, VerifyKeys):
# Values should already be verified, but just in case...
- option.verify_keys(value.value)
+ value.verify(StardewValleyWorld, "Tester", PlandoOptions.bosses)
setattr(args, name, {1: value})
multiworld.set_options(args)
diff --git a/worlds/timespinner/Locations.py b/worlds/timespinner/Locations.py
index 7b378b4637fa..86839f0f2167 100644
--- a/worlds/timespinner/Locations.py
+++ b/worlds/timespinner/Locations.py
@@ -1,6 +1,6 @@
from typing import List, Optional, Callable, NamedTuple
-from BaseClasses import MultiWorld, CollectionState
-from .Options import is_option_enabled
+from BaseClasses import CollectionState
+from .Options import TimespinnerOptions
from .PreCalculatedWeights import PreCalculatedWeights
from .LogicExtensions import TimespinnerLogic
@@ -14,11 +14,10 @@ class LocationData(NamedTuple):
rule: Optional[Callable[[CollectionState], bool]] = None
-def get_location_datas(world: Optional[MultiWorld], player: Optional[int],
- precalculated_weights: PreCalculatedWeights) -> List[LocationData]:
-
- flooded: PreCalculatedWeights = precalculated_weights
- logic = TimespinnerLogic(world, player, precalculated_weights)
+def get_location_datas(player: Optional[int], options: Optional[TimespinnerOptions],
+ precalculated_weights: Optional[PreCalculatedWeights]) -> List[LocationData]:
+ flooded: Optional[PreCalculatedWeights] = precalculated_weights
+ logic = TimespinnerLogic(player, options, precalculated_weights)
# 1337000 - 1337155 Generic locations
# 1337171 - 1337175 New Pickup checks
@@ -203,7 +202,7 @@ def get_location_datas(world: Optional[MultiWorld], player: Optional[int],
]
# 1337156 - 1337170 Downloads
- if not world or is_option_enabled(world, player, "DownloadableItems"):
+ if not options or options.downloadable_items:
location_table += (
LocationData('Library', 'Library: Terminal 2 (Lachiem)', 1337156, lambda state: state.has('Tablet', player)),
LocationData('Library', 'Library: Terminal 1 (Windaria)', 1337157, lambda state: state.has('Tablet', player)),
@@ -223,13 +222,13 @@ def get_location_datas(world: Optional[MultiWorld], player: Optional[int],
)
# 1337176 - 1337176 Cantoran
- if not world or is_option_enabled(world, player, "Cantoran"):
+ if not options or options.cantoran:
location_table += (
LocationData('Left Side forest Caves', 'Lake Serene: Cantoran', 1337176),
)
# 1337177 - 1337198 Lore Checks
- if not world or is_option_enabled(world, player, "LoreChecks"):
+ if not options or options.lore_checks:
location_table += (
LocationData('Lower lake desolation', 'Lake Desolation: Memory - Coyote Jump (Time Messenger)', 1337177),
LocationData('Library', 'Library: Memory - Waterway (A Message)', 1337178),
@@ -258,7 +257,7 @@ def get_location_datas(world: Optional[MultiWorld], player: Optional[int],
# 1337199 - 1337236 Reserved for future use
# 1337237 - 1337245 GyreArchives
- if not world or is_option_enabled(world, player, "GyreArchives"):
+ if not options or options.gyre_archives:
location_table += (
LocationData('Ravenlord\'s Lair', 'Ravenlord: Post fight (pedestal)', 1337237),
LocationData('Ifrit\'s Lair', 'Ifrit: Post fight (pedestal)', 1337238),
diff --git a/worlds/timespinner/LogicExtensions.py b/worlds/timespinner/LogicExtensions.py
index d316a936b02f..6c9cb3f684a0 100644
--- a/worlds/timespinner/LogicExtensions.py
+++ b/worlds/timespinner/LogicExtensions.py
@@ -1,6 +1,6 @@
-from typing import Union
-from BaseClasses import MultiWorld, CollectionState
-from .Options import is_option_enabled
+from typing import Union, Optional
+from BaseClasses import CollectionState
+from .Options import TimespinnerOptions
from .PreCalculatedWeights import PreCalculatedWeights
@@ -10,17 +10,18 @@ class TimespinnerLogic:
flag_unchained_keys: bool
flag_eye_spy: bool
flag_specific_keycards: bool
- pyramid_keys_unlock: Union[str, None]
- present_keys_unlock: Union[str, None]
- past_keys_unlock: Union[str, None]
- time_keys_unlock: Union[str, None]
+ pyramid_keys_unlock: Optional[str]
+ present_keys_unlock: Optional[str]
+ past_keys_unlock: Optional[str]
+ time_keys_unlock: Optional[str]
- def __init__(self, world: MultiWorld, player: int, precalculated_weights: PreCalculatedWeights):
+ def __init__(self, player: int, options: Optional[TimespinnerOptions],
+ precalculated_weights: Optional[PreCalculatedWeights]):
self.player = player
- self.flag_specific_keycards = is_option_enabled(world, player, "SpecificKeycards")
- self.flag_eye_spy = is_option_enabled(world, player, "EyeSpy")
- self.flag_unchained_keys = is_option_enabled(world, player, "UnchainedKeys")
+ self.flag_specific_keycards = bool(options and options.specific_keycards)
+ self.flag_eye_spy = bool(options and options.eye_spy)
+ self.flag_unchained_keys = bool(options and options.unchained_keys)
if precalculated_weights:
if self.flag_unchained_keys:
diff --git a/worlds/timespinner/Options.py b/worlds/timespinner/Options.py
index f7921fcb81e0..20ad8132c45f 100644
--- a/worlds/timespinner/Options.py
+++ b/worlds/timespinner/Options.py
@@ -1,59 +1,50 @@
-from typing import Dict, Union, List
-from BaseClasses import MultiWorld
-from Options import Toggle, DefaultOnToggle, DeathLink, Choice, Range, Option, OptionDict, OptionList
+from dataclasses import dataclass
+from typing import Type, Any
+from typing import Dict
+from Options import Toggle, DefaultOnToggle, DeathLink, Choice, Range, OptionDict, OptionList, Visibility, Option
+from Options import PerGameCommonOptions, DeathLinkMixin, AssembleOptions
from schema import Schema, And, Optional, Or
-
class StartWithJewelryBox(Toggle):
"Start with Jewelry Box unlocked"
display_name = "Start with Jewelry Box"
-
class DownloadableItems(DefaultOnToggle):
"With the tablet you will be able to download items at terminals"
display_name = "Downloadable items"
-
class EyeSpy(Toggle):
"Requires Oculus Ring in inventory to be able to break hidden walls."
display_name = "Eye Spy"
-
class StartWithMeyef(Toggle):
"Start with Meyef, ideal for when you want to play multiplayer."
display_name = "Start with Meyef"
-
class QuickSeed(Toggle):
"Start with Talaria Attachment, Nyoom!"
display_name = "Quick seed"
-
class SpecificKeycards(Toggle):
"Keycards can only open corresponding doors"
display_name = "Specific Keycards"
-
class Inverted(Toggle):
"Start in the past"
display_name = "Inverted"
-
class GyreArchives(Toggle):
"Gyre locations are in logic. New warps are gated by Merchant Crow and Kobo"
display_name = "Gyre Archives"
-
class Cantoran(Toggle):
"Cantoran's fight and check are available upon revisiting his room"
display_name = "Cantoran"
-
class LoreChecks(Toggle):
"Memories and journal entries contain items."
display_name = "Lore Checks"
-
class BossRando(Choice):
"Wheter all boss locations are shuffled, and if their damage/hp should be scaled."
display_name = "Boss Randomization"
@@ -62,7 +53,6 @@ class BossRando(Choice):
option_unscaled = 2
alias_true = 1
-
class EnemyRando(Choice):
"Wheter enemies will be randomized, and if their damage/hp should be scaled."
display_name = "Enemy Randomization"
@@ -72,7 +62,6 @@ class EnemyRando(Choice):
option_ryshia = 3
alias_true = 1
-
class DamageRando(Choice):
"Randomly nerfs and buffs some orbs and their associated spells as well as some associated rings."
display_name = "Damage Rando"
@@ -85,7 +74,6 @@ class DamageRando(Choice):
option_manual = 6
alias_true = 2
-
class DamageRandoOverrides(OptionDict):
"""Manual +/-/normal odds for an orb. Put 0 if you don't want a certain nerf or buff to be a possibility. Orbs that
you don't specify will roll with 1/1/1 as odds"""
@@ -191,7 +179,6 @@ class DamageRandoOverrides(OptionDict):
"Radiant": { "MinusOdds": 1, "NormalOdds": 1, "PlusOdds": 1 },
}
-
class HpCap(Range):
"Sets the number that Lunais's HP maxes out at."
display_name = "HP Cap"
@@ -199,7 +186,6 @@ class HpCap(Range):
range_end = 999
default = 999
-
class LevelCap(Range):
"""Sets the max level Lunais can achieve."""
display_name = "Level Cap"
@@ -207,20 +193,17 @@ class LevelCap(Range):
range_end = 99
default = 99
-
class ExtraEarringsXP(Range):
"""Adds additional XP granted by Galaxy Earrings."""
display_name = "Extra Earrings XP"
range_start = 0
range_end = 24
default = 0
-
class BossHealing(DefaultOnToggle):
"Enables/disables healing after boss fights. NOTE: Currently only applicable when Boss Rando is enabled."
display_name = "Heal After Bosses"
-
class ShopFill(Choice):
"""Sets the items for sale in Merchant Crow's shops.
Default: No sunglasses or trendy jacket, but sand vials for sale.
@@ -233,12 +216,10 @@ class ShopFill(Choice):
option_vanilla = 2
option_empty = 3
-
class ShopWarpShards(DefaultOnToggle):
"Shops always sell warp shards (when keys possessed), ignoring inventory setting."
display_name = "Always Sell Warp Shards"
-
class ShopMultiplier(Range):
"Multiplier for the cost of items in the shop. Set to 0 for free shops."
display_name = "Shop Price Multiplier"
@@ -246,7 +227,6 @@ class ShopMultiplier(Range):
range_end = 10
default = 1
-
class LootPool(Choice):
"""Sets the items that drop from enemies (does not apply to boss reward checks)
Vanilla: Drops are the same as the base game
@@ -257,7 +237,6 @@ class LootPool(Choice):
option_randomized = 1
option_empty = 2
-
class DropRateCategory(Choice):
"""Sets the drop rate when 'Loot Pool' is set to 'Random'
Tiered: Based on item rarity/value
@@ -271,7 +250,6 @@ class DropRateCategory(Choice):
option_randomized = 2
option_fixed = 3
-
class FixedDropRate(Range):
"Base drop rate percentage when 'Drop Rate Category' is set to 'Fixed'"
display_name = "Fixed Drop Rate"
@@ -279,7 +257,6 @@ class FixedDropRate(Range):
range_end = 100
default = 5
-
class LootTierDistro(Choice):
"""Sets how often items of each rarity tier are placed when 'Loot Pool' is set to 'Random'
Default Weight: Rarer items will be assigned to enemy drop slots less frequently than common items
@@ -291,32 +268,26 @@ class LootTierDistro(Choice):
option_full_random = 1
option_inverted_weight = 2
-
class ShowBestiary(Toggle):
"All entries in the bestiary are visible, without needing to kill one of a given enemy first"
display_name = "Show Bestiary Entries"
-
class ShowDrops(Toggle):
"All item drops in the bestiary are visible, without needing an enemy to drop one of a given item first"
display_name = "Show Bestiary Item Drops"
-
class EnterSandman(Toggle):
"The Ancient Pyramid is unlocked by the Twin Pyramid Keys, but the final boss door opens if you have all 5 Timespinner pieces"
display_name = "Enter Sandman"
-
class DadPercent(Toggle):
"""The win condition is beating the boss of Emperor's Tower"""
display_name = "Dad Percent"
-
class RisingTides(Toggle):
"""Random areas are flooded or drained, can be further specified with RisingTidesOverrides"""
display_name = "Rising Tides"
-
def rising_tide_option(location: str, with_save_point_option: bool = False) -> Dict[Optional, Or]:
if with_save_point_option:
return {
@@ -341,7 +312,6 @@ def rising_tide_option(location: str, with_save_point_option: bool = False) -> D
"Flooded")
}
-
class RisingTidesOverrides(OptionDict):
"""Odds for specific areas to be flooded or drained, only has effect when RisingTides is on.
Areas that are not specified will roll with the default 33% chance of getting flooded or drained"""
@@ -373,13 +343,11 @@ class RisingTidesOverrides(OptionDict):
"Lab": { "Dry": 67, "Flooded": 33 },
}
-
class UnchainedKeys(Toggle):
"""Start with Twin Pyramid Key, which does not give free warp;
warp items for Past, Present, (and ??? with Enter Sandman) can be found."""
display_name = "Unchained Keys"
-
class TrapChance(Range):
"""Chance of traps in the item pool.
Traps will only replace filler items such as potions, vials and antidotes"""
@@ -388,67 +356,256 @@ class TrapChance(Range):
range_end = 100
default = 10
-
class Traps(OptionList):
"""List of traps that may be in the item pool to find"""
display_name = "Traps Types"
valid_keys = { "Meteor Sparrow Trap", "Poison Trap", "Chaos Trap", "Neurotoxin Trap", "Bee Trap" }
default = [ "Meteor Sparrow Trap", "Poison Trap", "Chaos Trap", "Neurotoxin Trap", "Bee Trap" ]
-
class PresentAccessWithWheelAndSpindle(Toggle):
"""When inverted, allows using the refugee camp warp when both the Timespinner Wheel and Spindle is acquired."""
- display_name = "Past Wheel & Spindle Warp"
-
-
-# Some options that are available in the timespinner randomizer arent currently implemented
-timespinner_options: Dict[str, Option] = {
- "StartWithJewelryBox": StartWithJewelryBox,
- "DownloadableItems": DownloadableItems,
- "EyeSpy": EyeSpy,
- "StartWithMeyef": StartWithMeyef,
- "QuickSeed": QuickSeed,
- "SpecificKeycards": SpecificKeycards,
- "Inverted": Inverted,
- "GyreArchives": GyreArchives,
- "Cantoran": Cantoran,
- "LoreChecks": LoreChecks,
- "BossRando": BossRando,
- "EnemyRando": EnemyRando,
- "DamageRando": DamageRando,
- "DamageRandoOverrides": DamageRandoOverrides,
- "HpCap": HpCap,
- "LevelCap": LevelCap,
- "ExtraEarringsXP": ExtraEarringsXP,
- "BossHealing": BossHealing,
- "ShopFill": ShopFill,
- "ShopWarpShards": ShopWarpShards,
- "ShopMultiplier": ShopMultiplier,
- "LootPool": LootPool,
- "DropRateCategory": DropRateCategory,
- "FixedDropRate": FixedDropRate,
- "LootTierDistro": LootTierDistro,
- "ShowBestiary": ShowBestiary,
- "ShowDrops": ShowDrops,
- "EnterSandman": EnterSandman,
- "DadPercent": DadPercent,
- "RisingTides": RisingTides,
- "RisingTidesOverrides": RisingTidesOverrides,
- "UnchainedKeys": UnchainedKeys,
- "TrapChance": TrapChance,
- "Traps": Traps,
- "PresentAccessWithWheelAndSpindle": PresentAccessWithWheelAndSpindle,
- "DeathLink": DeathLink,
-}
-
-
-def is_option_enabled(world: MultiWorld, player: int, name: str) -> bool:
- return get_option_value(world, player, name) > 0
-
-
-def get_option_value(world: MultiWorld, player: int, name: str) -> Union[int, Dict, List]:
- option = getattr(world, name, None)
- if option == None:
- return 0
-
- return option[player].value
+ display_name = "Back to the future"
+
+@dataclass
+class TimespinnerOptions(PerGameCommonOptions, DeathLinkMixin):
+ start_with_jewelry_box: StartWithJewelryBox
+ downloadable_items: DownloadableItems
+ eye_spy: EyeSpy
+ start_with_meyef: StartWithMeyef
+ quick_seed: QuickSeed
+ specific_keycards: SpecificKeycards
+ inverted: Inverted
+ gyre_archives: GyreArchives
+ cantoran: Cantoran
+ lore_checks: LoreChecks
+ boss_rando: BossRando
+ damage_rando: DamageRando
+ damage_rando_overrides: DamageRandoOverrides
+ hp_cap: HpCap
+ level_cap: LevelCap
+ extra_earrings_xp: ExtraEarringsXP
+ boss_healing: BossHealing
+ shop_fill: ShopFill
+ shop_warp_shards: ShopWarpShards
+ shop_multiplier: ShopMultiplier
+ loot_pool: LootPool
+ drop_rate_category: DropRateCategory
+ fixed_drop_rate: FixedDropRate
+ loot_tier_distro: LootTierDistro
+ show_bestiary: ShowBestiary
+ show_drops: ShowDrops
+ enter_sandman: EnterSandman
+ dad_percent: DadPercent
+ rising_tides: RisingTides
+ rising_tides_overrides: RisingTidesOverrides
+ unchained_keys: UnchainedKeys
+ back_to_the_future: PresentAccessWithWheelAndSpindle
+ trap_chance: TrapChance
+ traps: Traps
+
+class HiddenDamageRandoOverrides(DamageRandoOverrides):
+ """Manual +/-/normal odds for an orb. Put 0 if you don't want a certain nerf or buff to be a possibility. Orbs that
+ you don't specify will roll with 1/1/1 as odds"""
+ visibility = Visibility.none
+
+class HiddenRisingTidesOverrides(RisingTidesOverrides):
+ """Odds for specific areas to be flooded or drained, only has effect when RisingTides is on.
+ Areas that are not specified will roll with the default 33% chance of getting flooded or drained"""
+ visibility = Visibility.none
+
+class HiddenTraps(Traps):
+ """List of traps that may be in the item pool to find"""
+ visibility = Visibility.none
+
+class OptionsHider:
+ @classmethod
+ def hidden(cls, option: Type[Option[Any]]) -> Type[Option]:
+ new_option = AssembleOptions(f"{option}Hidden", option.__bases__, vars(option).copy())
+ new_option.visibility = Visibility.none
+ new_option.__doc__ = option.__doc__
+ return new_option
+
+class HasReplacedCamelCase(Toggle):
+ """For internal use will display a warning message if true"""
+ visibility = Visibility.none
+
+@dataclass
+class BackwardsCompatiableTimespinnerOptions(TimespinnerOptions):
+ StartWithJewelryBox: OptionsHider.hidden(StartWithJewelryBox) # type: ignore
+ DownloadableItems: OptionsHider.hidden(DownloadableItems) # type: ignore
+ EyeSpy: OptionsHider.hidden(EyeSpy) # type: ignore
+ StartWithMeyef: OptionsHider.hidden(StartWithMeyef) # type: ignore
+ QuickSeed: OptionsHider.hidden(QuickSeed) # type: ignore
+ SpecificKeycards: OptionsHider.hidden(SpecificKeycards) # type: ignore
+ Inverted: OptionsHider.hidden(Inverted) # type: ignore
+ GyreArchives: OptionsHider.hidden(GyreArchives) # type: ignore
+ Cantoran: OptionsHider.hidden(Cantoran) # type: ignore
+ LoreChecks: OptionsHider.hidden(LoreChecks) # type: ignore
+ BossRando: OptionsHider.hidden(BossRando) # type: ignore
+ DamageRando: OptionsHider.hidden(DamageRando) # type: ignore
+ DamageRandoOverrides: HiddenDamageRandoOverrides
+ HpCap: OptionsHider.hidden(HpCap) # type: ignore
+ LevelCap: OptionsHider.hidden(LevelCap) # type: ignore
+ ExtraEarringsXP: OptionsHider.hidden(ExtraEarringsXP) # type: ignore
+ BossHealing: OptionsHider.hidden(BossHealing) # type: ignore
+ ShopFill: OptionsHider.hidden(ShopFill) # type: ignore
+ ShopWarpShards: OptionsHider.hidden(ShopWarpShards) # type: ignore
+ ShopMultiplier: OptionsHider.hidden(ShopMultiplier) # type: ignore
+ LootPool: OptionsHider.hidden(LootPool) # type: ignore
+ DropRateCategory: OptionsHider.hidden(DropRateCategory) # type: ignore
+ FixedDropRate: OptionsHider.hidden(FixedDropRate) # type: ignore
+ LootTierDistro: OptionsHider.hidden(LootTierDistro) # type: ignore
+ ShowBestiary: OptionsHider.hidden(ShowBestiary) # type: ignore
+ ShowDrops: OptionsHider.hidden(ShowDrops) # type: ignore
+ EnterSandman: OptionsHider.hidden(EnterSandman) # type: ignore
+ DadPercent: OptionsHider.hidden(DadPercent) # type: ignore
+ RisingTides: OptionsHider.hidden(RisingTides) # type: ignore
+ RisingTidesOverrides: HiddenRisingTidesOverrides
+ UnchainedKeys: OptionsHider.hidden(UnchainedKeys) # type: ignore
+ PresentAccessWithWheelAndSpindle: OptionsHider.hidden(PresentAccessWithWheelAndSpindle) # type: ignore
+ TrapChance: OptionsHider.hidden(TrapChance) # type: ignore
+ Traps: HiddenTraps # type: ignore
+ DeathLink: OptionsHider.hidden(DeathLink) # type: ignore
+ has_replaced_options: HasReplacedCamelCase
+
+ def handle_backward_compatibility(self) -> None:
+ if self.StartWithJewelryBox != StartWithJewelryBox.default and \
+ self.start_with_jewelry_box == StartWithJewelryBox.default:
+ self.start_with_jewelry_box.value = self.StartWithJewelryBox.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.DownloadableItems != DownloadableItems.default and \
+ self.downloadable_items == DownloadableItems.default:
+ self.downloadable_items.value = self.DownloadableItems.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.EyeSpy != EyeSpy.default and \
+ self.eye_spy == EyeSpy.default:
+ self.eye_spy.value = self.EyeSpy.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.StartWithMeyef != StartWithMeyef.default and \
+ self.start_with_meyef == StartWithMeyef.default:
+ self.start_with_meyef.value = self.StartWithMeyef.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.QuickSeed != QuickSeed.default and \
+ self.quick_seed == QuickSeed.default:
+ self.quick_seed.value = self.QuickSeed.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.SpecificKeycards != SpecificKeycards.default and \
+ self.specific_keycards == SpecificKeycards.default:
+ self.specific_keycards.value = self.SpecificKeycards.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.Inverted != Inverted.default and \
+ self.inverted == Inverted.default:
+ self.inverted.value = self.Inverted.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.GyreArchives != GyreArchives.default and \
+ self.gyre_archives == GyreArchives.default:
+ self.gyre_archives.value = self.GyreArchives.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.Cantoran != Cantoran.default and \
+ self.cantoran == Cantoran.default:
+ self.cantoran.value = self.Cantoran.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.LoreChecks != LoreChecks.default and \
+ self.lore_checks == LoreChecks.default:
+ self.lore_checks.value = self.LoreChecks.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.BossRando != BossRando.default and \
+ self.boss_rando == BossRando.default:
+ self.boss_rando.value = self.BossRando.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.DamageRando != DamageRando.default and \
+ self.damage_rando == DamageRando.default:
+ self.damage_rando.value = self.DamageRando.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.DamageRandoOverrides != DamageRandoOverrides.default and \
+ self.damage_rando_overrides == DamageRandoOverrides.default:
+ self.damage_rando_overrides.value = self.DamageRandoOverrides.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.HpCap != HpCap.default and \
+ self.hp_cap == HpCap.default:
+ self.hp_cap.value = self.HpCap.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.LevelCap != LevelCap.default and \
+ self.level_cap == LevelCap.default:
+ self.level_cap.value = self.LevelCap.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.ExtraEarringsXP != ExtraEarringsXP.default and \
+ self.extra_earrings_xp == ExtraEarringsXP.default:
+ self.extra_earrings_xp.value = self.ExtraEarringsXP.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.BossHealing != BossHealing.default and \
+ self.boss_healing == BossHealing.default:
+ self.boss_healing.value = self.BossHealing.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.ShopFill != ShopFill.default and \
+ self.shop_fill == ShopFill.default:
+ self.shop_fill.value = self.ShopFill.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.ShopWarpShards != ShopWarpShards.default and \
+ self.shop_warp_shards == ShopWarpShards.default:
+ self.shop_warp_shards.value = self.ShopWarpShards.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.ShopMultiplier != ShopMultiplier.default and \
+ self.shop_multiplier == ShopMultiplier.default:
+ self.shop_multiplier.value = self.ShopMultiplier.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.LootPool != LootPool.default and \
+ self.loot_pool == LootPool.default:
+ self.loot_pool.value = self.LootPool.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.DropRateCategory != DropRateCategory.default and \
+ self.drop_rate_category == DropRateCategory.default:
+ self.drop_rate_category.value = self.DropRateCategory.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.FixedDropRate != FixedDropRate.default and \
+ self.fixed_drop_rate == FixedDropRate.default:
+ self.fixed_drop_rate.value = self.FixedDropRate.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.LootTierDistro != LootTierDistro.default and \
+ self.loot_tier_distro == LootTierDistro.default:
+ self.loot_tier_distro.value = self.LootTierDistro.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.ShowBestiary != ShowBestiary.default and \
+ self.show_bestiary == ShowBestiary.default:
+ self.show_bestiary.value = self.ShowBestiary.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.ShowDrops != ShowDrops.default and \
+ self.show_drops == ShowDrops.default:
+ self.show_drops.value = self.ShowDrops.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.EnterSandman != EnterSandman.default and \
+ self.enter_sandman == EnterSandman.default:
+ self.enter_sandman.value = self.EnterSandman.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.DadPercent != DadPercent.default and \
+ self.dad_percent == DadPercent.default:
+ self.dad_percent.value = self.DadPercent.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.RisingTides != RisingTides.default and \
+ self.rising_tides == RisingTides.default:
+ self.rising_tides.value = self.RisingTides.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.RisingTidesOverrides != RisingTidesOverrides.default and \
+ self.rising_tides_overrides == RisingTidesOverrides.default:
+ self.rising_tides_overrides.value = self.RisingTidesOverrides.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.UnchainedKeys != UnchainedKeys.default and \
+ self.unchained_keys == UnchainedKeys.default:
+ self.unchained_keys.value = self.UnchainedKeys.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.PresentAccessWithWheelAndSpindle != PresentAccessWithWheelAndSpindle.default and \
+ self.back_to_the_future == PresentAccessWithWheelAndSpindle.default:
+ self.back_to_the_future.value = self.PresentAccessWithWheelAndSpindle.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.TrapChance != TrapChance.default and \
+ self.trap_chance == TrapChance.default:
+ self.trap_chance.value = self.TrapChance.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.Traps != Traps.default and \
+ self.traps == Traps.default:
+ self.traps.value = self.Traps.value
+ self.has_replaced_options.value = Toggle.option_true
+ if self.DeathLink != DeathLink.default and \
+ self.death_link == DeathLink.default:
+ self.death_link.value = self.DeathLink.value
+ self.has_replaced_options.value = Toggle.option_true
diff --git a/worlds/timespinner/PreCalculatedWeights.py b/worlds/timespinner/PreCalculatedWeights.py
index ff7f031d3b67..c9d80d7a709d 100644
--- a/worlds/timespinner/PreCalculatedWeights.py
+++ b/worlds/timespinner/PreCalculatedWeights.py
@@ -1,6 +1,6 @@
from typing import Tuple, Dict, Union, List
-from BaseClasses import MultiWorld
-from .Options import timespinner_options, is_option_enabled, get_option_value
+from random import Random
+from .Options import TimespinnerOptions
class PreCalculatedWeights:
pyramid_keys_unlock: str
@@ -21,22 +21,22 @@ class PreCalculatedWeights:
flood_lake_serene_bridge: bool
flood_lab: bool
- def __init__(self, world: MultiWorld, player: int):
- if world and is_option_enabled(world, player, "RisingTides"):
- weights_overrrides: Dict[str, Union[str, Dict[str, int]]] = self.get_flood_weights_overrides(world, player)
+ def __init__(self, options: TimespinnerOptions, random: Random):
+ if options.rising_tides:
+ weights_overrrides: Dict[str, Union[str, Dict[str, int]]] = self.get_flood_weights_overrides(options)
self.flood_basement, self.flood_basement_high = \
- self.roll_flood_setting(world, player, weights_overrrides, "CastleBasement")
- self.flood_xarion, _ = self.roll_flood_setting(world, player, weights_overrrides, "Xarion")
- self.flood_maw, _ = self.roll_flood_setting(world, player, weights_overrrides, "Maw")
- self.flood_pyramid_shaft, _ = self.roll_flood_setting(world, player, weights_overrrides, "AncientPyramidShaft")
- self.flood_pyramid_back, _ = self.roll_flood_setting(world, player, weights_overrrides, "Sandman")
- self.flood_moat, _ = self.roll_flood_setting(world, player, weights_overrrides, "CastleMoat")
- self.flood_courtyard, _ = self.roll_flood_setting(world, player, weights_overrrides, "CastleCourtyard")
- self.flood_lake_desolation, _ = self.roll_flood_setting(world, player, weights_overrrides, "LakeDesolation")
- self.flood_lake_serene, _ = self.roll_flood_setting(world, player, weights_overrrides, "LakeSerene")
- self.flood_lake_serene_bridge, _ = self.roll_flood_setting(world, player, weights_overrrides, "LakeSereneBridge")
- self.flood_lab, _ = self.roll_flood_setting(world, player, weights_overrrides, "Lab")
+ self.roll_flood_setting(random, weights_overrrides, "CastleBasement")
+ self.flood_xarion, _ = self.roll_flood_setting(random, weights_overrrides, "Xarion")
+ self.flood_maw, _ = self.roll_flood_setting(random, weights_overrrides, "Maw")
+ self.flood_pyramid_shaft, _ = self.roll_flood_setting(random, weights_overrrides, "AncientPyramidShaft")
+ self.flood_pyramid_back, _ = self.roll_flood_setting(random, weights_overrrides, "Sandman")
+ self.flood_moat, _ = self.roll_flood_setting(random, weights_overrrides, "CastleMoat")
+ self.flood_courtyard, _ = self.roll_flood_setting(random, weights_overrrides, "CastleCourtyard")
+ self.flood_lake_desolation, _ = self.roll_flood_setting(random, weights_overrrides, "LakeDesolation")
+ self.flood_lake_serene, _ = self.roll_flood_setting(random, weights_overrrides, "LakeSerene")
+ self.flood_lake_serene_bridge, _ = self.roll_flood_setting(random, weights_overrrides, "LakeSereneBridge")
+ self.flood_lab, _ = self.roll_flood_setting(random, weights_overrrides, "Lab")
else:
self.flood_basement = False
self.flood_basement_high = False
@@ -52,10 +52,12 @@ def __init__(self, world: MultiWorld, player: int):
self.flood_lab = False
self.pyramid_keys_unlock, self.present_key_unlock, self.past_key_unlock, self.time_key_unlock = \
- self.get_pyramid_keys_unlocks(world, player, self.flood_maw, self.flood_xarion)
+ self.get_pyramid_keys_unlocks(options, random, self.flood_maw, self.flood_xarion)
@staticmethod
- def get_pyramid_keys_unlocks(world: MultiWorld, player: int, is_maw_flooded: bool, is_xarion_flooded: bool) -> Tuple[str, str, str, str]:
+ def get_pyramid_keys_unlocks(options: TimespinnerOptions, random: Random,
+ is_maw_flooded: bool, is_xarion_flooded: bool) -> Tuple[str, str, str, str]:
+
present_teleportation_gates: List[str] = [
"GateKittyBoss",
"GateLeftLibrary",
@@ -80,38 +82,30 @@ def get_pyramid_keys_unlocks(world: MultiWorld, player: int, is_maw_flooded: boo
"GateRightPyramid"
)
- if not world:
- return (
- present_teleportation_gates[0],
- present_teleportation_gates[0],
- past_teleportation_gates[0],
- ancient_pyramid_teleportation_gates[0]
- )
-
if not is_maw_flooded:
past_teleportation_gates.append("GateMaw")
if not is_xarion_flooded:
present_teleportation_gates.append("GateXarion")
- if is_option_enabled(world, player, "Inverted"):
+ if options.inverted:
all_gates: Tuple[str, ...] = present_teleportation_gates
else:
all_gates: Tuple[str, ...] = past_teleportation_gates + present_teleportation_gates
return (
- world.random.choice(all_gates),
- world.random.choice(present_teleportation_gates),
- world.random.choice(past_teleportation_gates),
- world.random.choice(ancient_pyramid_teleportation_gates)
+ random.choice(all_gates),
+ random.choice(present_teleportation_gates),
+ random.choice(past_teleportation_gates),
+ random.choice(ancient_pyramid_teleportation_gates)
)
@staticmethod
- def get_flood_weights_overrides(world: MultiWorld, player: int) -> Dict[str, Union[str, Dict[str, int]]]:
+ def get_flood_weights_overrides(options: TimespinnerOptions) -> Dict[str, Union[str, Dict[str, int]]]:
weights_overrides_option: Union[int, Dict[str, Union[str, Dict[str, int]]]] = \
- get_option_value(world, player, "RisingTidesOverrides")
+ options.rising_tides_overrides.value
- default_weights: Dict[str, Dict[str, int]] = timespinner_options["RisingTidesOverrides"].default
+ default_weights: Dict[str, Dict[str, int]] = options.rising_tides_overrides.default
if not weights_overrides_option:
weights_overrides_option = default_weights
@@ -123,13 +117,13 @@ def get_flood_weights_overrides(world: MultiWorld, player: int) -> Dict[str, Uni
return weights_overrides_option
@staticmethod
- def roll_flood_setting(world: MultiWorld, player: int,
- all_weights: Dict[str, Union[Dict[str, int], str]], key: str) -> Tuple[bool, bool]:
+ def roll_flood_setting(random: Random, all_weights: Dict[str, Union[Dict[str, int], str]],
+ key: str) -> Tuple[bool, bool]:
weights: Union[Dict[str, int], str] = all_weights[key]
if isinstance(weights, dict):
- result: str = world.random.choices(list(weights.keys()), weights=list(map(int, weights.values())))[0]
+ result: str = random.choices(list(weights.keys()), weights=list(map(int, weights.values())))[0]
else:
result: str = weights
diff --git a/worlds/timespinner/Regions.py b/worlds/timespinner/Regions.py
index 757a41c38821..f737b461d0bc 100644
--- a/worlds/timespinner/Regions.py
+++ b/worlds/timespinner/Regions.py
@@ -1,14 +1,16 @@
from typing import List, Set, Dict, Optional, Callable
from BaseClasses import CollectionState, MultiWorld, Region, Entrance, Location
-from .Options import is_option_enabled
+from .Options import TimespinnerOptions
from .Locations import LocationData, get_location_datas
from .PreCalculatedWeights import PreCalculatedWeights
from .LogicExtensions import TimespinnerLogic
-def create_regions_and_locations(world: MultiWorld, player: int, precalculated_weights: PreCalculatedWeights):
+def create_regions_and_locations(world: MultiWorld, player: int, options: TimespinnerOptions,
+ precalculated_weights: PreCalculatedWeights):
+
locations_per_region: Dict[str, List[LocationData]] = split_location_datas_per_region(
- get_location_datas(world, player, precalculated_weights))
+ get_location_datas(player, options, precalculated_weights))
regions = [
create_region(world, player, locations_per_region, 'Menu'),
@@ -53,7 +55,7 @@ def create_regions_and_locations(world: MultiWorld, player: int, precalculated_w
create_region(world, player, locations_per_region, 'Space time continuum')
]
- if is_option_enabled(world, player, "GyreArchives"):
+ if options.gyre_archives:
regions.extend([
create_region(world, player, locations_per_region, 'Ravenlord\'s Lair'),
create_region(world, player, locations_per_region, 'Ifrit\'s Lair'),
@@ -64,10 +66,10 @@ def create_regions_and_locations(world: MultiWorld, player: int, precalculated_w
world.regions += regions
- connectStartingRegion(world, player)
+ connectStartingRegion(world, player, options)
flooded: PreCalculatedWeights = precalculated_weights
- logic = TimespinnerLogic(world, player, precalculated_weights)
+ logic = TimespinnerLogic(player, options, precalculated_weights)
connect(world, player, 'Lake desolation', 'Lower lake desolation', lambda state: flooded.flood_lake_desolation or logic.has_timestop(state) or state.has('Talaria Attachment', player))
connect(world, player, 'Lake desolation', 'Upper lake desolation', lambda state: logic.has_fire(state) and state.can_reach('Upper Lake Serene', 'Region', player), "Upper Lake Serene")
@@ -123,7 +125,7 @@ def create_regions_and_locations(world: MultiWorld, player: int, precalculated_w
connect(world, player, 'Sealed Caves (Xarion)', 'Skeleton Shaft')
connect(world, player, 'Sealed Caves (Xarion)', 'Space time continuum', logic.has_teleport)
connect(world, player, 'Refugee Camp', 'Forest')
- connect(world, player, 'Refugee Camp', 'Library', lambda state: is_option_enabled(world, player, "Inverted") and is_option_enabled(world, player, "PresentAccessWithWheelAndSpindle") and state.has_all({'Timespinner Wheel', 'Timespinner Spindle'}, player))
+ connect(world, player, 'Refugee Camp', 'Library', lambda state: options.inverted and options.back_to_the_future and state.has_all({'Timespinner Wheel', 'Timespinner Spindle'}, player))
connect(world, player, 'Refugee Camp', 'Space time continuum', logic.has_teleport)
connect(world, player, 'Forest', 'Refugee Camp')
connect(world, player, 'Forest', 'Left Side forest Caves', lambda state: flooded.flood_lake_serene_bridge or state.has('Talaria Attachment', player) or logic.has_timestop(state))
@@ -178,11 +180,11 @@ def create_regions_and_locations(world: MultiWorld, player: int, precalculated_w
connect(world, player, 'Space time continuum', 'Royal towers (lower)', lambda state: logic.can_teleport_to(state, "Past", "GateRoyalTowers"))
connect(world, player, 'Space time continuum', 'Caves of Banishment (Maw)', lambda state: logic.can_teleport_to(state, "Past", "GateMaw"))
connect(world, player, 'Space time continuum', 'Caves of Banishment (upper)', lambda state: logic.can_teleport_to(state, "Past", "GateCavesOfBanishment"))
- connect(world, player, 'Space time continuum', 'Ancient Pyramid (entrance)', lambda state: logic.can_teleport_to(state, "Time", "GateGyre") or (not is_option_enabled(world, player, "UnchainedKeys") and is_option_enabled(world, player, "EnterSandman")))
+ connect(world, player, 'Space time continuum', 'Ancient Pyramid (entrance)', lambda state: logic.can_teleport_to(state, "Time", "GateGyre") or (not options.unchained_keys and options.enter_sandman))
connect(world, player, 'Space time continuum', 'Ancient Pyramid (left)', lambda state: logic.can_teleport_to(state, "Time", "GateLeftPyramid"))
connect(world, player, 'Space time continuum', 'Ancient Pyramid (right)', lambda state: logic.can_teleport_to(state, "Time", "GateRightPyramid"))
- if is_option_enabled(world, player, "GyreArchives"):
+ if options.gyre_archives:
connect(world, player, 'The lab (upper)', 'Ravenlord\'s Lair', lambda state: state.has('Merchant Crow', player))
connect(world, player, 'Ravenlord\'s Lair', 'The lab (upper)')
connect(world, player, 'Library top', 'Ifrit\'s Lair', lambda state: state.has('Kobo', player) and state.can_reach('Refugee Camp', 'Region', player), "Refugee Camp")
@@ -220,12 +222,12 @@ def create_region(world: MultiWorld, player: int, locations_per_region: Dict[str
return region
-def connectStartingRegion(world: MultiWorld, player: int):
+def connectStartingRegion(world: MultiWorld, player: int, options: TimespinnerOptions):
menu = world.get_region('Menu', player)
tutorial = world.get_region('Tutorial', player)
space_time_continuum = world.get_region('Space time continuum', player)
- if is_option_enabled(world, player, "Inverted"):
+ if options.inverted:
starting_region = world.get_region('Refugee Camp', player)
else:
starting_region = world.get_region('Lake desolation', player)
diff --git a/worlds/timespinner/__init__.py b/worlds/timespinner/__init__.py
index cab6fb648b95..66744cffdf85 100644
--- a/worlds/timespinner/__init__.py
+++ b/worlds/timespinner/__init__.py
@@ -1,12 +1,13 @@
-from typing import Dict, List, Set, Tuple, TextIO, Union
-from BaseClasses import Item, MultiWorld, Tutorial, ItemClassification
+from typing import Dict, List, Set, Tuple, TextIO
+from BaseClasses import Item, Tutorial, ItemClassification
from .Items import get_item_names_per_category
from .Items import item_table, starter_melee_weapons, starter_spells, filler_items, starter_progression_items
from .Locations import get_location_datas, EventId
-from .Options import is_option_enabled, get_option_value, timespinner_options
+from .Options import BackwardsCompatiableTimespinnerOptions, Toggle
from .PreCalculatedWeights import PreCalculatedWeights
from .Regions import create_regions_and_locations
from worlds.AutoWorld import World, WebWorld
+import logging
class TimespinnerWebWorld(WebWorld):
theme = "ice"
@@ -35,32 +36,34 @@ class TimespinnerWorld(World):
Timespinner is a beautiful metroidvania inspired by classic 90s action-platformers.
Travel back in time to change fate itself. Join timekeeper Lunais on her quest for revenge against the empire that killed her family.
"""
-
- option_definitions = timespinner_options
+ options_dataclass = BackwardsCompatiableTimespinnerOptions
+ options: BackwardsCompatiableTimespinnerOptions
game = "Timespinner"
topology_present = True
web = TimespinnerWebWorld()
required_client_version = (0, 4, 2)
item_name_to_id = {name: data.code for name, data in item_table.items()}
- location_name_to_id = {location.name: location.code for location in get_location_datas(None, None, None)}
+ location_name_to_id = {location.name: location.code for location in get_location_datas(-1, None, None)}
item_name_groups = get_item_names_per_category()
precalculated_weights: PreCalculatedWeights
def generate_early(self) -> None:
- self.precalculated_weights = PreCalculatedWeights(self.multiworld, self.player)
+ self.options.handle_backward_compatibility()
+
+ self.precalculated_weights = PreCalculatedWeights(self.options, self.random)
# in generate_early the start_inventory isnt copied over to precollected_items yet, so we can still modify the options directly
- if self.multiworld.start_inventory[self.player].value.pop('Meyef', 0) > 0:
- self.multiworld.StartWithMeyef[self.player].value = self.multiworld.StartWithMeyef[self.player].option_true
- if self.multiworld.start_inventory[self.player].value.pop('Talaria Attachment', 0) > 0:
- self.multiworld.QuickSeed[self.player].value = self.multiworld.QuickSeed[self.player].option_true
- if self.multiworld.start_inventory[self.player].value.pop('Jewelry Box', 0) > 0:
- self.multiworld.StartWithJewelryBox[self.player].value = self.multiworld.StartWithJewelryBox[self.player].option_true
+ if self.options.start_inventory.value.pop('Meyef', 0) > 0:
+ self.options.start_with_meyef.value = Toggle.option_true
+ if self.options.start_inventory.value.pop('Talaria Attachment', 0) > 0:
+ self.options.quick_seed.value = Toggle.option_true
+ if self.options.start_inventory.value.pop('Jewelry Box', 0) > 0:
+ self.options.start_with_jewelry_box.value = Toggle.option_true
def create_regions(self) -> None:
- create_regions_and_locations(self.multiworld, self.player, self.precalculated_weights)
+ create_regions_and_locations(self.multiworld, self.player, self.options, self.precalculated_weights)
def create_items(self) -> None:
self.create_and_assign_event_items()
@@ -74,7 +77,7 @@ def create_items(self) -> None:
def set_rules(self) -> None:
final_boss: str
- if self.is_option_enabled("DadPercent"):
+ if self.options.dad_percent:
final_boss = "Killed Emperor"
else:
final_boss = "Killed Nightmare"
@@ -82,48 +85,74 @@ def set_rules(self) -> None:
self.multiworld.completion_condition[self.player] = lambda state: state.has(final_boss, self.player)
def fill_slot_data(self) -> Dict[str, object]:
- slot_data: Dict[str, object] = {}
-
- ap_specific_settings: Set[str] = {"RisingTidesOverrides", "TrapChance"}
-
- for option_name in timespinner_options:
- if (option_name not in ap_specific_settings):
- slot_data[option_name] = self.get_option_value(option_name)
-
- slot_data["StinkyMaw"] = True
- slot_data["ProgressiveVerticalMovement"] = False
- slot_data["ProgressiveKeycards"] = False
- slot_data["PersonalItems"] = self.get_personal_items()
- slot_data["PyramidKeysGate"] = self.precalculated_weights.pyramid_keys_unlock
- slot_data["PresentGate"] = self.precalculated_weights.present_key_unlock
- slot_data["PastGate"] = self.precalculated_weights.past_key_unlock
- slot_data["TimeGate"] = self.precalculated_weights.time_key_unlock
- slot_data["Basement"] = int(self.precalculated_weights.flood_basement) + \
- int(self.precalculated_weights.flood_basement_high)
- slot_data["Xarion"] = self.precalculated_weights.flood_xarion
- slot_data["Maw"] = self.precalculated_weights.flood_maw
- slot_data["PyramidShaft"] = self.precalculated_weights.flood_pyramid_shaft
- slot_data["BackPyramid"] = self.precalculated_weights.flood_pyramid_back
- slot_data["CastleMoat"] = self.precalculated_weights.flood_moat
- slot_data["CastleCourtyard"] = self.precalculated_weights.flood_courtyard
- slot_data["LakeDesolation"] = self.precalculated_weights.flood_lake_desolation
- slot_data["DryLakeSerene"] = not self.precalculated_weights.flood_lake_serene
- slot_data["LakeSereneBridge"] = self.precalculated_weights.flood_lake_serene_bridge
- slot_data["Lab"] = self.precalculated_weights.flood_lab
-
- return slot_data
+ return {
+ # options
+ "StartWithJewelryBox": self.options.start_with_jewelry_box.value,
+ "DownloadableItems": self.options.downloadable_items.value,
+ "EyeSpy": self.options.eye_spy.value,
+ "StartWithMeyef": self.options.start_with_meyef.value,
+ "QuickSeed": self.options.quick_seed.value,
+ "SpecificKeycards": self.options.specific_keycards.value,
+ "Inverted": self.options.inverted.value,
+ "GyreArchives": self.options.gyre_archives.value,
+ "Cantoran": self.options.cantoran.value,
+ "LoreChecks": self.options.lore_checks.value,
+ "BossRando": self.options.boss_rando.value,
+ "DamageRando": self.options.damage_rando.value,
+ "DamageRandoOverrides": self.options.damage_rando_overrides.value,
+ "HpCap": self.options.hp_cap.value,
+ "LevelCap": self.options.level_cap.value,
+ "ExtraEarringsXP": self.options.extra_earrings_xp.value,
+ "BossHealing": self.options.boss_healing.value,
+ "ShopFill": self.options.shop_fill.value,
+ "ShopWarpShards": self.options.shop_warp_shards.value,
+ "ShopMultiplier": self.options.shop_multiplier.value,
+ "LootPool": self.options.loot_pool.value,
+ "DropRateCategory": self.options.drop_rate_category.value,
+ "FixedDropRate": self.options.fixed_drop_rate.value,
+ "LootTierDistro": self.options.loot_tier_distro.value,
+ "ShowBestiary": self.options.show_bestiary.value,
+ "ShowDrops": self.options.show_drops.value,
+ "EnterSandman": self.options.enter_sandman.value,
+ "DadPercent": self.options.dad_percent.value,
+ "RisingTides": self.options.rising_tides.value,
+ "UnchainedKeys": self.options.unchained_keys.value,
+ "PresentAccessWithWheelAndSpindle": self.options.back_to_the_future.value,
+ "Traps": self.options.traps.value,
+ "DeathLink": self.options.death_link.value,
+ "StinkyMaw": True,
+ # data
+ "PersonalItems": self.get_personal_items(),
+ "PyramidKeysGate": self.precalculated_weights.pyramid_keys_unlock,
+ "PresentGate": self.precalculated_weights.present_key_unlock,
+ "PastGate": self.precalculated_weights.past_key_unlock,
+ "TimeGate": self.precalculated_weights.time_key_unlock,
+ # rising tides
+ "Basement": int(self.precalculated_weights.flood_basement) + \
+ int(self.precalculated_weights.flood_basement_high),
+ "Xarion": self.precalculated_weights.flood_xarion,
+ "Maw": self.precalculated_weights.flood_maw,
+ "PyramidShaft": self.precalculated_weights.flood_pyramid_shaft,
+ "BackPyramid": self.precalculated_weights.flood_pyramid_back,
+ "CastleMoat": self.precalculated_weights.flood_moat,
+ "CastleCourtyard": self.precalculated_weights.flood_courtyard,
+ "LakeDesolation": self.precalculated_weights.flood_lake_desolation,
+ "DryLakeSerene": not self.precalculated_weights.flood_lake_serene,
+ "LakeSereneBridge": self.precalculated_weights.flood_lake_serene_bridge,
+ "Lab": self.precalculated_weights.flood_lab
+ }
def write_spoiler_header(self, spoiler_handle: TextIO) -> None:
- if self.is_option_enabled("UnchainedKeys"):
+ if self.options.unchained_keys:
spoiler_handle.write(f'Modern Warp Beacon unlock: {self.precalculated_weights.present_key_unlock}\n')
spoiler_handle.write(f'Timeworn Warp Beacon unlock: {self.precalculated_weights.past_key_unlock}\n')
- if self.is_option_enabled("EnterSandman"):
+ if self.options.enter_sandman:
spoiler_handle.write(f'Mysterious Warp Beacon unlock: {self.precalculated_weights.time_key_unlock}\n')
else:
spoiler_handle.write(f'Twin Pyramid Keys unlock: {self.precalculated_weights.pyramid_keys_unlock}\n')
- if self.is_option_enabled("RisingTides"):
+ if self.options.rising_tides:
flooded_areas: List[str] = []
if self.precalculated_weights.flood_basement:
@@ -159,6 +188,15 @@ def write_spoiler_header(self, spoiler_handle: TextIO) -> None:
spoiler_handle.write(f'Flooded Areas: {flooded_areas_string}\n')
+ if self.options.has_replaced_options:
+ warning = \
+ f"NOTICE: Timespinner options for player '{self.player_name}' where renamed from PasCalCase to snake_case, " \
+ "please update your yaml"
+
+ spoiler_handle.write("\n")
+ spoiler_handle.write(warning)
+ logging.warning(warning)
+
def create_item(self, name: str) -> Item:
data = item_table[name]
@@ -176,41 +214,41 @@ def create_item(self, name: str) -> Item:
if not item.advancement:
return item
- if (name == 'Tablet' or name == 'Library Keycard V') and not self.is_option_enabled("DownloadableItems"):
+ if (name == 'Tablet' or name == 'Library Keycard V') and not self.options.downloadable_items:
item.classification = ItemClassification.filler
- elif name == 'Oculus Ring' and not self.is_option_enabled("EyeSpy"):
+ elif name == 'Oculus Ring' and not self.options.eye_spy:
item.classification = ItemClassification.filler
- elif (name == 'Kobo' or name == 'Merchant Crow') and not self.is_option_enabled("GyreArchives"):
+ elif (name == 'Kobo' or name == 'Merchant Crow') and not self.options.gyre_archives:
item.classification = ItemClassification.filler
elif name in {"Timeworn Warp Beacon", "Modern Warp Beacon", "Mysterious Warp Beacon"} \
- and not self.is_option_enabled("UnchainedKeys"):
+ and not self.options.unchained_keys:
item.classification = ItemClassification.filler
return item
def get_filler_item_name(self) -> str:
- trap_chance: int = self.get_option_value("TrapChance")
- enabled_traps: List[str] = self.get_option_value("Traps")
+ trap_chance: int = self.options.trap_chance.value
+ enabled_traps: List[str] = self.options.traps.value
- if self.multiworld.random.random() < (trap_chance / 100) and enabled_traps:
- return self.multiworld.random.choice(enabled_traps)
+ if self.random.random() < (trap_chance / 100) and enabled_traps:
+ return self.random.choice(enabled_traps)
else:
- return self.multiworld.random.choice(filler_items)
+ return self.random.choice(filler_items)
def get_excluded_items(self) -> Set[str]:
excluded_items: Set[str] = set()
- if self.is_option_enabled("StartWithJewelryBox"):
+ if self.options.start_with_jewelry_box:
excluded_items.add('Jewelry Box')
- if self.is_option_enabled("StartWithMeyef"):
+ if self.options.start_with_meyef:
excluded_items.add('Meyef')
- if self.is_option_enabled("QuickSeed"):
+ if self.options.quick_seed:
excluded_items.add('Talaria Attachment')
- if self.is_option_enabled("UnchainedKeys"):
+ if self.options.unchained_keys:
excluded_items.add('Twin Pyramid Key')
- if not self.is_option_enabled("EnterSandman"):
+ if not self.options.enter_sandman:
excluded_items.add('Mysterious Warp Beacon')
else:
excluded_items.add('Timeworn Warp Beacon')
@@ -224,8 +262,8 @@ def get_excluded_items(self) -> Set[str]:
return excluded_items
def assign_starter_items(self, excluded_items: Set[str]) -> None:
- non_local_items: Set[str] = self.multiworld.non_local_items[self.player].value
- local_items: Set[str] = self.multiworld.local_items[self.player].value
+ non_local_items: Set[str] = self.options.non_local_items.value
+ local_items: Set[str] = self.options.local_items.value
local_starter_melee_weapons = tuple(item for item in starter_melee_weapons if
item in local_items or not item in non_local_items)
@@ -247,27 +285,26 @@ def assign_starter_items(self, excluded_items: Set[str]) -> None:
self.assign_starter_item(excluded_items, 'Tutorial: Yo Momma 2', local_starter_spells)
def assign_starter_item(self, excluded_items: Set[str], location: str, item_list: Tuple[str, ...]) -> None:
- item_name = self.multiworld.random.choice(item_list)
+ item_name = self.random.choice(item_list)
self.place_locked_item(excluded_items, location, item_name)
def place_first_progression_item(self, excluded_items: Set[str]) -> None:
- if self.is_option_enabled("QuickSeed") or self.is_option_enabled("Inverted") \
- or self.precalculated_weights.flood_lake_desolation:
+ if self.options.quick_seed or self.options.inverted or self.precalculated_weights.flood_lake_desolation:
return
- for item in self.multiworld.precollected_items[self.player]:
- if item.name in starter_progression_items and not item.name in excluded_items:
+ for item_name in self.options.start_inventory.value.keys():
+ if item_name in starter_progression_items:
return
local_starter_progression_items = tuple(
item for item in starter_progression_items
- if item not in excluded_items and item not in self.multiworld.non_local_items[self.player].value)
+ if item not in excluded_items and item not in self.options.non_local_items.value)
if not local_starter_progression_items:
return
- progression_item = self.multiworld.random.choice(local_starter_progression_items)
+ progression_item = self.random.choice(local_starter_progression_items)
self.multiworld.local_early_items[self.player][progression_item] = 1
@@ -307,9 +344,3 @@ def get_personal_items(self) -> Dict[int, int]:
personal_items[location.address] = location.item.code
return personal_items
-
- def is_option_enabled(self, option: str) -> bool:
- return is_option_enabled(self.multiworld, self.player, option)
-
- def get_option_value(self, option: str) -> Union[int, Dict, List]:
- return get_option_value(self.multiworld, self.player, option)