Fixed a few issues with command bursts

This commit is contained in:
blitzman
2016-12-09 00:07:35 -05:00
parent 4a95156e35
commit 907196018b
6 changed files with 8 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ def handler(fit, module, context, **kwargs):
if id == 10: # Shield Burst: Shield Harmonizing: Shield Resistance
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
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"), "capacitorNeed", value)

View File

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

View File

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

View File

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

View File

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

View File

@@ -456,9 +456,9 @@ class Fit(object):
def __runCommandBoosts(self, runTime="normal"):
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
effect_runTime, value, thing, effect = info
effect_runTime, value, thing, effect = self.commandBonuses[warfareBuffID]
if runTime != effect_runTime:
continue
@@ -489,7 +489,7 @@ class Fit(object):
except:
pass
self.commandBonuses.clear()
del self.commandBonuses[warfareBuffID]
def calculateModifiedAttributes(self, targetFit=None, withBoosters=False, dirtyStorage=None):
timer = Timer(u'Fit: {}, {}'.format(self.ID, self.name), logger)