From 0afbe7988e09809a709d1f2b23d1aacb0d956542 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Wed, 29 Sep 2021 04:44:20 +0200 Subject: [PATCH] Core: fix Item.code type and add Item.name type --- BaseClasses.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BaseClasses.py b/BaseClasses.py index 604321a8..831fc533 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -950,7 +950,8 @@ class Location(): class Item(): location: Optional[Location] = None world: Optional[MultiWorld] = None - code: Optional[str] = None # an item with ID None is called an Event, and does not get written to multidata + code: Optional[int] = None # an item with ID None is called an Event, and does not get written to multidata + name: str game: str = "Generic" type: str = None # change manually to ensure that a specific non-progression item never goes on an excluded location