Commit new Phoebe effect files
This commit is contained in:
14
eos/effects/cloakingprototype.py
Normal file
14
eos/effects/cloakingprototype.py
Normal 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"))
|
||||
7
eos/effects/drawbackwarpspeed.py
Normal file
7
eos/effects/drawbackwarpspeed.py
Normal 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)
|
||||
@@ -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)
|
||||
9
eos/effects/elitebonusheavyinterdictorshybridoptimal1.py
Normal file
9
eos/effects/elitebonusheavyinterdictorshybridoptimal1.py
Normal 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)
|
||||
9
eos/effects/elitebonusheavyinterdictorsmetoptimal.py
Normal file
9
eos/effects/elitebonusheavyinterdictorsmetoptimal.py
Normal 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)
|
||||
7
eos/effects/massreductionbonuspassive.py
Normal file
7
eos/effects/massreductionbonuspassive.py
Normal 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)
|
||||
9
eos/effects/resistancekillerhullall.py
Normal file
9
eos/effects/resistancekillerhullall.py
Normal 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"))
|
||||
10
eos/effects/resistancekillershieldarmorall.py
Normal file
10
eos/effects/resistancekillershieldarmorall.py
Normal 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"))
|
||||
9
eos/effects/shiphybridtrackinggc.py
Normal file
9
eos/effects/shiphybridtrackinggc.py
Normal 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)
|
||||
9
eos/effects/shipmetdamagebonusac2.py
Normal file
9
eos/effects/shipmetdamagebonusac2.py
Normal 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)
|
||||
9
eos/effects/shipmissilelauncherrofcc2.py
Normal file
9
eos/effects/shipmissilelauncherrofcc2.py
Normal 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)
|
||||
Reference in New Issue
Block a user