mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-16 09:10:35 +03:00
Inara: setCommanderTravelLocation for SupercruiseExit and ApproachSettlement
This commit is contained in:
parent
07065b0bf3
commit
fa0a7c48a2
@ -619,6 +619,26 @@ def journal_entry( # noqa: C901, CCR001
|
||||
|
||||
this.undocked = False
|
||||
|
||||
elif event_name == 'SupercruiseExit':
|
||||
to_send = {
|
||||
'starsystemName': entry['StarSystem'],
|
||||
}
|
||||
|
||||
if entry['BodyType'] == 'Planet':
|
||||
to_send['starsystemBodyName'] = entry['Body']
|
||||
|
||||
new_add_event('setCommanderTravelLocation', entry['timestamp'], to_send)
|
||||
|
||||
elif event_name == 'ApproachSettlement':
|
||||
to_send = {
|
||||
'starsystemName': system,
|
||||
'stationName': entry['Name'],
|
||||
'marketid': entry['MarketID'],
|
||||
'starsystemBodyName': entry['BodyName'],
|
||||
'starsystemBodyCoords': [entry['Latitude'], entry['Longitude']]
|
||||
}
|
||||
new_add_event('setCommanderTravelLocation', entry['timestamp'], to_send)
|
||||
|
||||
elif event_name == 'FSDJump':
|
||||
this.undocked = False
|
||||
to_send = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user