mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Support for 'BuyMicroResources' event
This is currently only when buying Consumables from a Pioneer Supplies vendor. One event per Item type, it's not an array. We're assuming these go into ShipLocker, not BackPack.
This commit is contained in:
parent
28c4fa03b1
commit
a2c48fdd70
@ -754,6 +754,11 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
|||||||
{self.canonicalise(x['Name']): x['Count'] for x in clean_items}
|
{self.canonicalise(x['Name']): x['Count'] for x in clean_items}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
elif event_type == 'BuyMicroResources':
|
||||||
|
# Buying from a Pioneer Supplies, goes directly to ShipLocker.
|
||||||
|
# One event per Item, not an array.
|
||||||
|
self.state[entry['Category']][entry['Name']] += entry['Count']
|
||||||
|
|
||||||
elif event_type == 'NavRoute':
|
elif event_type == 'NavRoute':
|
||||||
# Added in ED 3.7 - multi-hop route details in NavRoute.json
|
# Added in ED 3.7 - multi-hop route details in NavRoute.json
|
||||||
with open(join(self.currentdir, 'NavRoute.json'), 'rb') as rf: # type: ignore
|
with open(join(self.currentdir, 'NavRoute.json'), 'rb') as rf: # type: ignore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user