From b45df6b4fde2155d13818e04302766c3cd769af8 Mon Sep 17 00:00:00 2001 From: Bernd Gollesch Date: Sat, 2 May 2020 14:52:41 +0200 Subject: [PATCH] keep track of location if the carrier you're docked at jumps --- plugins/inara.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/inara.py b/plugins/inara.py index 1be99c52..35330bee 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -377,6 +377,18 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): ('minorfactionReputation', f['MyReputation']/100.0), ]) for f in entry['Factions'] ]) + elif entry['event'] == 'CarrierJump': + # There is no (add|set)CommanderTravelCarrierJump() yet + # Use setCommanderTravelLocation() for now because it's like an 'Location' event + this.system = None + add_event('setCommanderTravelLocation', entry['timestamp'], + OrderedDict([ + ('starsystemName', entry['StarSystem']), + ('stationName', entry['StationName']), + ('marketID', entry['MarketID']), + ])) + # Ignore the following 'Docked' event + this.suppress_docked = True # Override standard URL functions if config.get('system_provider') == 'Inara':