From a74bf40f8f4ae6d624b7d14e7698a0277c153791 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Tue, 2 Oct 2018 23:28:17 +0100 Subject: [PATCH] Don't switch ships when launching a Guardian fighter --- monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor.py b/monitor.py index 6656e4c0..03e194e3 100644 --- a/monitor.py +++ b/monitor.py @@ -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']