Convert implant location change to a command

This commit is contained in:
blitzmann
2018-10-28 21:59:14 -04:00
parent 50c22c836b
commit 881b92a6ea
7 changed files with 71 additions and 15 deletions

View File

@@ -424,15 +424,6 @@ class Fit(FitDeprecated):
else:
return False
def toggleImplantSource(self, fitID, source):
pyfalog.debug("Toggling implant source for fit ID: {0}", fitID)
fit = eos.db.getFit(fitID)
fit.implantSource = source
eos.db.commit()
self.recalc(fit)
return True
def toggleRestrictionIgnore(self, fitID):
pyfalog.debug("Toggling restriction ignore for fit ID: {0}", fitID)
fit = eos.db.getFit(fitID)

View File

@@ -46,6 +46,16 @@ class FitDeprecated(object):
eos.db.commit()
return old_name, newName
@deprecated
def toggleImplantSource(self, fitID, source):
pyfalog.debug("Toggling implant source for fit ID: {0}", fitID)
fit = eos.db.getFit(fitID)
fit.implantSource = source
eos.db.commit()
self.recalc(fit)
return True
@deprecated
def toggleDrone(self, fitID, i):
pyfalog.debug("Toggling drones for fit ID: {0}", fitID)