1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 09:10:35 +03:00

Added support for resupply event

its a reskinned backpack, so thats how its being handled
This commit is contained in:
A_D 2021-07-03 13:22:39 +02:00
parent d63b6ad782
commit 1e691d306e
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -912,7 +912,11 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
logger.warning(f'We have a BackPackMaterials event, defunct since > 4.0.0.102 ?:\n{entry}\n')
pass
elif event_type == 'backpack':
elif event_type in ('backpack', 'resupply'):
# as of v4.0.0.600, a `resupply` event is dropped when resupplying your suit at your ship.
# This event writes the same data as a backpack event. It will also be followed by a ShipLocker
# but that follows normal behaviour in its handler.
# TODO: v31 doc says this is`backpack.json` ... but Howard Chalkley
# said it's `Backpack.json`
backpack_file = pathlib.Path(str(self.currentdir)) / 'Backpack.json'