From 8ea4ef1b44d92c9d53aa1411f8558f0919711949 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 31 May 2014 02:30:38 +0400 Subject: [PATCH] Implement DST changes --- eos/effects/eliteindustrialabheatbonus.py | 4 ++++ eos/effects/eliteindustrialarmorhardenerheatbonus.py | 4 ++++ eos/effects/eliteindustrialarmorrepairheatbonus.py | 6 ++++++ eos/effects/eliteindustrialarmorresists2.py | 6 ++++++ eos/effects/eliteindustrialfleetcapacity1.py | 4 ++++ eos/effects/eliteindustrialmwdheatbonus.py | 4 ++++ .../eliteindustrialreactivearmorhardenerheatbonus.py | 4 ++++ eos/effects/eliteindustrialshieldboosterheatbonus.py | 6 ++++++ eos/effects/eliteindustrialshieldhardenerheatbonus.py | 4 ++++ eos/effects/eliteindustrialshieldresists2.py | 6 ++++++ eos/effects/shipbonusarmorrepairai2.py | 5 +++++ eos/effects/shipbonusarmorrepairgi2.py | 5 +++++ eos/effects/shipbonusshieldboostci2.py | 5 +++++ eos/effects/shipbonusshieldboostmi2.py | 5 +++++ 14 files changed, 68 insertions(+) create mode 100644 eos/effects/eliteindustrialabheatbonus.py create mode 100644 eos/effects/eliteindustrialarmorhardenerheatbonus.py create mode 100644 eos/effects/eliteindustrialarmorrepairheatbonus.py create mode 100644 eos/effects/eliteindustrialarmorresists2.py create mode 100644 eos/effects/eliteindustrialfleetcapacity1.py create mode 100644 eos/effects/eliteindustrialmwdheatbonus.py create mode 100644 eos/effects/eliteindustrialreactivearmorhardenerheatbonus.py create mode 100644 eos/effects/eliteindustrialshieldboosterheatbonus.py create mode 100644 eos/effects/eliteindustrialshieldhardenerheatbonus.py create mode 100644 eos/effects/eliteindustrialshieldresists2.py create mode 100644 eos/effects/shipbonusarmorrepairai2.py create mode 100644 eos/effects/shipbonusarmorrepairgi2.py create mode 100644 eos/effects/shipbonusshieldboostci2.py create mode 100644 eos/effects/shipbonusshieldboostmi2.py diff --git a/eos/effects/eliteindustrialabheatbonus.py b/eos/effects/eliteindustrialabheatbonus.py new file mode 100644 index 000000000..d93175118 --- /dev/null +++ b/eos/effects/eliteindustrialabheatbonus.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Afterburner"), + "overloadSpeedFactorBonus", ship.getModifiedItemAttr("roleBonusOverheatDST")) diff --git a/eos/effects/eliteindustrialarmorhardenerheatbonus.py b/eos/effects/eliteindustrialarmorhardenerheatbonus.py new file mode 100644 index 000000000..94a2f9947 --- /dev/null +++ b/eos/effects/eliteindustrialarmorhardenerheatbonus.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Hull Upgrades"), + "overloadHardeningBonus", ship.getModifiedItemAttr("roleBonusOverheatDST")) diff --git a/eos/effects/eliteindustrialarmorrepairheatbonus.py b/eos/effects/eliteindustrialarmorrepairheatbonus.py new file mode 100644 index 000000000..9fcaed790 --- /dev/null +++ b/eos/effects/eliteindustrialarmorrepairheatbonus.py @@ -0,0 +1,6 @@ +type = "passive" +def handler(fit, ship, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems"), + "overloadArmorDamageAmount", ship.getModifiedItemAttr("roleBonusOverheatDST")) + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems"), + "overloadSelfDurationBonus", ship.getModifiedItemAttr("roleBonusOverheatDST")) diff --git a/eos/effects/eliteindustrialarmorresists2.py b/eos/effects/eliteindustrialarmorresists2.py new file mode 100644 index 000000000..f273f4a3f --- /dev/null +++ b/eos/effects/eliteindustrialarmorresists2.py @@ -0,0 +1,6 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Transport Ships").level + for damageType in ("em", "thermal", "explosive", "kinetic"): + fit.ship.boostItemAttr("armor{}DamageResonance".format(damageType.capitalize()), + ship.getModifiedItemAttr("eliteBonusIndustrial2") * level) diff --git a/eos/effects/eliteindustrialfleetcapacity1.py b/eos/effects/eliteindustrialfleetcapacity1.py new file mode 100644 index 000000000..f9eedf630 --- /dev/null +++ b/eos/effects/eliteindustrialfleetcapacity1.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Transport Ships").level + fit.ship.boostItemAttr("fleetHangarCapacity", ship.getModifiedItemAttr("eliteBonusIndustrial1") * level) diff --git a/eos/effects/eliteindustrialmwdheatbonus.py b/eos/effects/eliteindustrialmwdheatbonus.py new file mode 100644 index 000000000..7bdeb157e --- /dev/null +++ b/eos/effects/eliteindustrialmwdheatbonus.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("High Speed Maneuvering"), + "overloadSpeedFactorBonus", ship.getModifiedItemAttr("roleBonusOverheatDST")) diff --git a/eos/effects/eliteindustrialreactivearmorhardenerheatbonus.py b/eos/effects/eliteindustrialreactivearmorhardenerheatbonus.py new file mode 100644 index 000000000..87af5964c --- /dev/null +++ b/eos/effects/eliteindustrialreactivearmorhardenerheatbonus.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Hull Upgrades"), + "overloadSelfDurationBonus", ship.getModifiedItemAttr("roleBonusOverheatDST")) diff --git a/eos/effects/eliteindustrialshieldboosterheatbonus.py b/eos/effects/eliteindustrialshieldboosterheatbonus.py new file mode 100644 index 000000000..a519a37e7 --- /dev/null +++ b/eos/effects/eliteindustrialshieldboosterheatbonus.py @@ -0,0 +1,6 @@ +type = "passive" +def handler(fit, ship, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation"), + "overloadShieldBonus", ship.getModifiedItemAttr("roleBonusOverheatDST")) + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation"), + "overloadSelfDurationBonus", ship.getModifiedItemAttr("roleBonusOverheatDST")) diff --git a/eos/effects/eliteindustrialshieldhardenerheatbonus.py b/eos/effects/eliteindustrialshieldhardenerheatbonus.py new file mode 100644 index 000000000..e00ce066d --- /dev/null +++ b/eos/effects/eliteindustrialshieldhardenerheatbonus.py @@ -0,0 +1,4 @@ +type = "passive" +def handler(fit, ship, context): + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Tactical Shield Manipulation"), + "overloadHardeningBonus", ship.getModifiedItemAttr("roleBonusOverheatDST")) diff --git a/eos/effects/eliteindustrialshieldresists2.py b/eos/effects/eliteindustrialshieldresists2.py new file mode 100644 index 000000000..b225ca689 --- /dev/null +++ b/eos/effects/eliteindustrialshieldresists2.py @@ -0,0 +1,6 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Transport Ships").level + for damageType in ("em", "thermal", "explosive", "kinetic"): + fit.ship.boostItemAttr("shield{}DamageResonance".format(damageType.capitalize()), + ship.getModifiedItemAttr("eliteBonusIndustrial2") * level) diff --git a/eos/effects/shipbonusarmorrepairai2.py b/eos/effects/shipbonusarmorrepairai2.py new file mode 100644 index 000000000..c5a11b671 --- /dev/null +++ b/eos/effects/shipbonusarmorrepairai2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Amarr Industrial").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems"), + "armorDamageAmount", ship.getModifiedItemAttr("shipBonusAI2") * level) diff --git a/eos/effects/shipbonusarmorrepairgi2.py b/eos/effects/shipbonusarmorrepairgi2.py new file mode 100644 index 000000000..cd351cf11 --- /dev/null +++ b/eos/effects/shipbonusarmorrepairgi2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Gallente Industrial").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems"), + "armorDamageAmount", ship.getModifiedItemAttr("shipBonusGI2") * level) diff --git a/eos/effects/shipbonusshieldboostci2.py b/eos/effects/shipbonusshieldboostci2.py new file mode 100644 index 000000000..a79f6721a --- /dev/null +++ b/eos/effects/shipbonusshieldboostci2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Caldari Industrial").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation"), + "shieldBonus", ship.getModifiedItemAttr("shipBonusCI2") * level) diff --git a/eos/effects/shipbonusshieldboostmi2.py b/eos/effects/shipbonusshieldboostmi2.py new file mode 100644 index 000000000..39c338035 --- /dev/null +++ b/eos/effects/shipbonusshieldboostmi2.py @@ -0,0 +1,5 @@ +type = "passive" +def handler(fit, ship, context): + level = fit.character.getSkill("Minmatar Industrial").level + fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation"), + "shieldBonus", ship.getModifiedItemAttr("shipBonusMI2") * level)