Add structure rig effects (untested)

This commit is contained in:
blitzmann
2016-07-05 23:24:24 -04:00
parent 4d158d99fd
commit 7b2a89d66b
14 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
type = "passive"
def handler(fit, src, context):
groups = ("Structure Anti-Subcapital Missile", "Structure Anti-Capital Missile")
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.group.name in groups,
"aoeVelocity", src.getModifiedItemAttr("structureRigMissileExploVeloBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Doomsday Weapon",
"lightningWeaponDamageLossTarget", src.getModifiedItemAttr("structureRigDoomsdayDamageLossTargetBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Doomsday Weapon",
"lightningWeaponTargetAmount", src.getModifiedItemAttr("structureRigDoomsdayTargetAmountBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,6 @@
type = "passive"
def handler(fit, src, context):
groups = ("Structure ECM Battery", "Structure Disruption Battery")
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name in groups,
"capacitorNeed", src.getModifiedItemAttr("structureRigEwarCapUseBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,15 @@
type = "passive"
def handler(fit, src, context):
groups = ("Structure ECM Battery", "Structure Disruption Battery")
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name in groups,
"falloff", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
stackingPenalties=True)
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name in groups,
"maxRange", src.getModifiedItemAttr("structureRigEwarOptimalBonus"),
stackingPenalties=True)
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name in groups,
"falloffEffectiveness", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, src, context):
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.group.name == "Structure Guided Bomb",
"aoeCloudSize", src.getModifiedItemAttr("structureRigMissileExplosionRadiusBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,3 @@
type = "passive"
def handler(fit, src, context):
fit.ship.increaseItemAttr("maxLockedTargets", src.getModifiedItemAttr("structureRigMaxTargetBonus"))

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Energy Neutralizer",
"capacitorNeed", src.getModifiedItemAttr("structureRigEwarCapUseBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,9 @@
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Energy Neutralizer",
"maxRange", src.getModifiedItemAttr("structureRigEwarOptimalBonus"),
stackingPenalties=True)
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Energy Neutralizer",
"falloffEffectiveness", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Area Denial Module",
"capacitorNeed", src.getModifiedItemAttr("structureRigPDCapUseBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, src, context):
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Structure Area Denial Module",
"empFieldRange", src.getModifiedItemAttr("structureRigPDRangeBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,4 @@
type = "passive"
def handler(fit, src, context):
fit.ship.boostItemAttr("scanResolution", src.getModifiedItemAttr("structureRigScanResBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, src, context):
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.group.name == "Structure Guided Bomb",
"maxVelocity", src.getModifiedItemAttr("structureRigMissileVelocityBonus"),
stackingPenalties=True)

View File

@@ -0,0 +1,6 @@
type = "passive"
def handler(fit, src, context):
groups = ("Structure Anti-Subcapital Missile", "Structure Anti-Capital Missile")
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.group.name in groups,
"maxVelocity", src.getModifiedItemAttr("structureRigMissileVelocityBonus"),
stackingPenalties=True)