1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

Merge pull request from EDCD/enhancement/1450/eddn-codex-approachsettlement-correction

monitor: Revert state['StarSystem'] addition, it's not needed.
This commit is contained in:
Athanasius 2022-02-11 16:21:18 +00:00 committed by GitHub
commit 4766f817fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -180,7 +180,6 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
'SuitLoadouts': {},
'Taxi': None, # True whenever we are _in_ a taxi. ie, this is reset on Disembark etc.
'Dropship': None, # Best effort as to whether or not the above taxi is a dropship.
'StarSystem': None, # Best effort name of current system.
'StarPos': None, # Best effort current system's galaxy position.
'Body': None,
'BodyType': None,
@ -811,13 +810,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
self.systempopulation = entry.get('Population')
if entry['StarSystem'] == 'ProvingGround':
to_set = 'CQC'
self.system = 'CQC'
else:
to_set = entry['StarSystem']
# EDDN plugin needs this in `state`
self.state['StarSystem'] = self.system = to_set
self.system = entry['StarSystem']
self.station = entry.get('StationName') # May be None
# If on foot in-station 'Docked' is false, but we have a