From b02729ebdc816b22b8677c0565741e09202cd5b9 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 10 Jun 2021 12:32:40 +0100 Subject: [PATCH] Backpack/ShipLocker: `TransferMicroResources` is gone as of 4.0.0.400 --- monitor.py | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/monitor.py b/monitor.py index eaa36dfd..8deaa5b3 100644 --- a/monitor.py +++ b/monitor.py @@ -1010,25 +1010,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below pass elif event_type == 'TransferMicroResources': - # Moving Odyssey MicroResources between ShipLocker and BackPack - # Backpack dropped as its done in BackpackChange - # - # from: 4.0.0.200 -- Locker(Old|New)Count is now a thing. - for mr in entry['Transfers']: - category = self.category(mr['Category']) - name = self.canonicalise(mr['Name']) - - self.state[category][name] = mr['LockerNewCount'] - if mr['Direction'] not in ('ToShipLocker', 'ToBackpack'): - logger.warning(f'TransferMicroResources with unexpected Direction {mr["Direction"]=}: {mr=}') - - # Paranoia check to see if anything has gone negative. - # As of Odyssey Alpha Phase 1 Hotfix 2 keeping track of BackPack - # materials is impossible when used/picked up anyway. - for c in self.state['BackPack']: - for m in self.state['BackPack'][c]: - if self.state['BackPack'][c][m] < 0: - self.state['BackPack'][c][m] = 0 + # Defunct in 4.0.0.400 ? Not seen in testing, and we get a + # new empty/file `ShipLocker` event, along with a + # `BackpackChange` event per item type transferred. + pass elif event_type == 'CollectItems': # 4.0.0.400 (still) has a BackpackChange event as well, so