mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-12 21:32:29 +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:
parent
386ea1636e
commit
edc23081b1
@ -927,6 +927,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
|||||||
self.state['BodyID'] = entry.get('BodyID')
|
self.state['BodyID'] = entry.get('BodyID')
|
||||||
# This isn't in the event, but Journal doc for ApproachBody says:
|
# 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
|
# 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'
|
self.state['BodyType'] = 'Planet'
|
||||||
|
|
||||||
elif event_type == 'leavebody':
|
elif event_type == 'leavebody':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user