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

Fixes #2360: Translate Elements MaterialReward as Raw

This commit is contained in:
INeedMana 2025-03-12 22:53:32 +01:00
parent 17bdcf00b0
commit 3197f019f2

View File

@ -1688,6 +1688,8 @@ class EDLogs(FileSystemEventHandler):
if 'Category' in reward: # Category not present in E:D 3.0
category = self.category(reward['Category'])
material = self.canonicalise(reward['Name'])
if category == 'Elements':
category = 'Raw'
self.state[category][material] += reward.get('Count', 1)
elif event_type == 'engineercontribution':