Use short ship names along with fit names

This commit is contained in:
DarkPhoenix
2019-08-01 11:12:26 +03:00
parent 0114417018
commit 154122388e
3 changed files with 7 additions and 6 deletions

View File

@@ -110,10 +110,10 @@ class Fit:
for shipID in shipMap:
ship = eos.db.getItem(shipID)
if ship is not None:
shipMap[shipID] = ship.name
shipMap[shipID] = (ship.name, ship.getShortName())
for fit in fits:
try:
fit.shipName = shipMap[fit.shipID]
fit.shipName, fit.shipNameShort = shipMap[fit.shipID]
except KeyError:
pass
return fits