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:
parent
b45df6b4fd
commit
02649b8c6f
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user