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

Credits: UpgradeWeapon should now include a credits cost.

Need to see 4.0.0.400 event for this and UpgradeSuit to be sure they
don't also cite materials costs.  But the hope is there'd be a new
empty/file `ShipLocker` event anyway.
This commit is contained in:
Athanasius 2021-06-10 12:24:13 +01:00
parent 59b410341c
commit c2d75e7f1d

View File

@ -1288,8 +1288,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
elif event_type == 'UpgradeWeapon':
# We're not actually keeping track of all owned weapons, only those in
# Suit Loadouts.
# alpha4 - credits? Shouldn't cost any!
pass
self.state['Credits'] -= entry.get('Cost', 0)
elif event_type == 'ScanOrganic':
# Nothing of interest to our state.