Add structure skill effects

This commit is contained in:
blitzmann
2016-07-03 20:03:00 -04:00
parent fb2e6e5c17
commit 8ae6ad879e
5 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
type = 'active'
def handler(fit, module, context):
pass

View File

@@ -0,0 +1,4 @@
type = "passive", "structure"
def handler(fit, src, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Structure Doomsday Weapon",
"duration", src.getModifiedItemAttr("durationBonus"), skill="Structure Doomsday Operation")

View File

@@ -0,0 +1,5 @@
type = "passive", "structure"
def handler(fit, src, context):
groups = ("Structure Warp Scrambler", "Structure Disruption Battery", "Structure Stasis Webifier")
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
"capacitorNeed", src.getModifiedItemAttr("capNeedBonus"), skill="Structure Electronic Systems")

View File

@@ -0,0 +1,5 @@
type = "passive", "structure"
def handler(fit, src, context):
groups = ("Structure Energy Neutralizer", "Structure Area Denial Module")
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
"capacitorNeed", src.getModifiedItemAttr("capNeedBonus"), skill="Structure Engineering Systems")

View File

@@ -0,0 +1,6 @@
type = "passive", "structure"
def handler(fit, src, context):
groups = ("Structure Anti-Capital Missile", "Structure Anti-Subcapital Missile", "Structure Guided Bomb")
for damageType in ("em", "thermal", "explosive", "kinetic"):
fit.modules.filteredChargeBoost(lambda mod: mod.charge.group.name in groups,
"%sDamage"%damageType, src.getModifiedItemAttr("damageMultiplierBonus"), skill="Structure Missile Systems")