1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

Add note about maybe not wanting to use UseConsumable to track Backpack

*Hopefully* `BackpackChange` will be 100% reliable in place of this.
Test once live Odyssey is available!
This commit is contained in:
Athanasius 2021-05-18 16:58:20 +01:00
parent bcbf37599e
commit a50ed31450

View File

@ -1025,6 +1025,12 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
# Parameters:
# • Name
# • Type
# TODO: XXX: From v31 doc
# 12.2 BackpackChange
# This is written when there is any change to the contents of the
# suit backpack note this can be written at the same time as other
# events like UseConsumable
for c in self.state['BackPack']['Consumable']:
if c == entry['Name']:
self.state['BackPack']['Consumable'][c] -= 1