Fix documentation and example

Fix msu_resume issue
Fix empty locations
Throw error on unknown items
This commit is contained in:
aerinon
2022-03-25 08:43:11 -06:00
parent 27b836f16d
commit 5e07e49798
9 changed files with 139 additions and 8 deletions

View File

@@ -14,8 +14,7 @@ def ItemFactory(items, player):
advancement, priority, type, code, price, pedestal_hint, pedestal_credit, sickkid_credit, zora_credit, witch_credit, fluteboy_credit, hint_text = item_table[item]
ret.append(Item(item, advancement, priority, type, code, price, pedestal_hint, pedestal_credit, sickkid_credit, zora_credit, witch_credit, fluteboy_credit, hint_text, player))
else:
logging.getLogger('').warning('Unknown Item: %s', item)
return None
raise RuntimeError(f'Unknown Item: {item}')
if singleton:
return ret[0]