Fixed a few issues with command bursts

(cherry picked from commit 9071960)
This commit is contained in:
blitzman
2016-12-08 21:07:35 -08:00
committed by Ebag333
parent b529a28715
commit 96ddb0bbff
6 changed files with 8 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ def handler(fit, module, context, **kwargs):
if id == 10: # Shield Burst: Shield Harmonizing: Shield Resistance if id == 10: # Shield Burst: Shield Harmonizing: Shield Resistance
for damageType in ("Em", "Explosive", "Thermal", "Kinetic"): for damageType in ("Em", "Explosive", "Thermal", "Kinetic"):
fit.ship.boostItemAttr("shield%sDamageResonance" % damageType, value, stackingPenalties=True) fit.ship.boostItemAttr("shield%sDamageResonance" % damageType, value)
if id == 11: # Shield Burst: Active Shielding: Repair Duration/Capacitor if id == 11: # Shield Burst: Active Shielding: Repair Duration/Capacitor
fit.modules.filteredItemBoost( fit.modules.filteredItemBoost(

View File

@@ -3,7 +3,7 @@
# Used by: # Used by:
# Variations of module: Armor Command Burst I (2 of 2) # Variations of module: Armor Command Burst I (2 of 2)
type = "active" type = "active"
runTime = "late" runTime = "early"
def handler(fit, module, context): def handler(fit, module, context):

View File

@@ -3,7 +3,7 @@
# Used by: # Used by:
# Variations of module: Information Command Burst I (2 of 2) # Variations of module: Information Command Burst I (2 of 2)
type = "active" type = "active"
runTime = "late" runTime = "early"
def handler(fit, module, context): def handler(fit, module, context):

View File

@@ -3,7 +3,7 @@
# Used by: # Used by:
# Variations of module: Shield Command Burst I (2 of 2) # Variations of module: Shield Command Burst I (2 of 2)
type = "active" type = "active"
runTime = "late" runTime = "early"
def handler(fit, module, context): def handler(fit, module, context):

View File

@@ -3,7 +3,7 @@
# Used by: # Used by:
# Variations of module: Skirmish Command Burst I (2 of 2) # Variations of module: Skirmish Command Burst I (2 of 2)
type = "active" type = "active"
runTime = "late" runTime = "early"
def handler(fit, module, context): def handler(fit, module, context):

View File

@@ -458,9 +458,9 @@ class Fit(object):
def __runCommandBoosts(self, runTime="normal"): def __runCommandBoosts(self, runTime="normal"):
logger.debug("Applying gang boosts for %r", self) logger.debug("Applying gang boosts for %r", self)
for warfareBuffID, info in self.commandBonuses.iteritems(): for warfareBuffID in self.commandBonuses.keys():
# Unpack all data required to run effect properly # Unpack all data required to run effect properly
effect_runTime, value, thing, effect = info effect_runTime, value, thing, effect = self.commandBonuses[warfareBuffID]
if runTime != effect_runTime: if runTime != effect_runTime:
continue continue
@@ -491,7 +491,7 @@ class Fit(object):
except: except:
pass pass
self.commandBonuses.clear() del self.commandBonuses[warfareBuffID]
def calculateModifiedAttributes(self, targetFit=None, withBoosters=False, dirtyStorage=None): def calculateModifiedAttributes(self, targetFit=None, withBoosters=False, dirtyStorage=None):
timer = Timer(u'Fit: {}, {}'.format(self.ID, self.name), logger) timer = Timer(u'Fit: {}, {}'.format(self.ID, self.name), logger)