OoT: More item.type bugs. (#930)
This commit is contained in:
@@ -22,6 +22,12 @@ def ap_id_to_oot_data(ap_id):
|
||||
raise Exception(f'Could not find desired item ID: {ap_id}')
|
||||
|
||||
|
||||
def oot_is_item_of_type(item, item_type):
|
||||
if not isinstance(item, OOTItem):
|
||||
return False
|
||||
return item.type == item_type
|
||||
|
||||
|
||||
class OOTItem(Item):
|
||||
game: str = "Ocarina of Time"
|
||||
type: str
|
||||
|
||||
Reference in New Issue
Block a user