1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 08:40:34 +03:00

Suits: Handle 'SellSuit'

This commit is contained in:
Athanasius 2021-04-29 10:26:55 +01:00
parent c8d98bba2e
commit aeca211a88

View File

@ -1009,8 +1009,14 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
# alpha4:
# { "timestamp":"2021-04-29T09:15:51Z", "event":"SellSuit", "SuitID":1698364937435505,
# "Name":"explorationsuit_class1", "Name_Localised":"Artemis Suit", "Price":90000 }
try:
self.state['Suits'].pop(entry['SuitID'])
except KeyError:
logger.exception(f"SellSuit for a suit we didn't know about? {entry['SuitID']}")
# update credits total
pass
self.state['Credits'] += entry.get('Price', 0)
elif event_type == 'UpgradeSuit':
# alpha4