1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

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.
This commit is contained in:
Athanasius 2023-01-09 11:29:46 +00:00
parent 386ea1636e
commit edc23081b1
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -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':