From c2d75e7f1dcc59d2f144def42d617ea89dae1e1b Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 10 Jun 2021 12:24:13 +0100 Subject: [PATCH] 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. --- monitor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monitor.py b/monitor.py index 25001eb2..ff08c3eb 100644 --- a/monitor.py +++ b/monitor.py @@ -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.