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:
parent
aa4e17c846
commit
1a3dad34b7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user