Fix some more effects
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
# eliteBonusCommandShipArmoredCS3
|
||||
#
|
||||
# Used by:
|
||||
# Ships from group: Command Ship (4 of 8)
|
||||
# Ship: Absolution
|
||||
# Ship: Astarte
|
||||
# Ship: Damnation
|
||||
# Ship: Eos
|
||||
type = "passive"
|
||||
def handler(fit, ship, context):
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Armored Warfare Specialist"),
|
||||
|
||||
@@ -7,4 +7,4 @@ runTime = "early"
|
||||
def handler(fit, module, context):
|
||||
fit.extraAttributes["siege"] = True
|
||||
fit.ship.boostItemAttr("maxVelocity", module.getModifiedItemAttr("speedFactor"))
|
||||
fit.ship.multiplyItemAttr("mass", module.getModifiedItemAttr("massMultiplier"))
|
||||
fit.ship.multiplyItemAttr("mass", module.getModifiedItemAttr("siegeMassMultiplier"))
|
||||
|
||||
12
eos/effects/modulebonusarmoredwarfarelinkdamagecontrol.py
Normal file
12
eos/effects/modulebonusarmoredwarfarelinkdamagecontrol.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# gangArmorRepairCapReducerSelfAndProjected
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Armored Warfare Link - Damage Control I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "armorRepairCapacitorNeed"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Remote Armor Repair Systems"),
|
||||
"capacitorNeed", module.getModifiedItemAttr("commandBonus"))
|
||||
14
eos/effects/modulebonusarmoredwarfarelinkpassivedefense.py
Normal file
14
eos/effects/modulebonusarmoredwarfarelinkpassivedefense.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# gangArmorHardening
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Armored Warfare Link - Passive Defense I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "armorResistance"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
for damageType in ("Em", "Thermal", "Explosive", "Kinetic"):
|
||||
fit.ship.boostItemAttr("armor%sDamageResonance" % damageType,
|
||||
module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
12
eos/effects/modulebonusarmoredwarfarelinkrapidrepair.py
Normal file
12
eos/effects/modulebonusarmoredwarfarelinkrapidrepair.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# gangArmorRepairSpeedAmplifierSelfAndProjected
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Armored Warfare Link - Rapid Repair I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "armorRepairDuration"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Remote Armor Repair Systems"),
|
||||
"duration", module.getModifiedItemAttr("commandBonus"))
|
||||
@@ -0,0 +1,11 @@
|
||||
# gangInformationWarfareSuperiorityAll2
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Information Warfare Link - Electronic Superiority I (2 of 2)
|
||||
type = "active"
|
||||
|
||||
def handler(fit, module, context):
|
||||
module.multiplyItemAttr("commandBonusTD", module.getModifiedItemAttr("commandBonusHidden"))
|
||||
module.multiplyItemAttr("commandBonusECM", module.getModifiedItemAttr("commandBonusHidden"))
|
||||
module.multiplyItemAttr("commandBonusRSD", module.getModifiedItemAttr("commandBonusHidden"))
|
||||
module.multiplyItemAttr("commandBonusTP", module.getModifiedItemAttr("commandBonusHidden"))
|
||||
@@ -0,0 +1,14 @@
|
||||
# gangInformationWarfareRangeBonusWithEcmBurst
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Information Warfare Link - Recon Operation I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "electronicMaxRange"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
groups = ("Target Painter", "Weapon Disruptor", "Sensor Dampener", "ECM", "Burst Jammer")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
"maxRange", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
@@ -0,0 +1,17 @@
|
||||
# gangSensorIntegrity
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Information Warfare Link - Sensor Integrity I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "maxTargetRange"
|
||||
gangBonus = "commandBonus"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
fit.ship.boostItemAttr("maxTargetRange", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
for scanType in ("Gravimetric", "Radar", "Ladar", "Magnetometric"):
|
||||
fit.ship.boostItemAttr("scan%sStrength" % scanType,
|
||||
module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
@@ -0,0 +1,13 @@
|
||||
# gangGasHarvesterAndIceHarvesterAndMiningLaserCapNeedBonus
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Mining Foreman Link - Harvester Capacitor Efficiency I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "miningCapacitorNeed"
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
groups = ("Mining Laser", "Strip Miner", "Frequency Mining Laser",
|
||||
"Ice Harvester", "Gas Cloud Harvester")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
"capacitorNeed", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
13
eos/effects/modulebonusminingforemanlinklaseroptimization.py
Normal file
13
eos/effects/modulebonusminingforemanlinklaseroptimization.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# gangGasHarvesterAndIceHarvesterAndMiningLaserDurationBonus
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Mining Foreman Link - Laser Optimization I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "miningDuration"
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
groups = ("Mining Laser", "Strip Miner", "Frequency Mining Laser",
|
||||
"Ice Harvester", "Gas Cloud Harvester")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
"duration", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
@@ -0,0 +1,13 @@
|
||||
# gangMiningLaserIceHarvesterGasHarvesterSurveyScannerMaxRangeBonus
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Mining Foreman Link - Mining Laser Field Enhancement I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "miningMaxRange"
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gas Cloud Harvesting") or mod.item.requiresSkill("Ice Harvesting") or mod.item.requiresSkill("Mining"),
|
||||
"maxRange", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("CPU Management"),
|
||||
"surveyScanRange", module.getModifiedItemAttr("commandBonus"))
|
||||
12
eos/effects/modulebonussiegewarfarelinkactiveshielding.py
Normal file
12
eos/effects/modulebonussiegewarfarelinkactiveshielding.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# gangShieldBoosterAndTransporterSpeed
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Siege Warfare Link - Active Shielding I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "shieldRepairDuration"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),
|
||||
"duration", module.getModifiedItemAttr("commandBonus"))
|
||||
14
eos/effects/modulebonussiegewarfarelinkshieldefficiency.py
Normal file
14
eos/effects/modulebonussiegewarfarelinkshieldefficiency.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# gangShieldHardening
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Siege Warfare Link - Shield Harmonizing I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "shieldResistance"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
for damageType in ("Em", "Explosive", "Thermal", "Kinetic"):
|
||||
fit.ship.boostItemAttr("shield%sDamageResonance" % damageType,
|
||||
module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
12
eos/effects/modulebonussiegewarfarelinkshieldharmonizing.py
Normal file
12
eos/effects/modulebonussiegewarfarelinkshieldharmonizing.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# gangShieldBoosteAndTransporterCapacitorNeed
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Siege Warfare Link - Shield Efficiency I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "shieldRepairCapacitorNeed"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),
|
||||
"capacitorNeed", module.getModifiedItemAttr("commandBonus"))
|
||||
@@ -0,0 +1,12 @@
|
||||
# gangBonusSignature
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Skirmish Warfare Link - Evasive Maneuvers I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "signatureRadius"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
fit.ship.boostItemAttr("signatureRadius", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
@@ -0,0 +1,14 @@
|
||||
# gangPropulsionJammingBoost
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Skirmish Warfare Link - Interdiction Maneuvers I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "interdictionMaxRange"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
groups = ("Stasis Web", "Warp Scrambler")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
"maxRange", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
13
eos/effects/modulebonusskirmishwarfarelinkrapiddeployment.py
Normal file
13
eos/effects/modulebonusskirmishwarfarelinkrapiddeployment.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# gangAbMwdFactorBoost
|
||||
#
|
||||
# Used by:
|
||||
# Variations of module: Skirmish Warfare Link - Rapid Deployment I (2 of 2)
|
||||
type = "gang", "active"
|
||||
gangBoost = "speedFactor"
|
||||
runTime = "late"
|
||||
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Propulsion Module",
|
||||
"speedFactor", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties=True)
|
||||
@@ -46,7 +46,7 @@ def handler(fit, module, context):
|
||||
fit.ship.boostItemAttr("maxVelocity", module.getModifiedItemAttr("speedFactor"))
|
||||
|
||||
#Mass
|
||||
fit.ship.multiplyItemAttr("mass", module.getModifiedItemAttr("massMultiplier"))
|
||||
fit.ship.multiplyItemAttr("mass", module.getModifiedItemAttr("siegeMassMultiplier"))
|
||||
|
||||
#Scan resolution
|
||||
fit.ship.multiplyItemAttr("scanResolution", module.getModifiedItemAttr("scanResolutionMultiplier"),
|
||||
|
||||
4
eos/effects/skillbonuscapitalartilleryspecialization.py
Normal file
4
eos/effects/skillbonuscapitalartilleryspecialization.py
Normal file
@@ -0,0 +1,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, src, context):
|
||||
lvl = src.level
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Artillery Specialization"), "damageMultiplier", src.getModifiedItemAttr("damageMultiplierBonus") * lvl)
|
||||
4
eos/effects/skillbonuscapitalautocannonspecialization.py
Normal file
4
eos/effects/skillbonuscapitalautocannonspecialization.py
Normal file
@@ -0,0 +1,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, src, context):
|
||||
lvl = src.level
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Autocannon Specialization"), "damageMultiplier", src.getModifiedItemAttr("damageMultiplierBonus") * lvl)
|
||||
4
eos/effects/skillbonuscapitalbeamlaserspecialization.py
Normal file
4
eos/effects/skillbonuscapitalbeamlaserspecialization.py
Normal file
@@ -0,0 +1,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, src, context):
|
||||
lvl = src.level
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Beam Laser Specialization"), "damageMultiplier", src.getModifiedItemAttr("damageMultiplierBonus") * lvl)
|
||||
4
eos/effects/skillbonuscapitalblasterspecialization.py
Normal file
4
eos/effects/skillbonuscapitalblasterspecialization.py
Normal file
@@ -0,0 +1,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, src, context):
|
||||
lvl = src.level
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Blaster Specialization"), "damageMultiplier", src.getModifiedItemAttr("damageMultiplierBonus") * lvl)
|
||||
4
eos/effects/skillbonuscapitalpulselaserspecialization.py
Normal file
4
eos/effects/skillbonuscapitalpulselaserspecialization.py
Normal file
@@ -0,0 +1,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, src, context):
|
||||
lvl = src.level
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Pulse Laser Specialization"), "damageMultiplier", src.getModifiedItemAttr("damageMultiplierBonus") * lvl)
|
||||
4
eos/effects/skillbonuscapitalrailgunspecialization.py
Normal file
4
eos/effects/skillbonuscapitalrailgunspecialization.py
Normal file
@@ -0,0 +1,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, src, context):
|
||||
lvl = src.level
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Capital Railgun Specialization"), "damageMultiplier", src.getModifiedItemAttr("damageMultiplierBonus") * lvl)
|
||||
4
eos/effects/skillbonusdoomsdayrapidfiring.py
Normal file
4
eos/effects/skillbonusdoomsdayrapidfiring.py
Normal file
@@ -0,0 +1,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, src, context):
|
||||
lvl = src.level
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Doomsday Operation"), "duration", src.getModifiedItemAttr("rofBonus") * lvl)
|
||||
4
eos/effects/skillbonusxlcruisemissilespecialization.py
Normal file
4
eos/effects/skillbonusxlcruisemissilespecialization.py
Normal file
@@ -0,0 +1,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, src, context):
|
||||
lvl = src.level
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("XL Cruise Missile Specialization"), "speed", src.getModifiedItemAttr("rofBonus") * lvl)
|
||||
4
eos/effects/skillbonusxltorpedospecialization.py
Normal file
4
eos/effects/skillbonusxltorpedospecialization.py
Normal file
@@ -0,0 +1,4 @@
|
||||
type = "passive"
|
||||
def handler(fit, src, context):
|
||||
lvl = src.level
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("XL Torpedo Specialization"), "speed", src.getModifiedItemAttr("rofBonus") * lvl)
|
||||
@@ -53,7 +53,7 @@ def handler(fit, module, context):
|
||||
stackingPenalties=True)
|
||||
|
||||
# Mass multiplier
|
||||
fit.ship.multiplyItemAttr("mass", module.getModifiedItemAttr("massMultiplier"),
|
||||
fit.ship.multiplyItemAttr("mass", module.getModifiedItemAttr("siegeMassMultiplier"),
|
||||
stackingPenalties=True)
|
||||
|
||||
# Lock range
|
||||
|
||||
@@ -53,7 +53,7 @@ def handler(fit, module, context):
|
||||
stackingPenalties=True)
|
||||
|
||||
# Mass multiplier
|
||||
fit.ship.multiplyItemAttr("mass", module.getModifiedItemAttr("massMultiplier"),
|
||||
fit.ship.multiplyItemAttr("mass", module.getModifiedItemAttr("siegeMassMultiplier"),
|
||||
stackingPenalties=True)
|
||||
|
||||
# Lock range
|
||||
|
||||
Reference in New Issue
Block a user