Adventure: Fix KeyError on Retrieved (#2560)

This commit is contained in:
Silvris
2023-12-16 15:22:51 -06:00
committed by GitHub
parent 7dff09dc1a
commit f958af4067

View File

@@ -115,6 +115,7 @@ class AdventureContext(CommonContext):
msg = f"Received {', '.join([self.item_names[item.item] for item in args['items']])}"
self._set_message(msg, SYSTEM_MESSAGE_ID)
elif cmd == "Retrieved":
if f"adventure_{self.auth}_freeincarnates_used" in args["keys"]:
self.freeincarnates_used = args["keys"][f"adventure_{self.auth}_freeincarnates_used"]
if self.freeincarnates_used is None:
self.freeincarnates_used = 0