1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

delCommanderSuitLoadout done, update in-progress

This commit is contained in:
A_D 2021-06-01 14:31:34 +02:00
parent a06095aba0
commit 41c826f536
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

@ -1126,7 +1126,38 @@ def journal_entry( # noqa: C901, CCR001
new_add_event('setCommanderSuitLoadout', entry['timestamp'], to_send)
# Community Goals
elif event_name == 'DeleteSuitLoadout':
new_add_event('delCommanderSuitLoadout', entry['timestamp'], {'loadoutGameID': entry['LoadoutID']})
elif event_name == 'RenameSuitLoadout':
to_send = {
'loadoutGameID': entry['LoadoutID'],
'loadoutName': entry['LoadoutName'],
# may as well...
'suitType': entry['SuitName'],
'suitGameID': entry['SuitID']
}
new_add_event('updateCommanderSuitLoadout', entry['timestamp'], {})
elif event_name == 'LoadoutEquipModule':
to_send = {
'loadoutGameID': entry['LoadoutID'],
'loadoutName': entry['LoadoutName'],
'suitType': entry['SuitName'],
'suitGameID': entry['SuitID'],
'suitLoadout': [
{
'slotName': entry['SlotName'],
'itemName': entry['ModuleName'],
'itemGameID': entry['SuitModuleID'],
# TODO: As of 4.0.0.200, this event does *NOT* include the class
}
],
}
new_add_event('updateCommanderSuitLoadout', entry['timestamp'], to_send)
# Community Goals
if event_name == 'CommunityGoal':
# Remove any unsent
this.filter_events(