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

Items: Decrement BackPack Consumable on UseConsumable

This commit is contained in:
Athanasius 2021-04-30 14:30:37 +01:00
parent 1f8215ed92
commit 422b766586

View File

@ -914,7 +914,9 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
# Parameters: # Parameters:
# • Name # • Name
# • Type # • Type
pass for c in self.state['BackPackMaterials']['Consumables']:
if c['Name'] == entry['Name']:
c['Count'] -= 1
elif event_type == 'SwitchSuitLoadout': elif event_type == 'SwitchSuitLoadout':
# alpha4 # alpha4
@ -1144,8 +1146,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
# alpha4 # alpha4
pass pass
# alpha4
elif event_type == 'ScanOrganic': elif event_type == 'ScanOrganic':
# Nothing of interest to our state.
pass pass
elif event_type == 'SellOrganicData': elif event_type == 'SellOrganicData':