Fix a set of bugs that prevented EHP/HP switching and passive recharge

numbers to work correctly
This commit is contained in:
cncfanatics
2010-10-24 23:06:37 +02:00
parent 1290efaac3
commit ecc48de635
4 changed files with 38 additions and 22 deletions

View File

@@ -298,6 +298,13 @@ class Fit(object):
fit.clear()
fit.calculateModifiedAttributes()
def getDamagePattern(self, fitID):
if fitID is None:
return
fit = eos.db.getFit(fitID)
return fit.damagePattern
def setDamagePattern(self, fitID, pattern):
if fitID is None:
return
@@ -305,6 +312,7 @@ class Fit(object):
fit = eos.db.getFit(fitID)
fit.damagePattern = pattern
eos.db.commit()
fit.clear()
fit.calculateModifiedAttributes()