1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-12 13:22:54 +03:00

Update Engineering for suits

This commit is contained in:
A_D 2021-06-02 12:28:06 +02:00
parent 71afdf0bdb
commit 571db43257
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -1110,14 +1110,14 @@ def journal_entry( # noqa: C901, CCR001
'loadoutName': entry['LoadoutName'], 'loadoutName': entry['LoadoutName'],
'suitGameID': entry['SuitID'], 'suitGameID': entry['SuitID'],
'suitType': entry['SuitName'], 'suitType': entry['SuitName'],
'suitMods': entry['SuitMods'], 'suitMods': [{'blueprintName': mod} for mod in entry['SuitMods']],
'suitLoadout': [ 'suitLoadout': [
{ {
'slotName': x['SlotName'], 'slotName': x['SlotName'],
'itemName': x['ModuleName'], 'itemName': x['ModuleName'],
'itemClass': x['Class'], 'itemClass': x['Class'],
'itemGameID': x['SuitModuleID'], 'itemGameID': x['SuitModuleID'],
'engineering': x['WeaponMods'], # TODO: Verify. 'engineering': [{'blueprintName': mod} for mod in x['WeaponMods']],
} for x in entry['Modules'] } for x in entry['Modules']
], ],
} }
@ -1149,7 +1149,7 @@ def journal_entry( # noqa: C901, CCR001
'itemName': entry['ModuleName'], 'itemName': entry['ModuleName'],
'itemGameID': entry['SuitModuleID'], 'itemGameID': entry['SuitModuleID'],
'itemClass': entry['Class'], 'itemClass': entry['Class'],
'engineering': [], # TODO: Check casing of names for this 'engineering': [{'blueprintName': mod} for mod in entry['WeaponMods']],
} }
], ],
} }