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

Disembark: Use the alpha4-new flag to detect if on-station

This commit is contained in:
Athanasius 2021-05-05 11:42:29 +01:00
parent 5f29c866e7
commit 692856bbe1

View File

@ -661,8 +661,6 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
self.state['OnFoot'] = False self.state['OnFoot'] = False
elif event_type == 'Disembark': elif event_type == 'Disembark':
# We don't yet have a way, other than LoadGame+Location, to detect if we *are* on a station on-foot.
# alpha4
# This event is logged when the player steps out of a ship or SRV # This event is logged when the player steps out of a ship or SRV
# #
# Parameters: # Parameters:
@ -680,9 +678,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
# • StationType # • StationType
# • MarketID # • MarketID
# If we're not exiting one of these then it's from our own ship, and then we should already have if entry.get('OnStation', False):
# self.station set correctly. self.station = entry.get('StationName', '')
if entry['SRV'] or entry['Taxi'] or entry['Multicrew']:
else:
self.station = None self.station = None
self.state['OnFoot'] = True self.state['OnFoot'] = True