From 8b6c0e50ace42da1ca504d342e03480707c0cb41 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 10 Jun 2021 12:37:59 +0100 Subject: [PATCH] Backpack: Zero out when we Embark, as it's all then in ShipLocker --- monitor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/monitor.py b/monitor.py index 4f7ebce9..bbfbc370 100644 --- a/monitor.py +++ b/monitor.py @@ -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 #