1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

there is also a 'Factions' list in the 'CarrierJump' event

This commit is contained in:
Bernd Gollesch 2020-05-02 15:02:09 +02:00 committed by Athanasius
parent b45df6b4fd
commit 02649b8c6f

View File

@ -387,6 +387,14 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
('stationName', entry['StationName']),
('marketID', entry['MarketID']),
]))
if entry.get('Factions'):
add_event('setCommanderReputationMinorFaction', entry['timestamp'],
[
OrderedDict([
('minorfactionName', f['Name']),
('minorfactionReputation', f['MyReputation']/100.0),
]) for f in entry['Factions']
])
# Ignore the following 'Docked' event
this.suppress_docked = True