Adventure: create_item AttributeError -> KeyError #4219

This commit is contained in:
Exempt-Medic 2024-11-30 23:10:43 -05:00 committed by GitHub
parent 62ce42440b
commit 284e7797c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ class AdventureWorld(World):
# end of ordered Main.py calls
def create_item(self, name: str) -> Item:
item_data: ItemData = item_table.get(name)
item_data: ItemData = item_table[name]
return AdventureItem(name, item_data.classification, item_data.id, self.player)
def create_event(self, name: str, classification: ItemClassification) -> Item: