From c948c62cac345f34a4caeae1894c4f271d7cebce Mon Sep 17 00:00:00 2001 From: blitzmann Date: Tue, 5 Apr 2016 21:55:10 -0400 Subject: [PATCH] Add missing Dreadnaught effects --- eos/effects/shipbonusdreadnoughta1damagebonus.py | 3 +++ eos/effects/shipbonusdreadnoughta2armorresists.py | 6 ++++++ eos/effects/shipbonusdreadnoughta3capneed.py | 3 +++ eos/effects/shipbonusdreadnoughtc1damagebonus.py | 14 ++++++++++++++ eos/effects/shipbonusdreadnoughtc2shieldresists.py | 6 ++++++ eos/effects/shipbonusdreadnoughtc3reloadbonus.py | 3 +++ eos/effects/shipbonusdreadnoughtg1damagebonus.py | 3 +++ eos/effects/shipbonusdreadnoughtg2rofbonus.py | 3 +++ eos/effects/shipbonusdreadnoughtg3repairtime.py | 3 +++ eos/effects/shipbonusdreadnoughtm1damagebonus.py | 3 +++ eos/effects/shipbonusdreadnoughtm2rofbonus.py | 3 +++ eos/effects/shipbonusdreadnoughtm3repairtime.py | 3 +++ .../shipbonusdreadnoughtrole1damagebonus.py | 3 +++ 13 files changed, 56 insertions(+) create mode 100644 eos/effects/shipbonusdreadnoughta1damagebonus.py create mode 100644 eos/effects/shipbonusdreadnoughta2armorresists.py create mode 100644 eos/effects/shipbonusdreadnoughta3capneed.py create mode 100644 eos/effects/shipbonusdreadnoughtc1damagebonus.py create mode 100644 eos/effects/shipbonusdreadnoughtc2shieldresists.py create mode 100644 eos/effects/shipbonusdreadnoughtc3reloadbonus.py create mode 100644 eos/effects/shipbonusdreadnoughtg1damagebonus.py create mode 100644 eos/effects/shipbonusdreadnoughtg2rofbonus.py create mode 100644 eos/effects/shipbonusdreadnoughtg3repairtime.py create mode 100644 eos/effects/shipbonusdreadnoughtm1damagebonus.py create mode 100644 eos/effects/shipbonusdreadnoughtm2rofbonus.py create mode 100644 eos/effects/shipbonusdreadnoughtm3repairtime.py create mode 100644 eos/effects/shipbonusdreadnoughtrole1damagebonus.py diff --git a/eos/effects/shipbonusdreadnoughta1damagebonus.py b/eos/effects/shipbonusdreadnoughta1damagebonus.py new file mode 100644 index 000000000..e5da27ecd --- /dev/null +++ b/eos/effects/shipbonusdreadnoughta1damagebonus.py @@ -0,0 +1,3 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Energy Turret"), "damageMultiplier", src.getModifiedItemAttr("shipBonusDreadnoughtA1"), skill="Amarr Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughta2armorresists.py b/eos/effects/shipbonusdreadnoughta2armorresists.py new file mode 100644 index 000000000..b362a3a8e --- /dev/null +++ b/eos/effects/shipbonusdreadnoughta2armorresists.py @@ -0,0 +1,6 @@ +type = "passive" +def handler(fit, src, context): + fit.ship.boostItemAttr("armorExplosiveDamageResonance", src.getModifiedItemAttr("shipBonusDreadnoughtA2"), skill="Amarr Dreadnought") + fit.ship.boostItemAttr("armorEmDamageResonance", src.getModifiedItemAttr("shipBonusDreadnoughtA2"), skill="Amarr Dreadnought") + fit.ship.boostItemAttr("armorThermalDamageResonance", src.getModifiedItemAttr("shipBonusDreadnoughtA2"), skill="Amarr Dreadnought") + fit.ship.boostItemAttr("armorKineticDamageResonance", src.getModifiedItemAttr("shipBonusDreadnoughtA2"), skill="Amarr Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughta3capneed.py b/eos/effects/shipbonusdreadnoughta3capneed.py new file mode 100644 index 000000000..6feae74cc --- /dev/null +++ b/eos/effects/shipbonusdreadnoughta3capneed.py @@ -0,0 +1,3 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Energy Turret"), "capacitorNeed", src.getModifiedItemAttr("shipBonusDreadnoughtA3"), skill="Amarr Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughtc1damagebonus.py b/eos/effects/shipbonusdreadnoughtc1damagebonus.py new file mode 100644 index 000000000..2854627b9 --- /dev/null +++ b/eos/effects/shipbonusdreadnoughtc1damagebonus.py @@ -0,0 +1,14 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("XL Torpedoes"), "thermalDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("XL Cruise Missiles"), "kineticDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Torpedoes"), "emDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Torpedoes"), "explosiveDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("XL Cruise Missiles"), "explosiveDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("XL Cruise Missiles"), "thermalDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Torpedoes"), "thermalDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("XL Torpedoes"), "emDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Torpedoes"), "kineticDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("XL Torpedoes"), "kineticDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("XL Torpedoes"), "explosiveDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("XL Cruise Missiles"), "emDamage", src.getModifiedItemAttr("shipBonusDreadnoughtC1"), skill="Caldari Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughtc2shieldresists.py b/eos/effects/shipbonusdreadnoughtc2shieldresists.py new file mode 100644 index 000000000..340d50179 --- /dev/null +++ b/eos/effects/shipbonusdreadnoughtc2shieldresists.py @@ -0,0 +1,6 @@ +type = "passive" +def handler(fit, src, context): + fit.ship.boostItemAttr("shieldThermalDamageResonance", src.getModifiedItemAttr("shipBonusDreadnoughtC2"), skill="Caldari Dreadnought") + fit.ship.boostItemAttr("shieldKineticDamageResonance", src.getModifiedItemAttr("shipBonusDreadnoughtC2"), skill="Caldari Dreadnought") + fit.ship.boostItemAttr("shieldEmDamageResonance", src.getModifiedItemAttr("shipBonusDreadnoughtC2"), skill="Caldari Dreadnought") + fit.ship.boostItemAttr("shieldExplosiveDamageResonance", src.getModifiedItemAttr("shipBonusDreadnoughtC2"), skill="Caldari Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughtc3reloadbonus.py b/eos/effects/shipbonusdreadnoughtc3reloadbonus.py new file mode 100644 index 000000000..611e026c8 --- /dev/null +++ b/eos/effects/shipbonusdreadnoughtc3reloadbonus.py @@ -0,0 +1,3 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Missile Launcher Operation"), "reloadTime", src.getModifiedItemAttr("shipBonusDreadnoughtC3"), skill="Caldari Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughtg1damagebonus.py b/eos/effects/shipbonusdreadnoughtg1damagebonus.py new file mode 100644 index 000000000..15083ae7e --- /dev/null +++ b/eos/effects/shipbonusdreadnoughtg1damagebonus.py @@ -0,0 +1,3 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Hybrid Turret"), "damageMultiplier", src.getModifiedItemAttr("shipBonusDreadnoughtG1"), skill="Gallente Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughtg2rofbonus.py b/eos/effects/shipbonusdreadnoughtg2rofbonus.py new file mode 100644 index 000000000..e274d2ccf --- /dev/null +++ b/eos/effects/shipbonusdreadnoughtg2rofbonus.py @@ -0,0 +1,3 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Hybrid Turret"), "speed", src.getModifiedItemAttr("shipBonusDreadnoughtG2"), skill="Gallente Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughtg3repairtime.py b/eos/effects/shipbonusdreadnoughtg3repairtime.py new file mode 100644 index 000000000..5aba548ae --- /dev/null +++ b/eos/effects/shipbonusdreadnoughtg3repairtime.py @@ -0,0 +1,3 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Repair Systems"), "duration", src.getModifiedItemAttr("shipBonusDreadnoughtG3"), skill="Gallente Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughtm1damagebonus.py b/eos/effects/shipbonusdreadnoughtm1damagebonus.py new file mode 100644 index 000000000..2e14094c0 --- /dev/null +++ b/eos/effects/shipbonusdreadnoughtm1damagebonus.py @@ -0,0 +1,3 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Projectile Turret"), "damageMultiplier", src.getModifiedItemAttr("shipBonusDreadnoughtM1"), skill="Minmatar Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughtm2rofbonus.py b/eos/effects/shipbonusdreadnoughtm2rofbonus.py new file mode 100644 index 000000000..0ed994478 --- /dev/null +++ b/eos/effects/shipbonusdreadnoughtm2rofbonus.py @@ -0,0 +1,3 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Projectile Turret"), "speed", src.getModifiedItemAttr("shipBonusDreadnoughtM2"), skill="Minmatar Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughtm3repairtime.py b/eos/effects/shipbonusdreadnoughtm3repairtime.py new file mode 100644 index 000000000..cca5a36e7 --- /dev/null +++ b/eos/effects/shipbonusdreadnoughtm3repairtime.py @@ -0,0 +1,3 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Shield Operation"), "duration", src.getModifiedItemAttr("shipBonusDreadnoughtM2"), skill="Minmatar Dreadnought") diff --git a/eos/effects/shipbonusdreadnoughtrole1damagebonus.py b/eos/effects/shipbonusdreadnoughtrole1damagebonus.py new file mode 100644 index 000000000..dab2a9708 --- /dev/null +++ b/eos/effects/shipbonusdreadnoughtrole1damagebonus.py @@ -0,0 +1,3 @@ +type = "passive" +def handler(fit, src, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Projectile Turret"), "damageMultiplier", src.getModifiedItemAttr("shipBonusRole1"))