From 048658955bbc3e72e420f89f944b6a5d00d41584 Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Sun, 3 Nov 2024 15:22:10 +0100 Subject: [PATCH] Core: The Item Links fix to end them all (for now, hopefully) (#4096) * Core: The Item Links fix to end them all This puts the bandaid that was holding Item Links together for years back on. It's a bad solution But it's what we had previously, and the change away from this is what broke them So in the interest of 0.5.1 releasing this century, maybe we should just go with this. * Update AutoWorld.py --- worlds/AutoWorld.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worlds/AutoWorld.py b/worlds/AutoWorld.py index f7dae2b9..3c4edc1b 100644 --- a/worlds/AutoWorld.py +++ b/worlds/AutoWorld.py @@ -10,7 +10,7 @@ from dataclasses import make_dataclass from typing import (Any, Callable, ClassVar, Dict, FrozenSet, List, Mapping, Optional, Set, TextIO, Tuple, TYPE_CHECKING, Type, Union) -from Options import item_and_loc_options, OptionGroup, PerGameCommonOptions +from Options import item_and_loc_options, ItemsAccessibility, OptionGroup, PerGameCommonOptions from BaseClasses import CollectionState if TYPE_CHECKING: @@ -480,6 +480,7 @@ class World(metaclass=AutoWorldRegister): group = cls(multiworld, new_player_id) group.options = cls.options_dataclass(**{option_key: option.from_any(option.default) for option_key, option in cls.options_dataclass.type_hints.items()}) + group.options.accessibility = ItemsAccessibility(ItemsAccessibility.option_items) return group