From 3ea0bcce5e51b5c26cf0b1dfefda1130712c0465 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 10 Jun 2021 12:44:46 +0100 Subject: [PATCH] BackPack: No need to worry about `Resurrect`. --- monitor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/monitor.py b/monitor.py index 05c6cc8d..abc9d952 100644 --- a/monitor.py +++ b/monitor.py @@ -1571,6 +1571,9 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below elif event_type == 'Resurrect': self.state['Credits'] -= entry.get('Cost', 0) + # There should be a `Backpack` event as you 'come to' in the + # new location, so no need to zero out BackPack here. + # HACK (not game related / 2021-06-2): self.planet is moved into a more general self.state['Body']. # This exists to help plugins doing what they SHOULDN'T BE cope. It will be removed at some point. if self.state['Body'] is None or self.state['BodyType'] == 'Planet':