From 97a6d07c51332d70008296d7349252cf25a5c3ce Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 12 May 2021 17:14:58 +0100 Subject: [PATCH] plugins/eddn: Send bool 'odyssey' in all event messages. This is so listeners can make decision on if/how/when to store data that might be from base/horizons or Odyssey. --- plugins/eddn.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/eddn.py b/plugins/eddn.py index d700ba2b..f3b80ad1 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -560,6 +560,7 @@ Msg:\n{msg}''' :param cmdr: the commander under which this upload is made :param is_beta: whether or not we are in beta mode + :param is_odyssey: did we detect Odyssey ? :param entry: the journal entry to send """ msg = { @@ -769,6 +770,11 @@ def journal_entry( # noqa: C901, CCR001 return filtered this.on_foot = state['OnFoot'] + + # Note if we're under Odyssey + # The only event this is already in is `LoadGame` which isn't sent to EDDN. + entry['odyssey'] = state['Odyssey'] + # Track location if entry['event'] in ('Location', 'FSDJump', 'Docked', 'CarrierJump'): if entry['event'] in ('Location', 'CarrierJump'):