Remove redundent parentheses

This commit is contained in:
Ebag333
2016-10-19 08:37:07 -07:00
parent ef9bd3edc8
commit 68f769aac2
6 changed files with 6 additions and 6 deletions

View File

@@ -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")

View File

@@ -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")

View File

@@ -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")

View File

@@ -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")

View File

@@ -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")

View File

@@ -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))