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

This commit is contained in:
Bernd Gollesch authored and Athanasius committed 2020-06-18 17:44:22 +01:00
1 parent b45df6b4fd
commit 02649b8c6f
1 file changed
+8
+8
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