From b860b85d919af8e4060ecf00965b4d911445b15b Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Tue, 14 Nov 2017 10:49:01 +0000 Subject: [PATCH] Handle selling ship on ShipyardSwap --- plugins/edsm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/edsm.py b/plugins/edsm.py index 049c35d2..4306b382 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -216,7 +216,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): if state['PaintJob'] is not None: props.append(('paintJob', state['PaintJob'])) updateship(cmdr, state['ShipID'], state['ShipType'], props) - elif entry['event'] in ['ShipyardBuy', 'ShipyardSell', 'SellShipOnRebuy']: + elif entry['event'] in ['ShipyardBuy', 'ShipyardSell', 'SellShipOnRebuy', 'ShipyardSwap']: sellship(cmdr, entry.get('SellShipID')) # Send cargo to EDSM on startup or change