mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-05 18:03:17 +03:00
Don't send Engineers at startup prior to 3.3
This commit is contained in:
parent
cc4390de49
commit
126158bf15
@ -232,13 +232,14 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
|
|||||||
('majorfactionReputation', v / 100.0),
|
('majorfactionReputation', v / 100.0),
|
||||||
]) for k,v in state['Reputation'].iteritems() if v is not None
|
]) for k,v in state['Reputation'].iteritems() if v is not None
|
||||||
])
|
])
|
||||||
add_event('setCommanderRankEngineer', entry['timestamp'],
|
if state['Engineers']: # Not populated < 3.3
|
||||||
[
|
add_event('setCommanderRankEngineer', entry['timestamp'],
|
||||||
OrderedDict([
|
[
|
||||||
('engineerName', k),
|
OrderedDict([
|
||||||
type(v) is tuple and ('rankValue', v[0]) or ('rankStage', v),
|
('engineerName', k),
|
||||||
]) for k,v in state['Engineers'].iteritems()
|
type(v) is tuple and ('rankValue', v[0]) or ('rankStage', v),
|
||||||
])
|
]) for k,v in state['Engineers'].iteritems()
|
||||||
|
])
|
||||||
|
|
||||||
# Update location
|
# Update location
|
||||||
add_event('setCommanderTravelLocation', entry['timestamp'],
|
add_event('setCommanderTravelLocation', entry['timestamp'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user