Skip to content

Commit

Permalink
monitor: Add state flag 'Odyssey' for if LoadGame states we're runnin…
Browse files Browse the repository at this point in the history
…g under Odyssey
  • Loading branch information
Athanasius committed May 12, 2021
1 parent 8dfd638 commit 286060a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def __init_state(self) -> None:
'Credits': None,
'FID': None, # Frontier Cmdr ID
'Horizons': None, # Does this user have Horizons?
'Odyssey': False, # Have we detected we're running under Odyssey?
'Loan': None,
'Raw': defaultdict(int),
'Manufactured': defaultdict(int),
Expand Down Expand Up @@ -520,6 +521,7 @@ def parse_entry(self, line: bytes) -> MutableMapping[str, Any]: # noqa: C901, C
'Credits': entry['Credits'],
'FID': entry.get('FID'), # From 3.3
'Horizons': entry['Horizons'], # From 3.0
'Odyssey': entry.get('Odyssey', False), # From 4.0 Odyssey
'Loan': entry['Loan'],
'Engineers': {},
'Rank': {},
Expand Down

0 comments on commit 286060a

Please sign in to comment.