From edc23081b15023237a11eff302a6be84514bdc7f Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 9 Jan 2023 11:29:46 +0000 Subject: [PATCH] monitor: Extend 'approachbody' comment to call out use in plugins/eddn.py We're setting `self.state['BodyType']` specifically so plugins/eddn.py's 'docked' handling can use it as a check. --- monitor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monitor.py b/monitor.py index f34c41da..61e03759 100644 --- a/monitor.py +++ b/monitor.py @@ -927,6 +927,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below self.state['BodyID'] = entry.get('BodyID') # This isn't in the event, but Journal doc for ApproachBody says: # when in Supercruise, and distance from planet drops to within the 'Orbital Cruise' zone + # Used in plugins/eddn.py for setting entry Body/BodyType + # on 'docked' events when Planetary. self.state['BodyType'] = 'Planet' elif event_type == 'leavebody':