1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 19:37:39 +03:00

Handle selling ship on ShipyardSwap

This commit is contained in:
Jonathan Harris 2017-11-14 10:49:01 +00:00
parent 8314a47da6
commit b860b85d91

View File

@ -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