From 7b3e0fe3b0581145ea9422558238fc57ca0cd9ce Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 31 May 2014 17:46:53 +0400 Subject: [PATCH] Barge, freighter and phoenix changes --- eos/effects/dreadnoughtshipbonusshieldresistancesc2.py | 6 ++++++ eos/effects/elitebargebonusminingdurationbarge2.py | 5 +++++ eos/effects/elitebargeshieldresistance1.py | 6 ++++++ eos/effects/rolebonusbulkheadcpu.py | 4 ++++ eos/effects/shipbonusminingdurationore3.py | 5 +++++ eos/effects/shipbonusminingiceharvestingrangeore2.py | 5 +++++ 6 files changed, 31 insertions(+) create mode 100644 eos/effects/dreadnoughtshipbonusshieldresistancesc2.py create mode 100644 eos/effects/elitebargebonusminingdurationbarge2.py create mode 100644 eos/effects/elitebargeshieldresistance1.py create mode 100644 eos/effects/rolebonusbulkheadcpu.py create mode 100644 eos/effects/shipbonusminingdurationore3.py create mode 100644 eos/effects/shipbonusminingiceharvestingrangeore2.py diff --git a/eos/effects/dreadnoughtshipbonusshieldresistancesc2.py b/eos/effects/dreadnoughtshipbonusshieldresistancesc2.py new file mode 100644 index 000000000..d4b68ac37 --- /dev/null +++ b/eos/effects/dreadnoughtshipbonusshieldresistancesc2.py @@ -0,0 +1,6 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Caldari Dreadnought").level + for damageType in ("em", "thermal", "explosive", "kinetic"): + fit.ship.boostItemAttr("shield{}DamageResonance".format(damageType.capitalize()), + ship.getModifiedItemAttr("dreadnoughtShipBonusC2") * level) diff --git a/eos/effects/elitebargebonusminingdurationbarge2.py b/eos/effects/elitebargebonusminingdurationbarge2.py new file mode 100644 index 000000000..163439510 --- /dev/null +++ b/eos/effects/elitebargebonusminingdurationbarge2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Exhumers").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Mining"), + "duration", ship.getModifiedItemAttr("eliteBonusBarge2") * level) diff --git a/eos/effects/elitebargeshieldresistance1.py b/eos/effects/elitebargeshieldresistance1.py new file mode 100644 index 000000000..18fef5ab9 --- /dev/null +++ b/eos/effects/elitebargeshieldresistance1.py @@ -0,0 +1,6 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Exhumers").level + for damageType in ("em", "thermal", "explosive", "kinetic"): + fit.ship.boostItemAttr("shield{}DamageResonance".format(damageType.capitalize()), + ship.getModifiedItemAttr("eliteBonusBarge1") * level) diff --git a/eos/effects/rolebonusbulkheadcpu.py b/eos/effects/rolebonusbulkheadcpu.py new file mode 100644 index 000000000..650c8dd17 --- /dev/null +++ b/eos/effects/rolebonusbulkheadcpu.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Reinforced Bulkhead", + "cpu", ship.getModifiedItemAttr("cpuNeedBonus")) diff --git a/eos/effects/shipbonusminingdurationore3.py b/eos/effects/shipbonusminingdurationore3.py new file mode 100644 index 000000000..840368582 --- /dev/null +++ b/eos/effects/shipbonusminingdurationore3.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Mining Barge").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Mining"), + "duration", ship.getModifiedItemAttr("shipBonusORE3") * level) diff --git a/eos/effects/shipbonusminingiceharvestingrangeore2.py b/eos/effects/shipbonusminingiceharvestingrangeore2.py new file mode 100644 index 000000000..4635e10ea --- /dev/null +++ b/eos/effects/shipbonusminingiceharvestingrangeore2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Mining Barge").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Mining") or mod.item.requiresSkill("Ice Harvesting"), + "maxRange", ship.getModifiedItemAttr("shipBonusORE2") * level)