Correct the structure guidance enhancers to apply bonuses to relevant charges.
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
# Not used by any item
|
# Not used by any item
|
||||||
type = "active"
|
type = "passive"
|
||||||
|
|
||||||
|
|
||||||
def handler(fit, container, context):
|
def handler(fit, container, context):
|
||||||
|
missileGroups = ("Structure Anti-Capital Missile", "Structure Anti-Subcapital Missile")
|
||||||
for srcAttr, tgtAttr in (
|
for srcAttr, tgtAttr in (
|
||||||
("aoeCloudSizeBonus", "aoeCloudSize"),
|
("aoeCloudSizeBonus", "aoeCloudSize"),
|
||||||
("aoeVelocityBonus", "aoeVelocity"),
|
("aoeVelocityBonus", "aoeVelocity"),
|
||||||
("missileVelocityBonus", "maxVelocity"),
|
("missileVelocityBonus", "maxVelocity"),
|
||||||
("explosionDelayBonus", "explosionDelay"),
|
("explosionDelayBonus", "explosionDelay"),
|
||||||
):
|
):
|
||||||
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
|
fit.modules.filteredChargeBoost(lambda mod: mod.charge.group.name in missileGroups,
|
||||||
tgtAttr, container.getModifiedItemAttr(srcAttr),
|
tgtAttr, container.getModifiedItemAttr(srcAttr),
|
||||||
stackingPenalties=True)
|
stackingPenalties=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user