mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-09 11:52:27 +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']),
|
('stationName', entry['StationName']),
|
||||||
('marketID', entry['MarketID']),
|
('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
|
# Ignore the following 'Docked' event
|
||||||
this.suppress_docked = True
|
this.suppress_docked = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user