Implement selectable booster side effects and persist them to the database, very much based on the fighter ability code. Still need to name them and enable the effects.
This also removes the old boosterActiveSideEffect table definition (migration script to drop table still needs to be written)
This commit is contained in:
@@ -991,6 +991,13 @@ class Fit(object):
|
||||
eos.db.commit()
|
||||
self.recalc(fit)
|
||||
|
||||
def toggleBoosterSideEffect(self, fitID, sideEffect):
|
||||
pyfalog.debug("Toggling booster side effect for fit ID: {0}", fitID)
|
||||
fit = eos.db.getFit(fitID)
|
||||
sideEffect.active = not sideEffect.active
|
||||
eos.db.commit()
|
||||
self.recalc(fit)
|
||||
|
||||
def changeChar(self, fitID, charID):
|
||||
pyfalog.debug("Changing character ({0}) for fit ID: {1}", charID, fitID)
|
||||
if fitID is None or charID is None:
|
||||
|
||||
Reference in New Issue
Block a user