Add smartbombs to calculation

This commit is contained in:
DarkPhoenix
2019-07-04 18:37:26 +03:00
parent 78d2dff0d8
commit 417e478d27
3 changed files with 18 additions and 3 deletions

View File

@@ -216,7 +216,10 @@ class GraphFrame(wx.Frame):
max_y = max(max_y, max_y_this)
self.subplot.plot(xs, ys)
legend.append('{} ({})'.format(fit.name, fit.ship.item.getShortName()))
if target is None:
legend.append('{} ({})'.format(fit.name, fit.ship.item.getShortName()))
else:
legend.append('{} ({}) vs {} ({})'.format(fit.name, fit.ship.item.getShortName(), target.name, target.ship.item.getShortName()))
except Exception as ex:
pyfalog.warning('Invalid values in "{0}"', fit.name)
self.canvas.draw()