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
This commit is contained in:
parent
931e335155
commit
048658955b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue