mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 16:27:13 +03:00
Get ship details from Loadout event, not LoadGame
This commit is contained in:
parent
a6c9edc28b
commit
00a341e67c
@ -332,11 +332,7 @@ class EDLogs(FileSystemEventHandler):
|
||||
'Credits' : entry['Credits'],
|
||||
'Loan' : entry['Loan'],
|
||||
'Rank' : { 'Combat': None, 'Trade': None, 'Explore': None, 'Empire': None, 'Federation': None, 'CQC': None },
|
||||
'ShipID' : entry.get('ShipID') if entry.get('Ship') not in ['TestBuggy', 'Empire_Fighter', 'Federation_Fighter', 'Independent_Fighter'] else None # None in CQC or if game starts in SRV/fighter
|
||||
})
|
||||
self.state['ShipIdent'] = self.state['ShipID'] and entry.get('ShipIdent')
|
||||
self.state['ShipName'] = self.state['ShipID'] and entry.get('ShipName')
|
||||
self.state['ShipType'] = self.state['ShipID'] and entry.get('Ship').lower()
|
||||
self.body = None
|
||||
self.system = None
|
||||
self.station = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user