mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-18 21:38:13 -07:00
Merge branch 'main' into NewSoupVi-patch-44
This commit is contained in:
@@ -22,6 +22,10 @@ if TYPE_CHECKING:
|
||||
perf_logger = logging.getLogger("performance")
|
||||
|
||||
|
||||
class InvalidItemError(KeyError):
|
||||
pass
|
||||
|
||||
|
||||
class AutoWorldRegister(type):
|
||||
world_types: Dict[str, Type[World]] = {}
|
||||
__file__: str
|
||||
|
||||
@@ -3,7 +3,7 @@ import logging
|
||||
|
||||
from BaseClasses import Item, Tutorial, ItemClassification
|
||||
|
||||
from ..AutoWorld import World, WebWorld
|
||||
from ..AutoWorld import InvalidItemError, World, WebWorld
|
||||
from NetUtils import SlotType
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class GenericWorld(World):
|
||||
def create_item(self, name: str) -> Item:
|
||||
if name == "Nothing":
|
||||
return Item(name, ItemClassification.filler, -1, self.player)
|
||||
raise KeyError(name)
|
||||
raise InvalidItemError(name)
|
||||
|
||||
|
||||
class PlandoItem(NamedTuple):
|
||||
|
||||
Reference in New Issue
Block a user