From 2b1ca8031c0bd788a283fe3834776631e486d2ae Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 10 Jun 2021 12:16:14 +0100 Subject: [PATCH] Backpack: Still don't need to worry about UseConsumable in 4.0.0.400 --- monitor.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/monitor.py b/monitor.py index 22893aff..6bb21e62 100644 --- a/monitor.py +++ b/monitor.py @@ -1106,21 +1106,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below # suit backpack – note this can be written at the same time as other # events like UseConsumable - # In 4.0.0.100 it is observed that: - # - # 1. Throw of any grenade type *only* causes a BackpackChange event, no - # accompanying 'UseConsumable'. - # 2. Using an Energy Cell causes both UseConsumable and BackpackChange, - # in that order. - # 3. Medkit acts the same as Energy Cell. - # - # Thus we'll just ignore 'UseConsumable' for now. - # for c in self.state['BackPack']['Consumable']: - # if c == entry['Name']: - # self.state['BackPack']['Consumable'][c] -= 1 - # # Paranoia in case we lost track - # if self.state['BackPack']['Consumable'][c] < 0: - # self.state['BackPack']['Consumable'][c] = 0 + # In 4.0.0.400 we do get this event, but *also* a `BackpackChange` event, + # so we ignore this for inventory purposes. pass # TODO: