mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-08 19:32:15 +03:00
Backpack: Zero out when we Embark, as it's all then in ShipLocker
This commit is contained in:
parent
09c81a21f6
commit
8b6c0e50ac
@ -681,6 +681,13 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
|||||||
self.state['OnFoot'] = False
|
self.state['OnFoot'] = False
|
||||||
self.state['Taxi'] = entry['Taxi']
|
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':
|
elif event_type == 'Disembark':
|
||||||
# This event is logged when the player steps out of a ship or SRV
|
# This event is logged when the player steps out of a ship or SRV
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user