1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

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.
This commit is contained in:
A_D 2021-06-30 14:23:25 +02:00
parent aa4e17c846
commit 1a3dad34b7
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -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