Core: fix Item.code type and add Item.name type

This commit is contained in:
Fabian Dill 2021-09-29 04:44:20 +02:00
parent 345d4c58f3
commit 0afbe7988e
1 changed files with 2 additions and 1 deletions

View File

@ -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