From 1a3dad34b76ab3727a59b26a44488ffcef6f6574 Mon Sep 17 00:00:00 2001 From: A_D Date: Wed, 30 Jun 2021 14:23:25 +0200 Subject: [PATCH] Add support for SuitLoadout related added info This is mostly classes and mods for weapons, and classes for suits. I did not do any updating passed what we already did, I simply added the fields where needed. This means that if our tracking is incorrect it will still be incorrect, but full on tracking will wait for OO based state storage to prevent whoopsies and other silliness. --- monitor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monitor.py b/monitor.py index 679d4921..e0ef8786 100644 --- a/monitor.py +++ b/monitor.py @@ -1118,6 +1118,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below 'edmcName': self.suit_sane_name(loc_name), 'id': None, # Is this an FDev ID for suit type ? 'suitId': entry['SuitID'], + 'mods': entry['SuitMods'], # Suits can (rarely) be bought with modules installed 'slots': [], } @@ -1183,6 +1184,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below 'id': None, 'weaponrackId': entry['SuitModuleID'], 'locDescription': '', + 'class': entry['Class'], + 'mods': entry['WeaponMods'] } except KeyError: @@ -1657,6 +1660,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below 'locName': suitname, 'suitId': entry['SuitID'], 'name': entry['SuitName'], + 'mods': entry['SuitMods'] } suitloadout_slotid = self.suit_loadout_id_from_loadoutid(entry['LoadoutID']) @@ -2105,6 +2109,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below 'weaponrackId': loadout_slots[s]['SuitModuleID'], 'locName': loadout_slots[s].get('ModuleName_Localised', loadout_slots[s]['ModuleName']), 'locDescription': '', + 'class': loadout_slots[s]['Class'], + 'mods': loadout_slots[s]['WeaponMods'], } return slots