18 lines
703 B
Python
18 lines
703 B
Python
# remoteGuidanceDisruptFalloff
|
|
#
|
|
# Used by:
|
|
# Variations of module: Guidance Disruptor I (6 of 6)
|
|
type = "active", "projected"
|
|
|
|
def handler(fit, src, context):
|
|
if "projected" in context:
|
|
for srcAttr, tgtAttr in (
|
|
("aoeCloudSizeBonus", "aoeCloudSize"),
|
|
("aoeVelocityBonus", "aoeVelocity"),
|
|
("missileVelocityBonus", "maxVelocity"),
|
|
("explosionDelayBonus", "explosionDelay"),
|
|
):
|
|
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
|
|
tgtAttr, src.getModifiedItemAttr(srcAttr),
|
|
stackingPenalties=True)
|