Remove redundent parentheses
This commit is contained in:
@@ -6,4 +6,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, container, context):
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Ice Harvesting"),
|
||||
"duration", container.getModifiedItemAttr("shipBonusORE3"), skill=("Mining Barge"))
|
||||
"duration", container.getModifiedItemAttr("shipBonusORE3"), skill="Mining Barge")
|
||||
@@ -6,4 +6,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Mining"),
|
||||
"duration", ship.getModifiedItemAttr("shipBonusORE3"), skill=("Mining Barge"))
|
||||
"duration", ship.getModifiedItemAttr("shipBonusORE3"), skill="Mining Barge")
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Mining") or mod.item.requiresSkill("Ice Harvesting"),
|
||||
"maxRange", ship.getModifiedItemAttr("shipBonusORE2"), skill=("Mining Barge"))
|
||||
"maxRange", ship.getModifiedItemAttr("shipBonusORE2"), skill="Mining Barge")
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
# Variations of ship: Retriever (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
fit.ship.boostItemAttr("specialOreHoldCapacity", ship.getModifiedItemAttr("shipBonusORE2"), skill=("Mining Barge"))
|
||||
fit.ship.boostItemAttr("specialOreHoldCapacity", ship.getModifiedItemAttr("shipBonusORE2"), skill="Mining Barge")
|
||||
@@ -4,4 +4,4 @@
|
||||
# Variations of ship: Procurer (2 of 2)
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
fit.ship.boostItemAttr("shieldCapacity", ship.getModifiedItemAttr("shipBonusORE2"), skill=("Mining Barge"))
|
||||
fit.ship.boostItemAttr("shieldCapacity", ship.getModifiedItemAttr("shipBonusORE2"), skill="Mining Barge")
|
||||
|
||||
@@ -180,7 +180,7 @@ class Fighter(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
|
||||
activeTimes.append(ability.numShots * ability.cycleTime)
|
||||
reloadTimes.append(ability.reloadTime)
|
||||
|
||||
if(len(activeTimes) > 0):
|
||||
if len(activeTimes) > 0:
|
||||
shortestActive = sorted(activeTimes)[0]
|
||||
longestReload = sorted(reloadTimes, reverse=True)[0]
|
||||
self.__dps = max(constantDps, self.__dps * shortestActive / (shortestActive + longestReload))
|
||||
|
||||
Reference in New Issue
Block a user