mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-05-30 23:29:30 +03:00
keep track of location if the carrier you're docked at jumps
This commit is contained in:
parent
8db229585d
commit
b45df6b4fd
@ -377,6 +377,18 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
|
|||||||
('minorfactionReputation', f['MyReputation']/100.0),
|
('minorfactionReputation', f['MyReputation']/100.0),
|
||||||
]) for f in entry['Factions']
|
]) 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
|
# Override standard URL functions
|
||||||
if config.get('system_provider') == 'Inara':
|
if config.get('system_provider') == 'Inara':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user