From 933fbb26d7b83e672e2213268335a0567d6c8ef5 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Fri, 30 May 2014 02:21:29 +0400 Subject: [PATCH] Implement pirate ship updates --- eos/effects/shipbonusafterburnerspeedfactor2cb.py | 5 +++++ eos/effects/shipbonusafterburnerspeedfactorcc2.py | 5 +++++ eos/effects/shipbonusafterburnerspeedfactorcf2.py | 5 +++++ .../shipbonusewweapondisruptiontrackingspeedbonusaf1.py | 2 +- .../shipbonusewweapondisruptiontrackingspeedbonusaf2.py | 2 +- eos/effects/shipbonusheavydronearmorhppiratefaction.py | 4 ++++ .../shipbonusheavydronedamagemultiplierpiratefaction.py | 4 ++++ eos/effects/shipbonusheavydronehppiratefaction.py | 4 ++++ eos/effects/shipbonusheavydroneshieldhppiratefaction.py | 4 ++++ eos/effects/shipbonuskineticmissiledamagegb2.py | 5 +++++ eos/effects/shipbonuskineticmissiledamagegc2.py | 5 +++++ eos/effects/shipbonuskineticmissiledamagegf.py | 5 +++++ eos/effects/shipbonuslightdronearmorhppiratefaction.py | 4 ++++ .../shipbonuslightdronedamagemultiplierpiratefaction.py | 4 ++++ eos/effects/shipbonuslightdronehppiratefaction.py | 4 ++++ eos/effects/shipbonuslightdroneshieldhppiratefaction.py | 4 ++++ eos/effects/shipbonusmediumdronearmorhppiratefaction.py | 4 ++++ .../shipbonusmediumdronedamagemultiplierpiratefaction.py | 4 ++++ eos/effects/shipbonusmediumdronehppiratefaction.py | 4 ++++ eos/effects/shipbonusmediumdroneshieldhppiratefaction.py | 4 ++++ eos/effects/shipbonussentrydronearmorhppiratefaction.py | 4 ++++ .../shipbonussentrydronedamagemultiplierpiratefaction.py | 4 ++++ eos/effects/shipbonussentrydronehppiratefaction.py | 4 ++++ eos/effects/shipbonussentrydroneshieldhppiratefaction.py | 4 ++++ eos/effects/shipbonustdoptimalbonusaf1.py | 5 +++++ eos/effects/shipbonustdoptimalbonusaf2.py | 2 +- eos/effects/shipbonusthermalmissiledamagegb2.py | 5 +++++ eos/effects/shipbonusthermalmissiledamagegc2.py | 5 +++++ eos/effects/shipbonusthermalmissiledamagegf.py | 5 +++++ eos/effects/shipstasiswebrangebonusmc2.py | 5 +++++ 30 files changed, 122 insertions(+), 3 deletions(-) create mode 100644 eos/effects/shipbonusafterburnerspeedfactor2cb.py create mode 100644 eos/effects/shipbonusafterburnerspeedfactorcc2.py create mode 100644 eos/effects/shipbonusafterburnerspeedfactorcf2.py create mode 100644 eos/effects/shipbonusheavydronearmorhppiratefaction.py create mode 100644 eos/effects/shipbonusheavydronedamagemultiplierpiratefaction.py create mode 100644 eos/effects/shipbonusheavydronehppiratefaction.py create mode 100644 eos/effects/shipbonusheavydroneshieldhppiratefaction.py create mode 100644 eos/effects/shipbonuskineticmissiledamagegb2.py create mode 100644 eos/effects/shipbonuskineticmissiledamagegc2.py create mode 100644 eos/effects/shipbonuskineticmissiledamagegf.py create mode 100644 eos/effects/shipbonuslightdronearmorhppiratefaction.py create mode 100644 eos/effects/shipbonuslightdronedamagemultiplierpiratefaction.py create mode 100644 eos/effects/shipbonuslightdronehppiratefaction.py create mode 100644 eos/effects/shipbonuslightdroneshieldhppiratefaction.py create mode 100644 eos/effects/shipbonusmediumdronearmorhppiratefaction.py create mode 100644 eos/effects/shipbonusmediumdronedamagemultiplierpiratefaction.py create mode 100644 eos/effects/shipbonusmediumdronehppiratefaction.py create mode 100644 eos/effects/shipbonusmediumdroneshieldhppiratefaction.py create mode 100644 eos/effects/shipbonussentrydronearmorhppiratefaction.py create mode 100644 eos/effects/shipbonussentrydronedamagemultiplierpiratefaction.py create mode 100644 eos/effects/shipbonussentrydronehppiratefaction.py create mode 100644 eos/effects/shipbonussentrydroneshieldhppiratefaction.py create mode 100644 eos/effects/shipbonustdoptimalbonusaf1.py create mode 100644 eos/effects/shipbonusthermalmissiledamagegb2.py create mode 100644 eos/effects/shipbonusthermalmissiledamagegc2.py create mode 100644 eos/effects/shipbonusthermalmissiledamagegf.py create mode 100644 eos/effects/shipstasiswebrangebonusmc2.py diff --git a/eos/effects/shipbonusafterburnerspeedfactor2cb.py b/eos/effects/shipbonusafterburnerspeedfactor2cb.py new file mode 100644 index 000000000..59f7f2fd5 --- /dev/null +++ b/eos/effects/shipbonusafterburnerspeedfactor2cb.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, module, context): + level = fit.character.getSkill("Caldari Battleship").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Afterburner"), + "speedFactor", module.getModifiedItemAttr("shipBonus2CB") * level) diff --git a/eos/effects/shipbonusafterburnerspeedfactorcc2.py b/eos/effects/shipbonusafterburnerspeedfactorcc2.py new file mode 100644 index 000000000..91d7a50b1 --- /dev/null +++ b/eos/effects/shipbonusafterburnerspeedfactorcc2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, module, context): + level = fit.character.getSkill("Caldari Cruiser").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Afterburner"), + "speedFactor", module.getModifiedItemAttr("shipBonusCC2") * level) diff --git a/eos/effects/shipbonusafterburnerspeedfactorcf2.py b/eos/effects/shipbonusafterburnerspeedfactorcf2.py new file mode 100644 index 000000000..4d11da5da --- /dev/null +++ b/eos/effects/shipbonusafterburnerspeedfactorcf2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, module, context): + level = fit.character.getSkill("Caldari Frigate").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Afterburner"), + "speedFactor", module.getModifiedItemAttr("shipBonusCF2") * level) diff --git a/eos/effects/shipbonusewweapondisruptiontrackingspeedbonusaf1.py b/eos/effects/shipbonusewweapondisruptiontrackingspeedbonusaf1.py index be1629b99..a785a5bd6 100755 --- a/eos/effects/shipbonusewweapondisruptiontrackingspeedbonusaf1.py +++ b/eos/effects/shipbonusewweapondisruptiontrackingspeedbonusaf1.py @@ -3,5 +3,5 @@ type = "passive" def handler(fit, ship, context): level = fit.character.getSkill("Amarr Frigate").level - fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Tracking Disruptor", + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Weapon Disruption"), "trackingSpeedBonus", ship.getModifiedItemAttr("shipBonusAF") * level) diff --git a/eos/effects/shipbonusewweapondisruptiontrackingspeedbonusaf2.py b/eos/effects/shipbonusewweapondisruptiontrackingspeedbonusaf2.py index d4160dbf9..00c3eda11 100755 --- a/eos/effects/shipbonusewweapondisruptiontrackingspeedbonusaf2.py +++ b/eos/effects/shipbonusewweapondisruptiontrackingspeedbonusaf2.py @@ -3,5 +3,5 @@ type = "passive" def handler(fit, ship, context): level = fit.character.getSkill("Amarr Frigate").level - fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Tracking Disruptor", + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Weapon Disruption"), "trackingSpeedBonus", ship.getModifiedItemAttr("shipBonus2AF") * level) diff --git a/eos/effects/shipbonusheavydronearmorhppiratefaction.py b/eos/effects/shipbonusheavydronearmorhppiratefaction.py new file mode 100644 index 000000000..c246f0b6b --- /dev/null +++ b/eos/effects/shipbonusheavydronearmorhppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Heavy Drone Operation"), + "armorHP", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonusheavydronedamagemultiplierpiratefaction.py b/eos/effects/shipbonusheavydronedamagemultiplierpiratefaction.py new file mode 100644 index 000000000..f9501bbb4 --- /dev/null +++ b/eos/effects/shipbonusheavydronedamagemultiplierpiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Heavy Drone Operation"), + "damageMultiplier", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonusheavydronehppiratefaction.py b/eos/effects/shipbonusheavydronehppiratefaction.py new file mode 100644 index 000000000..0a17eccf4 --- /dev/null +++ b/eos/effects/shipbonusheavydronehppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Heavy Drone Operation"), + "hp", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonusheavydroneshieldhppiratefaction.py b/eos/effects/shipbonusheavydroneshieldhppiratefaction.py new file mode 100644 index 000000000..d10304943 --- /dev/null +++ b/eos/effects/shipbonusheavydroneshieldhppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Heavy Drone Operation"), + "shieldCapacity", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonuskineticmissiledamagegb2.py b/eos/effects/shipbonuskineticmissiledamagegb2.py new file mode 100644 index 000000000..ace97b824 --- /dev/null +++ b/eos/effects/shipbonuskineticmissiledamagegb2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Gallente Battleship").level + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"), + "kineticDamage", ship.getModifiedItemAttr("shipBonusGB2") * level) diff --git a/eos/effects/shipbonuskineticmissiledamagegc2.py b/eos/effects/shipbonuskineticmissiledamagegc2.py new file mode 100644 index 000000000..823abcecb --- /dev/null +++ b/eos/effects/shipbonuskineticmissiledamagegc2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Gallente Cruiser").level + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"), + "kineticDamage", ship.getModifiedItemAttr("shipBonusGC2") * level) diff --git a/eos/effects/shipbonuskineticmissiledamagegf.py b/eos/effects/shipbonuskineticmissiledamagegf.py new file mode 100644 index 000000000..15cb5db2c --- /dev/null +++ b/eos/effects/shipbonuskineticmissiledamagegf.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Gallente Frigate").level + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"), + "kineticDamage", ship.getModifiedItemAttr("shipBonusGF") * level) diff --git a/eos/effects/shipbonuslightdronearmorhppiratefaction.py b/eos/effects/shipbonuslightdronearmorhppiratefaction.py new file mode 100644 index 000000000..676a9138e --- /dev/null +++ b/eos/effects/shipbonuslightdronearmorhppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Combat Drone Operation"), + "armorHP", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonuslightdronedamagemultiplierpiratefaction.py b/eos/effects/shipbonuslightdronedamagemultiplierpiratefaction.py new file mode 100644 index 000000000..9d1e38a8a --- /dev/null +++ b/eos/effects/shipbonuslightdronedamagemultiplierpiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Combat Drone Operation"), + "damageMultiplier", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonuslightdronehppiratefaction.py b/eos/effects/shipbonuslightdronehppiratefaction.py new file mode 100644 index 000000000..b8499e91e --- /dev/null +++ b/eos/effects/shipbonuslightdronehppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Combat Drone Operation"), + "hp", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonuslightdroneshieldhppiratefaction.py b/eos/effects/shipbonuslightdroneshieldhppiratefaction.py new file mode 100644 index 000000000..1d2139f65 --- /dev/null +++ b/eos/effects/shipbonuslightdroneshieldhppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Combat Drone Operation"), + "shieldCapacity", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonusmediumdronearmorhppiratefaction.py b/eos/effects/shipbonusmediumdronearmorhppiratefaction.py new file mode 100644 index 000000000..abfe8c121 --- /dev/null +++ b/eos/effects/shipbonusmediumdronearmorhppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Medium Drone Operation"), + "armorHP", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonusmediumdronedamagemultiplierpiratefaction.py b/eos/effects/shipbonusmediumdronedamagemultiplierpiratefaction.py new file mode 100644 index 000000000..9f46792a2 --- /dev/null +++ b/eos/effects/shipbonusmediumdronedamagemultiplierpiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Medium Drone Operation"), + "damageMultiplier", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonusmediumdronehppiratefaction.py b/eos/effects/shipbonusmediumdronehppiratefaction.py new file mode 100644 index 000000000..189af8525 --- /dev/null +++ b/eos/effects/shipbonusmediumdronehppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Medium Drone Operation"), + "hp", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonusmediumdroneshieldhppiratefaction.py b/eos/effects/shipbonusmediumdroneshieldhppiratefaction.py new file mode 100644 index 000000000..3d52ccf67 --- /dev/null +++ b/eos/effects/shipbonusmediumdroneshieldhppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Medium Drone Operation"), + "shieldCapacity", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonussentrydronearmorhppiratefaction.py b/eos/effects/shipbonussentrydronearmorhppiratefaction.py new file mode 100644 index 000000000..a12bc9ae0 --- /dev/null +++ b/eos/effects/shipbonussentrydronearmorhppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Sentry Drone Interfacing"), + "armorHP", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonussentrydronedamagemultiplierpiratefaction.py b/eos/effects/shipbonussentrydronedamagemultiplierpiratefaction.py new file mode 100644 index 000000000..78730188c --- /dev/null +++ b/eos/effects/shipbonussentrydronedamagemultiplierpiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Sentry Drone Interfacing"), + "damageMultiplier", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonussentrydronehppiratefaction.py b/eos/effects/shipbonussentrydronehppiratefaction.py new file mode 100644 index 000000000..6dcf7f898 --- /dev/null +++ b/eos/effects/shipbonussentrydronehppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Sentry Drone Interfacing"), + "hp", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonussentrydroneshieldhppiratefaction.py b/eos/effects/shipbonussentrydroneshieldhppiratefaction.py new file mode 100644 index 000000000..f5824de7c --- /dev/null +++ b/eos/effects/shipbonussentrydroneshieldhppiratefaction.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Sentry Drone Interfacing"), + "shieldCapacity", ship.getModifiedItemAttr("shipBonusPirateFaction")) diff --git a/eos/effects/shipbonustdoptimalbonusaf1.py b/eos/effects/shipbonustdoptimalbonusaf1.py new file mode 100644 index 000000000..b2e16edf9 --- /dev/null +++ b/eos/effects/shipbonustdoptimalbonusaf1.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Amarr Frigate").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Weapon Disruption"), + "maxRange", ship.getModifiedItemAttr("shipBonusAF") * level) diff --git a/eos/effects/shipbonustdoptimalbonusaf2.py b/eos/effects/shipbonustdoptimalbonusaf2.py index 2dd96d34b..c069ad78a 100755 --- a/eos/effects/shipbonustdoptimalbonusaf2.py +++ b/eos/effects/shipbonustdoptimalbonusaf2.py @@ -3,5 +3,5 @@ type = "passive" def handler(fit, ship, context): level = fit.character.getSkill("Amarr Frigate").level - fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Tracking Disruptor", + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Weapon Disruption"), "maxRange", ship.getModifiedItemAttr("shipBonus2AF") * level) diff --git a/eos/effects/shipbonusthermalmissiledamagegb2.py b/eos/effects/shipbonusthermalmissiledamagegb2.py new file mode 100644 index 000000000..a27288238 --- /dev/null +++ b/eos/effects/shipbonusthermalmissiledamagegb2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Gallente Battleship").level + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"), + "thermalDamage", ship.getModifiedItemAttr("shipBonusGB2") * level) diff --git a/eos/effects/shipbonusthermalmissiledamagegc2.py b/eos/effects/shipbonusthermalmissiledamagegc2.py new file mode 100644 index 000000000..c1b19211e --- /dev/null +++ b/eos/effects/shipbonusthermalmissiledamagegc2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Gallente Cruiser").level + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"), + "thermalDamage", ship.getModifiedItemAttr("shipBonusGC2") * level) diff --git a/eos/effects/shipbonusthermalmissiledamagegf.py b/eos/effects/shipbonusthermalmissiledamagegf.py new file mode 100644 index 000000000..59c6fcf82 --- /dev/null +++ b/eos/effects/shipbonusthermalmissiledamagegf.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Gallente Frigate").level + fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"), + "thermalDamage", ship.getModifiedItemAttr("shipBonusGF") * level) diff --git a/eos/effects/shipstasiswebrangebonusmc2.py b/eos/effects/shipstasiswebrangebonusmc2.py new file mode 100644 index 000000000..a131b1ba3 --- /dev/null +++ b/eos/effects/shipstasiswebrangebonusmc2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Minmatar Cruiser").level + fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Stasis Web", + "maxRange", ship.getModifiedItemAttr("shipBonusMC2") * level)