Fix T3Ds (#835)
This commit is contained in:
5
eos/effects/modedamptdresistspostdiv.py
Normal file
5
eos/effects/modedamptdresistspostdiv.py
Normal file
@@ -0,0 +1,5 @@
|
||||
type = "passive"
|
||||
|
||||
def handler(fit, module, context):
|
||||
fit.ship.multiplyItemAttr("weaponDisruptionResistance", 1 / module.getModifiedItemAttr("modeEwarResistancePostDiv"))
|
||||
fit.ship.multiplyItemAttr("sensorDampenerResistance", 1 / module.getModifiedItemAttr("modeEwarResistancePostDiv"))
|
||||
11
eos/effects/modemwdandabboostpostdiv.py
Normal file
11
eos/effects/modemwdandabboostpostdiv.py
Normal file
@@ -0,0 +1,11 @@
|
||||
type = "passive"
|
||||
|
||||
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(
|
||||
lambda mod: mod.item.requiresSkill("High Speed Maneuvering") or mod.item.requiresSkill("Afterburner"),
|
||||
"speedFactor",
|
||||
1 / module.getModifiedItemAttr("modeVelocityPostDiv"),
|
||||
stackingPenalties=True,
|
||||
penaltyGroup="postDiv"
|
||||
)
|
||||
11
eos/effects/shipmodesetdamagepostdiv.py
Normal file
11
eos/effects/shipmodesetdamagepostdiv.py
Normal file
@@ -0,0 +1,11 @@
|
||||
type = "passive"
|
||||
|
||||
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(
|
||||
lambda mod: mod.item.requiresSkill("Small Energy Turret"),
|
||||
"damageMultiplier",
|
||||
1 / module.getModifiedItemAttr("modeDamageBonusPostDiv"),
|
||||
stackingPenalties=True,
|
||||
penaltyGroup="postDiv"
|
||||
)
|
||||
11
eos/effects/shipmodeshtdamagepostdiv.py
Normal file
11
eos/effects/shipmodeshtdamagepostdiv.py
Normal file
@@ -0,0 +1,11 @@
|
||||
type = "passive"
|
||||
|
||||
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(
|
||||
lambda mod: mod.item.requiresSkill("Small Hybrid Turret"),
|
||||
"damageMultiplier",
|
||||
1 / module.getModifiedItemAttr("modeDamageBonusPostDiv"),
|
||||
stackingPenalties=True,
|
||||
penaltyGroup="postDiv"
|
||||
)
|
||||
7
eos/effects/shipmodesmallmissiledamagepostdiv.py
Normal file
7
eos/effects/shipmodesmallmissiledamagepostdiv.py
Normal file
@@ -0,0 +1,7 @@
|
||||
type = "passive"
|
||||
|
||||
def handler(fit, module, context):
|
||||
types = ("thermal", "em", "explosive", "kinetic")
|
||||
for type in types:
|
||||
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Rockets") or mod.charge.requiresSkill("Light Missiles"),
|
||||
"{}Damage".format(type), 1 / module.getModifiedItemAttr("modeDamageBonusPostDiv"))
|
||||
11
eos/effects/shipmodesptdamagepostdiv.py
Normal file
11
eos/effects/shipmodesptdamagepostdiv.py
Normal file
@@ -0,0 +1,11 @@
|
||||
type = "passive"
|
||||
|
||||
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(
|
||||
lambda mod: mod.item.requiresSkill("Small Projectile Turret"),
|
||||
"damageMultiplier",
|
||||
1 / module.getModifiedItemAttr("modeDamageBonusPostDiv"),
|
||||
stackingPenalties=True,
|
||||
penaltyGroup="postDiv"
|
||||
)
|
||||
Reference in New Issue
Block a user