Formatting and spacing
This commit is contained in:
@@ -6,7 +6,7 @@ type = "active", "projected"
|
||||
|
||||
def handler(fit, src, context):
|
||||
if "projected" in context and (
|
||||
(hasattr(src, "state") and src.state >= State.ACTIVE) or hasattr(src, "amountActive")):
|
||||
(hasattr(src, "state") and src.state >= State.ACTIVE) or hasattr(src, "amountActive")):
|
||||
multiplier = src.amountActive if hasattr(src, "amountActive") else 1
|
||||
amount = src.getModifiedItemAttr("energyNeutralizerAmount")
|
||||
time = src.getModifiedItemAttr("duration")
|
||||
|
||||
@@ -9,7 +9,7 @@ type = "active", "projected"
|
||||
|
||||
def handler(fit, src, context):
|
||||
if "projected" in context and (
|
||||
(hasattr(src, "state") and src.state >= State.ACTIVE) or hasattr(src, "amountActive")):
|
||||
(hasattr(src, "state") and src.state >= State.ACTIVE) or hasattr(src, "amountActive")):
|
||||
amount = src.getModifiedItemAttr("energyNeutralizerAmount")
|
||||
time = src.getModifiedItemAttr("duration")
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ type = "active", "projected"
|
||||
|
||||
def handler(fit, src, context):
|
||||
if "projected" in context and (
|
||||
(hasattr(src, "state") and src.state >= State.ACTIVE) or hasattr(src, "amountActive")):
|
||||
(hasattr(src, "state") and src.state >= State.ACTIVE) or hasattr(src, "amountActive")):
|
||||
amount = src.getModifiedItemAttr("energyNeutralizerAmount")
|
||||
time = src.getModifiedItemAttr("duration")
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ type = "active", "projected"
|
||||
|
||||
def handler(fit, src, context):
|
||||
if "projected" in context and (
|
||||
(hasattr(src, "state") and src.state >= State.ACTIVE) or hasattr(src, "amountActive")):
|
||||
(hasattr(src, "state") and src.state >= State.ACTIVE) or hasattr(src, "amountActive")):
|
||||
amount = src.getModifiedItemAttr("energyNeutralizerAmount")
|
||||
time = src.getModifiedItemAttr("energyNeutralizerDuration")
|
||||
|
||||
|
||||
@@ -10,5 +10,5 @@ def handler(fit, module, context):
|
||||
# If we only increased it by one, we'd get the number to stay equal
|
||||
# As Comman Processors use one themselves too
|
||||
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name == "Gang Coordinator" and
|
||||
"maxGroupActive" in mod.itemModifiedAttributes,
|
||||
"maxGroupActive" in mod.itemModifiedAttributes,
|
||||
"maxGroupActive", 1)
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "miningCapacitorNeed"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
groups = ("Mining Laser", "Strip Miner", "Frequency Mining Laser",
|
||||
"Ice Harvester", "Gas Cloud Harvester")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "miningDuration"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
groups = ("Mining Laser", "Strip Miner", "Frequency Mining Laser",
|
||||
"Ice Harvester", "Gas Cloud Harvester")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "electronicMaxRange"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
groups = ("Target Painter", "Weapon Disruptor", "Sensor Dampener", "ECM", "Burst Jammer")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
"maxRange", module.getModifiedItemAttr("commandBonus"),
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "miningMaxRange"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gas Cloud Harvesting") or mod.item.requiresSkill(
|
||||
"Ice Harvesting") or mod.item.requiresSkill("Mining"),
|
||||
"maxRange", module.getModifiedItemAttr("commandBonus"),
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "interdictionMaxRange"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
groups = ("Stasis Web", "Warp Scrambler")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
"maxRange", module.getModifiedItemAttr("commandBonus"),
|
||||
|
||||
@@ -9,7 +9,7 @@ gangBonus = "commandBonus"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.ship.boostItemAttr("maxTargetRange", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties=True)
|
||||
for scanType in ("Gravimetric", "Radar", "Ladar", "Magnetometric"):
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "shieldRepairCapacitorNeed"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.modules.filteredItemBoost(
|
||||
lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),
|
||||
"capacitorNeed", module.getModifiedItemAttr("commandBonus"))
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "shieldRepairDuration"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.modules.filteredItemBoost(
|
||||
lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),
|
||||
"duration", module.getModifiedItemAttr("commandBonus"))
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "shieldResistance"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
for damageType in ("Em", "Explosive", "Thermal", "Kinetic"):
|
||||
fit.ship.boostItemAttr("shield%sDamageResonance" % damageType,
|
||||
module.getModifiedItemAttr("commandBonus"),
|
||||
|
||||
@@ -10,7 +10,7 @@ gangBoost = "armorRepairCapacitorNeed"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.modules.filteredItemBoost(
|
||||
lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Remote Armor Repair Systems"),
|
||||
"capacitorNeed", module.getModifiedItemAttr("commandBonus"))
|
||||
|
||||
@@ -10,7 +10,7 @@ gangBoost = "armorResistance"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
for damageType in ("Em", "Thermal", "Explosive", "Kinetic"):
|
||||
fit.ship.boostItemAttr("armor%sDamageResonance" % damageType,
|
||||
module.getModifiedItemAttr("commandBonus"),
|
||||
|
||||
@@ -10,7 +10,7 @@ gangBoost = "armorRepairDuration"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.modules.filteredItemBoost(
|
||||
lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Remote Armor Repair Systems"),
|
||||
"duration", module.getModifiedItemAttr("commandBonus"))
|
||||
|
||||
@@ -10,7 +10,7 @@ gangBoost = "electronicMaxRange"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
groups = ("Target Painter", "Weapon Disruptor", "Sensor Dampener", "ECM", "Burst Jammer")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
"maxRange", module.getModifiedItemAttr("commandBonus"),
|
||||
|
||||
@@ -11,7 +11,7 @@ gangBonus = "commandBonus"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.ship.boostItemAttr("maxTargetRange", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties=True)
|
||||
for scanType in ("Gravimetric", "Radar", "Ladar", "Magnetometric"):
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "miningCapacitorNeed"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
groups = ("Mining Laser", "Strip Miner", "Frequency Mining Laser",
|
||||
"Ice Harvester", "Gas Cloud Harvester")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "miningDuration"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
groups = ("Mining Laser", "Strip Miner", "Frequency Mining Laser",
|
||||
"Ice Harvester", "Gas Cloud Harvester")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
|
||||
@@ -8,7 +8,7 @@ gangBoost = "miningMaxRange"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gas Cloud Harvesting") or mod.item.requiresSkill(
|
||||
"Ice Harvesting") or mod.item.requiresSkill("Mining"),
|
||||
"maxRange", module.getModifiedItemAttr("commandBonus"),
|
||||
|
||||
@@ -10,7 +10,7 @@ gangBoost = "shieldRepairCapacitorNeed"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.modules.filteredItemBoost(
|
||||
lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),
|
||||
"capacitorNeed", module.getModifiedItemAttr("commandBonus"))
|
||||
|
||||
@@ -10,7 +10,7 @@ gangBoost = "shieldResistance"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
for damageType in ("Em", "Explosive", "Thermal", "Kinetic"):
|
||||
fit.ship.boostItemAttr("shield%sDamageResonance" % damageType,
|
||||
module.getModifiedItemAttr("commandBonus"),
|
||||
|
||||
@@ -10,6 +10,6 @@ gangBoost = "signatureRadius"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.ship.boostItemAttr("signatureRadius", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties=True)
|
||||
|
||||
@@ -10,7 +10,7 @@ gangBoost = "interdictionMaxRange"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
groups = ("Stasis Web", "Warp Scrambler")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
"maxRange", module.getModifiedItemAttr("commandBonus"),
|
||||
|
||||
@@ -10,7 +10,7 @@ gangBoost = "speedFactor"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Propulsion Module",
|
||||
"speedFactor", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties=True)
|
||||
|
||||
@@ -11,6 +11,6 @@ runTime = "late"
|
||||
|
||||
def handler(fit, src, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.ship.boostItemAttr(gangBoost,
|
||||
src.getModifiedItemAttr(gangBonus) * src.parent.character.getSkill(gangBonusSkill).level)
|
||||
|
||||
@@ -11,6 +11,6 @@ runTime = "late"
|
||||
|
||||
def handler(fit, src, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.ship.boostItemAttr(gangBoost,
|
||||
src.getModifiedItemAttr(gangBonus) * src.parent.character.getSkill(gangBonusSkill).level)
|
||||
|
||||
@@ -11,6 +11,6 @@ runTime = "late"
|
||||
|
||||
def handler(fit, src, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.ship.boostItemAttr(gangBoost,
|
||||
src.getModifiedItemAttr(gangBonus) * src.parent.character.getSkill(gangBonusSkill).level)
|
||||
|
||||
@@ -11,6 +11,6 @@ runTime = "late"
|
||||
|
||||
def handler(fit, src, context):
|
||||
if "gang" not in context:
|
||||
return
|
||||
return
|
||||
fit.ship.boostItemAttr(gangBoost,
|
||||
src.getModifiedItemAttr(gangBonus) * src.parent.character.getSkill(gangBonusSkill).level)
|
||||
|
||||
Reference in New Issue
Block a user