Fix issue with gangboost not recalculating. We really should ensure that a command fit that has been calcuated does not need ot recalculate unless it's changed / is needed. But that's for a different time.
This commit is contained in:
@@ -43,7 +43,6 @@ def handler(fit, module, context, **kwargs):
|
|||||||
fit.ship.boostItemAttr("scanResolution", value, stackingPenalties=True)
|
fit.ship.boostItemAttr("scanResolution", value, stackingPenalties=True)
|
||||||
|
|
||||||
if id == 17: # Information Burst: Electronic Superiority: EWAR Range and Strength
|
if id == 17: # Information Burst: Electronic Superiority: EWAR Range and Strength
|
||||||
pass
|
|
||||||
groups = ("ECM", "Sensor Dampener", "Weapon Disruptor", "Target Painter")
|
groups = ("ECM", "Sensor Dampener", "Weapon Disruptor", "Target Painter")
|
||||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups, "maxRange", value, stackingPenalties=True)
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups, "maxRange", value, stackingPenalties=True)
|
||||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups, "falloffEffectiveness", value, stackingPenalties=True)
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups, "falloffEffectiveness", value, stackingPenalties=True)
|
||||||
@@ -76,8 +75,7 @@ def handler(fit, module, context, **kwargs):
|
|||||||
|
|
||||||
if id == 21: # Skirmish Burst: Interdiction Maneuvers: Tackle Range
|
if id == 21: # Skirmish Burst: Interdiction Maneuvers: Tackle Range
|
||||||
groups = ("Stasis Web", "Warp Scrambler")
|
groups = ("Stasis Web", "Warp Scrambler")
|
||||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups, "maxRange", value,
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups, "maxRange", value, stackingPenalties=True)
|
||||||
stackingPenalties=True)
|
|
||||||
|
|
||||||
if id == 22: # Skirmish Burst: Rapid Deployment: AB/MWD Speed Increase
|
if id == 22: # Skirmish Burst: Rapid Deployment: AB/MWD Speed Increase
|
||||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Afterburner") or mod.item.requiresSkill("High Speed Maneuvering"), "speedFactor", value, stackingPenalties=True)
|
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Afterburner") or mod.item.requiresSkill("High Speed Maneuvering"), "speedFactor", value, stackingPenalties=True)
|
||||||
|
|||||||
@@ -401,6 +401,8 @@ class Fit(object):
|
|||||||
self.__capUsed = None
|
self.__capUsed = None
|
||||||
self.__capRecharge = None
|
self.__capRecharge = None
|
||||||
self.ecmProjectedStr = 1
|
self.ecmProjectedStr = 1
|
||||||
|
self.commandBonuses = {}
|
||||||
|
|
||||||
del self.__calculatedTargets[:]
|
del self.__calculatedTargets[:]
|
||||||
del self.__extraDrains[:]
|
del self.__extraDrains[:]
|
||||||
|
|
||||||
@@ -542,7 +544,7 @@ class Fit(object):
|
|||||||
# projections from the normal fit calculations. But we must ensure that
|
# projections from the normal fit calculations. But we must ensure that
|
||||||
# projection have modifying stuff applied, such as gang boosts and other
|
# projection have modifying stuff applied, such as gang boosts and other
|
||||||
# local modules that may help
|
# local modules that may help
|
||||||
if self.__calculated and not projected:
|
if self.__calculated and not projected and not withBoosters:
|
||||||
logger.debug("Fit has already been calculated and is not projected, returning: %r", self)
|
logger.debug("Fit has already been calculated and is not projected, returning: %r", self)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -51,9 +51,7 @@ class CommandViewDrop(wx.PyDropTarget):
|
|||||||
return t
|
return t
|
||||||
|
|
||||||
class CommandView(d.Display):
|
class CommandView(d.Display):
|
||||||
DEFAULT_COLS = ["State",
|
DEFAULT_COLS = ["Base Name",]
|
||||||
"Base Name",
|
|
||||||
]
|
|
||||||
|
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
d.Display.__init__(self, parent, style = wx.LC_SINGLE_SEL | wx.BORDER_NONE)
|
d.Display.__init__(self, parent, style = wx.LC_SINGLE_SEL | wx.BORDER_NONE)
|
||||||
|
|||||||
Reference in New Issue
Block a user