1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 01:22:19 +03:00

Don't switch ships when launching a Guardian fighter

This commit is contained in:
Jonathan Harris 2018-10-02 23:28:17 +01:00
parent d0487d1497
commit a74bf40f8f

@ -393,8 +393,8 @@ class EDLogs(FileSystemEventHandler):
self.state['Rebuy'] = None
self.state['Modules'] = None
elif (entry['event'] == 'Loadout' and
not self.canonicalise(entry['Ship']).endswith('fighter') and
not self.canonicalise(entry['Ship']).endswith('buggy')):
not 'fighter' in self.canonicalise(entry['Ship']) and
not 'buggy' in self.canonicalise(entry['Ship'])):
self.state['ShipID'] = entry['ShipID']
self.state['ShipIdent'] = entry['ShipIdent']
self.state['ShipName'] = entry['ShipName']