OoT: More item.type bugs. (#930)

This commit is contained in:
CaitSith2
2022-08-20 16:55:41 -07:00
committed by GitHub
parent bba82ccd6c
commit 484ee9f065
4 changed files with 19 additions and 10 deletions

View File

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