Polish up context menu related code, start work on item stats

This commit is contained in:
cncfanatics
2010-10-04 13:45:30 +02:00
parent dc44598962
commit 1654843295
5 changed files with 96 additions and 55 deletions

View File

@@ -41,6 +41,10 @@ class Fit(object):
return names
def getModule(self, fitID, pos):
fit = eos.db.getFit(fitID)
return fit.modules[pos]
def newFit(self, shipID, name):
fit = eos.types.Fit()
fit.ship = eos.types.Ship(eos.db.getItem(shipID))