Fix couple of ewar link effects, add missing SBA heat effect

This commit is contained in:
DarkPhoenix
2014-06-03 00:04:30 +04:00
parent 18385584bf
commit dcd2cdeddc
4 changed files with 10 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ type = "active", "gang"
def handler(fit, module, context):
if "gang" not in context: return
for scanType in ("Magnetometric", "Radar", "Ladar", "Gravimetric"):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "ECM",
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Electronic Warfare"),
"scan%sStrengthBonus" % scanType,
module.getModifiedItemAttr("commandBonusECM"),
stackingPenalties = True)

View File

@@ -5,8 +5,8 @@ gangBoost = "ewarStrRSD"
type = "active", "gang"
def handler(fit, module, context):
if "gang" not in context: return
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Sensor Linking"),
"maxTargetRangeBonus", module.getModifiedItemAttr("commandBonusRSD"))
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Remote Sensor Damper",
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Sensor Linking"),
"scanResolutionBonus", module.getModifiedItemAttr("commandBonusRSD"),
stackingPenalties=True)

View File

@@ -3,4 +3,4 @@
type = "passive"
def handler(fit, implant, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gas Cloud Harvesting"),
"duration", implant.getModifiedItemAttr("durationBonus"))
"duration", implant.getModifiedItemAttr("durationBonus"))

View File

@@ -0,0 +1,6 @@
# Used by:
# Modules from group: Shield Boost Amplifier (25 of 25)
type = "passive"
def handler(fit, module, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation"),
"heatDamage", module.getModifiedItemAttr("heatDamageBonus"))