From 8f2802fbcf64abbd90bc0aeb59840b20216d0ca5 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Fri, 2 Apr 2021 08:48:42 +0100 Subject: [PATCH] monitor.py: Add support for Odyssey 'Component' materials. --- PLUGINS.md | 4 ++++ monitor.py | 1 + 2 files changed, 5 insertions(+) diff --git a/PLUGINS.md b/PLUGINS.md index 3d4d6856..7e5fbe8e 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -515,6 +515,7 @@ Content of `state` (updated to the current journal entry): | `Raw` | `dict` | Current raw engineering materials | | `Manufactured` | `dict` | Current manufactured engineering materials | | `Encoded` | `dict` | Current encoded engineering materials | +| `Component` | `dict` | Current component materials | | `Engineers` | `dict` | Current Raw engineering materials | | `Rank` | `Dict[str, Tuple[int, int]` | Current ranks, each entry is a tuple of the current rank, and age | | `Statistics` | `dict` | Contents of a Journal Statistics event, ie, data shown in the stats panel. See the Journal manual for more info | @@ -553,6 +554,9 @@ Journal `ModuleInfo` event. `OnFoot` is an indication as to if the player is on-foot, rather than in a vehicle. +`Component` is a dict tracking your 'on-foot' materials for upgrading Suits +and on-foot weapons. + ##### Synthetic Events A special "StartUp" entry is sent if EDMC is started while the game is already diff --git a/monitor.py b/monitor.py index b55075b5..72730d3a 100644 --- a/monitor.py +++ b/monitor.py @@ -117,6 +117,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below 'Raw': defaultdict(int), 'Manufactured': defaultdict(int), 'Encoded': defaultdict(int), + 'Component': defaultdict(int), # Odyssey materials 'Engineers': {}, 'Rank': {}, 'Reputation': {},