Commit new Phoebe effect files

This commit is contained in:
DarkPhoenix
2014-11-06 02:22:06 +03:00
parent e60b677b3f
commit 89052edda2
11 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# cloakingPrototype
#
# Used by:
# Modules named like: Prototype Cloaking Device I (2 of 2)
type = "active"
runTime = "early"
#TODO: Rewrite this effect
def handler(fit, module, context):
# Set flag which is used to determine if ship is cloaked or not
# This is used to apply cloak-only bonuses, like Black Ops' speed bonus
# Doesn't apply to covops cloaks
fit.extraAttributes["cloaked"] = True
# Apply speed penalty
fit.ship.multiplyItemAttr("maxVelocity", module.getModifiedItemAttr("maxVelocityBonus"))

View File

@@ -0,0 +1,7 @@
# drawbackWarpSpeed
#
# Used by:
# Modules named like: Higgs Anchor I (4 of 4)
type = "passive"
def handler(fit, module, context):
fit.ship.boostItemAttr("warpSpeedMultiplier", module.getModifiedItemAttr("drawback"), stackingPenalties=True)

View File

@@ -0,0 +1,9 @@
# eliteBonusHeavyInterdictorLightMissileVelocityBonus
#
# Used by:
# Ship: Onyx
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Heavy Interdiction Cruisers").level
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Light Missiles"),
"maxVelocity", ship.getModifiedItemAttr("eliteBonusHeavyInterdictors1") * level)

View File

@@ -0,0 +1,9 @@
# eliteBonusHeavyInterdictorsHybridOptimal1
#
# Used by:
# Ship: Phobos
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Heavy Interdiction Cruisers").level
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Medium Hybrid Turret"),
"maxRange", ship.getModifiedItemAttr("eliteBonusHeavyInterdictors1") * level)

View File

@@ -0,0 +1,9 @@
# eliteBonusHeavyInterdictorsMETOptimal
#
# Used by:
# Ship: Devoter
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Heavy Interdiction Cruisers").level
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Medium Energy Turret"),
"maxRange", ship.getModifiedItemAttr("eliteBonusHeavyInterdictors1") * level)

View File

@@ -0,0 +1,7 @@
# massReductionBonusPassive
#
# Used by:
# Modules named like: Higgs Anchor I (4 of 4)
type = "passive"
def handler(fit, module, context):
fit.ship.boostItemAttr("mass", module.getModifiedItemAttr("massBonusPercentage"), stackingPenalties=True)

View File

@@ -0,0 +1,9 @@
# resistanceKillerHullAll
#
# Used by:
# Modules named like: Polarized (12 of 18)
type = "passive"
def handler(fit, module, context):
for dmgType in ('em', 'thermal', 'kinetic', 'explosive'):
tgtAttr = '{}DamageResonance'.format(dmgType)
fit.ship.forceItemAttr(tgtAttr, module.getModifiedItemAttr("resistanceKillerHull"))

View File

@@ -0,0 +1,10 @@
# resistanceKillerShieldArmorAll
#
# Used by:
# Modules named like: Polarized (12 of 18)
type = "passive"
def handler(fit, module, context):
for layer in ('armor', 'shield'):
for dmgType in ('em', 'thermal', 'kinetic', 'explosive'):
tgtAttr = '{}{}DamageResonance'.format(layer, dmgType.capitalize())
fit.ship.forceItemAttr(tgtAttr, module.getModifiedItemAttr("resistanceKiller"))

View File

@@ -0,0 +1,9 @@
# shipHybridTrackingGC
#
# Used by:
# Ship: Phobos
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Gallente Cruiser").level
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Medium Hybrid Turret"),
"trackingSpeed", ship.getModifiedItemAttr("shipBonusGC") * level)

View File

@@ -0,0 +1,9 @@
# shipMETDamageBonusAC2
#
# Used by:
# Ship: Devoter
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Amarr Cruiser").level
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Medium Energy Turret"),
"damageMultiplier", ship.getModifiedItemAttr("shipBonusAC2") * level)

View File

@@ -0,0 +1,9 @@
# shipMissileLauncherRofCC2
#
# Used by:
# Ship: Onyx
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Caldari Cruiser").level
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Missile Launcher Operation"),
"speed", ship.getModifiedItemAttr("shipBonusCC2") * level)