Core: move multiple Item properties into a single Flag (#638)

This commit is contained in:
Fabian Dill
2022-06-17 03:23:27 +02:00
committed by GitHub
parent 5be00e28dd
commit 6c525e1fe6
45 changed files with 559 additions and 493 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
from typing import NamedTuple, Union
import logging
from BaseClasses import Item, Tutorial
from BaseClasses import Item, Tutorial, ItemClassification
from ..AutoWorld import World, WebWorld
from NetUtils import SlotType
@@ -46,7 +46,7 @@ class GenericWorld(World):
def create_item(self, name: str) -> Item:
if name == "Nothing":
return Item(name, False, -1, self.player)
return Item(name, ItemClassification.filler, -1, self.player)
raise KeyError(name)