Fix citadel rig bonuses
This commit is contained in:
5
eos/effects/ecmburstjammer.py
Normal file
5
eos/effects/ecmburstjammer.py
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Used by:
|
||||||
|
# Modules from group: Burst Jammer (11 of 11)
|
||||||
|
type = "active"
|
||||||
|
def handler(fit, module, context):
|
||||||
|
pass
|
||||||
@@ -2,6 +2,6 @@ type = "passive"
|
|||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
groups = ("Structure Anti-Subcapital Missile", "Structure Anti-Capital Missile")
|
groups = ("Structure Anti-Subcapital Missile", "Structure Anti-Capital Missile")
|
||||||
|
|
||||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.group.name in groups,
|
fit.modules.filteredItemBoost(lambda mod: mod.charge.group.name in groups,
|
||||||
"aoeVelocity", src.getModifiedItemAttr("structureRigMissileExploVeloBonus"),
|
"aoeVelocity", src.getModifiedItemAttr("structureRigMissileExploVeloBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Doomsday Weapon",
|
fit.modules.filteredItemIncrease(lambda mod: mod.item.group.name == "Structure Doomsday Weapon",
|
||||||
"lightningWeaponTargetAmount", src.getModifiedItemAttr("structureRigDoomsdayTargetAmountBonus"),
|
"lightningWeaponTargetAmount", src.getModifiedItemAttr("structureRigDoomsdayTargetAmountBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
groups = ("Structure ECM Battery", "Structure Disruption Battery")
|
groups = ("Structure ECM Battery", "Structure Disruption Battery")
|
||||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name in groups,
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||||
"capacitorNeed", src.getModifiedItemAttr("structureRigEwarCapUseBonus"),
|
"capacitorNeed", src.getModifiedItemAttr("structureRigEwarCapUseBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
@@ -2,14 +2,14 @@ type = "passive"
|
|||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
groups = ("Structure ECM Battery", "Structure Disruption Battery")
|
groups = ("Structure ECM Battery", "Structure Disruption Battery")
|
||||||
|
|
||||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name in groups,
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||||
"falloff", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
|
"falloff", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|
||||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name in groups,
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||||
"maxRange", src.getModifiedItemAttr("structureRigEwarOptimalBonus"),
|
"maxRange", src.getModifiedItemAttr("structureRigEwarOptimalBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|
||||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name in groups,
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||||
"falloffEffectiveness", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
|
"falloffEffectiveness", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.group.name == "Structure Guided Bomb",
|
fit.modules.filteredChargeBoost(lambda mod: mod.charge.group.name == "Structure Guided Bomb",
|
||||||
"aoeCloudSize", src.getModifiedItemAttr("structureRigMissileExplosionRadiusBonus"),
|
"aoeCloudSize", src.getModifiedItemAttr("structureRigMissileExplosionRadiusBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
fit.ship.increaseItemAttr("maxLockedTargets", src.getModifiedItemAttr("structureRigMaxTargetBonus"))
|
fit.ship.filteredItemIncrease("maxLockedTargets", src.getModifiedItemAttr("structureRigMaxTargetBonus"))
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Energy Neutralizer",
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Structure Energy Neutralizer",
|
||||||
"capacitorNeed", src.getModifiedItemAttr("structureRigEwarCapUseBonus"),
|
"capacitorNeed", src.getModifiedItemAttr("structureRigEwarCapUseBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Energy Neutralizer",
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Structure Energy Neutralizer",
|
||||||
"maxRange", src.getModifiedItemAttr("structureRigEwarOptimalBonus"),
|
"maxRange", src.getModifiedItemAttr("structureRigEwarOptimalBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|
||||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Energy Neutralizer",
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Structure Energy Neutralizer",
|
||||||
"falloffEffectiveness", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
|
"falloffEffectiveness", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Area Denial Module",
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Structure Area Denial Module",
|
||||||
"capacitorNeed", src.getModifiedItemAttr("structureRigPDCapUseBonus"),
|
"capacitorNeed", src.getModifiedItemAttr("structureRigPDCapUseBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Area Denial Module",
|
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Structure Area Denial Module",
|
||||||
"empFieldRange", src.getModifiedItemAttr("structureRigPDRangeBonus"),
|
"empFieldRange", src.getModifiedItemAttr("structureRigPDRangeBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
fit.ship.boostItemAttr("scanResolution", src.getModifiedItemAttr("structureRigScanResBonus"),
|
fit.ship.filteredItemBoost("scanResolution", src.getModifiedItemAttr("structureRigScanResBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.group.name == "Structure Guided Bomb",
|
fit.modules.filteredChargeBoost(lambda mod: mod.charge.group.name == "Structure Guided Bomb",
|
||||||
"maxVelocity", src.getModifiedItemAttr("structureRigMissileVelocityBonus"),
|
"maxVelocity", src.getModifiedItemAttr("structureRigMissileVelocityBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, src, context):
|
def handler(fit, src, context):
|
||||||
groups = ("Structure Anti-Subcapital Missile", "Structure Anti-Capital Missile")
|
groups = ("Structure Anti-Subcapital Missile", "Structure Anti-Capital Missile")
|
||||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.group.name in groups,
|
fit.modules.filteredItemBoost(lambda mod: mod.charge.group.name in groups,
|
||||||
"maxVelocity", src.getModifiedItemAttr("structureRigMissileVelocityBonus"),
|
"maxVelocity", src.getModifiedItemAttr("structureRigMissileVelocityBonus"),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user