1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-31 15:49:41 +03:00

Backpack: Zero out when we Embark, as it's all then in ShipLocker

This commit is contained in:
Athanasius 2021-06-10 12:37:59 +01:00
parent 09c81a21f6
commit 8b6c0e50ac

View File

@ -681,6 +681,13 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
self.state['OnFoot'] = False
self.state['Taxi'] = entry['Taxi']
# We can't now have anything in the BackPack, it's all in the
# ShipLocker.
self.state['BackPack']['Component'] = defaultdict(int)
self.state['BackPack']['Consumable'] = defaultdict(int)
self.state['BackPack']['Item'] = defaultdict(int)
self.state['BackPack']['Data'] = defaultdict(int)
elif event_type == 'Disembark':
# This event is logged when the player steps out of a ship or SRV
#