1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-19 02:17:38 +03:00

Merge pull request #2388 from pan-mroku/bugfix/fix_raw_MaterialReward

Fixes #2360: Translate Elements MaterialReward as Raw
This commit is contained in:
David Sangrey 2025-04-01 01:32:28 +01:00 committed by GitHub
commit d9debd3222
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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':