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

EDDN: Record horizons flag in journal_entry()

So that we can then first check *this* in `is_horizons()`.
This commit is contained in:
Athanasius 2021-10-17 14:55:43 +01:00
parent 62b5e4e7eb
commit aecf375138
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -46,6 +46,8 @@ class This:
# Track if we're on foot
self.on_foot = False
# Horizons ?
self.horizons = False
# Running under Odyssey?
self.odyssey = False
@ -1165,8 +1167,9 @@ def journal_entry( # noqa: C901, CCR001
this.on_foot = state['OnFoot']
# Note if we're under Odyssey
# The only event this is already in is `LoadGame` which isn't sent to EDDN.
# Note if we're under Horizons and/or Odyssey
# The only event these are already in is `LoadGame` which isn't sent to EDDN.
this.horizons = entry['horizons'] = state['Horizons']
this.odyssey = entry['odyssey'] = state['Odyssey']
# Track location