Fixed a few issues with command bursts
This commit is contained in:
@@ -22,7 +22,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(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"), "capacitorNeed", value)
|
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"), "capacitorNeed", value)
|
||||||
|
|||||||
@@ -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):
|
||||||
for x in xrange(1, 4):
|
for x in xrange(1, 4):
|
||||||
|
|||||||
@@ -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):
|
||||||
for x in xrange(1, 4):
|
for x in xrange(1, 4):
|
||||||
|
|||||||
@@ -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):
|
||||||
for x in xrange(1, 4):
|
for x in xrange(1, 4):
|
||||||
|
|||||||
@@ -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):
|
||||||
for x in xrange(1, 4):
|
for x in xrange(1, 4):
|
||||||
|
|||||||
@@ -456,9 +456,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
|
||||||
@@ -489,7 +489,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)
|
||||||
|
|||||||
Reference in New Issue
Block a user