From 8ae6ad879e43846aa257bdf7dc06323f0093cca4 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 3 Jul 2016 20:03:00 -0400 Subject: [PATCH] Add structure skill effects --- eos/effects/lightningweapon.py | 3 +++ eos/effects/skillstructuredoomsdaydurationbonus.py | 4 ++++ eos/effects/skillstructureelectronicsystemscapneedbonus.py | 5 +++++ eos/effects/skillstructureengineeringsystemscapneedbonus.py | 5 +++++ eos/effects/skillstructuremissiledamagebonus.py | 6 ++++++ 5 files changed, 23 insertions(+) create mode 100644 eos/effects/lightningweapon.py create mode 100644 eos/effects/skillstructuredoomsdaydurationbonus.py create mode 100644 eos/effects/skillstructureelectronicsystemscapneedbonus.py create mode 100644 eos/effects/skillstructureengineeringsystemscapneedbonus.py create mode 100644 eos/effects/skillstructuremissiledamagebonus.py diff --git a/eos/effects/lightningweapon.py b/eos/effects/lightningweapon.py new file mode 100644 index 000000000..3136bc64c --- /dev/null +++ b/eos/effects/lightningweapon.py @@ -0,0 +1,3 @@ +type = 'active' +def handler(fit, module, context): + pass diff --git a/eos/effects/skillstructuredoomsdaydurationbonus.py b/eos/effects/skillstructuredoomsdaydurationbonus.py new file mode 100644 index 000000000..7185051a7 --- /dev/null +++ b/eos/effects/skillstructuredoomsdaydurationbonus.py @@ -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") diff --git a/eos/effects/skillstructureelectronicsystemscapneedbonus.py b/eos/effects/skillstructureelectronicsystemscapneedbonus.py new file mode 100644 index 000000000..b1067ce90 --- /dev/null +++ b/eos/effects/skillstructureelectronicsystemscapneedbonus.py @@ -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") diff --git a/eos/effects/skillstructureengineeringsystemscapneedbonus.py b/eos/effects/skillstructureengineeringsystemscapneedbonus.py new file mode 100644 index 000000000..c251a210c --- /dev/null +++ b/eos/effects/skillstructureengineeringsystemscapneedbonus.py @@ -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") diff --git a/eos/effects/skillstructuremissiledamagebonus.py b/eos/effects/skillstructuremissiledamagebonus.py new file mode 100644 index 000000000..e1dc32096 --- /dev/null +++ b/eos/effects/skillstructuremissiledamagebonus.py @@ -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")