Fix runtime for all ganglink module effects

This commit is contained in:
blitzmann
2016-02-07 23:46:20 -05:00
parent 785060f12b
commit 373ccbcee5
16 changed files with 33 additions and 2 deletions

View File

@@ -5,6 +5,8 @@
gangBonus = "commandBonusECM" gangBonus = "commandBonusECM"
gangBoost = "ewarStrECM" gangBoost = "ewarStrECM"
type = "active", "gang" type = "active", "gang"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
for scanType in ("Magnetometric", "Radar", "Ladar", "Gravimetric"): for scanType in ("Magnetometric", "Radar", "Ladar", "Gravimetric"):

View File

@@ -5,6 +5,8 @@
gangBonus = "commandBonusRSD" gangBonus = "commandBonusRSD"
gangBoost = "ewarStrRSD" gangBoost = "ewarStrRSD"
type = "active", "gang" type = "active", "gang"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Sensor Linking"), fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Sensor Linking"),

View File

@@ -5,6 +5,8 @@
gangBonus = "commandBonusTD" gangBonus = "commandBonusTD"
gangBoost = "ewarStrTD" gangBoost = "ewarStrTD"
type = "active", "gang" type = "active", "gang"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
for bonus in ( for bonus in (

View File

@@ -5,6 +5,8 @@
gangBonus = "commandBonusTP" gangBonus = "commandBonusTP"
gangBoost = "ewarStrTP" gangBoost = "ewarStrTP"
type = "active", "gang" type = "active", "gang"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Target Painting"), fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Target Painting"),

View File

@@ -4,6 +4,8 @@
# Variations of module: Skirmish Warfare Link - Rapid Deployment I (2 of 2) # Variations of module: Skirmish Warfare Link - Rapid Deployment I (2 of 2)
type = "gang", "active" type = "gang", "active"
gangBoost = "speedFactor" gangBoost = "speedFactor"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Propulsion Module", fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Propulsion Module",

View File

@@ -4,6 +4,8 @@
# Variations of module: Armored Warfare Link - Passive Defense I (2 of 2) # Variations of module: Armored Warfare Link - Passive Defense I (2 of 2)
type = "gang", "active" type = "gang", "active"
gangBoost = "armorResistance" gangBoost = "armorResistance"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
for damageType in ("Em", "Thermal", "Explosive", "Kinetic"): for damageType in ("Em", "Thermal", "Explosive", "Kinetic"):

View File

@@ -4,6 +4,8 @@
# Variations of module: Armored Warfare Link - Damage Control I (2 of 2) # Variations of module: Armored Warfare Link - Damage Control I (2 of 2)
type = "gang", "active" type = "gang", "active"
gangBoost = "armorRepairCapacitorNeed" gangBoost = "armorRepairCapacitorNeed"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Remote Armor Repair Systems"), fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Remote Armor Repair Systems"),

View File

@@ -4,6 +4,8 @@
# Variations of module: Armored Warfare Link - Rapid Repair I (2 of 2) # Variations of module: Armored Warfare Link - Rapid Repair I (2 of 2)
type = "gang", "active" type = "gang", "active"
gangBoost = "armorRepairDuration" gangBoost = "armorRepairDuration"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Remote Armor Repair Systems"), fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Remote Armor Repair Systems"),

View File

@@ -4,6 +4,8 @@
# Variations of module: Skirmish Warfare Link - Evasive Maneuvers I (2 of 2) # Variations of module: Skirmish Warfare Link - Evasive Maneuvers I (2 of 2)
type = "gang", "active" type = "gang", "active"
gangBoost = "signatureRadius" gangBoost = "signatureRadius"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
fit.ship.boostItemAttr("signatureRadius", module.getModifiedItemAttr("commandBonus"), fit.ship.boostItemAttr("signatureRadius", module.getModifiedItemAttr("commandBonus"),

View File

@@ -4,6 +4,8 @@
# Variations of module: Information Warfare Link - Recon Operation I (2 of 2) # Variations of module: Information Warfare Link - Recon Operation I (2 of 2)
type = "gang", "active" type = "gang", "active"
gangBoost = "electronicMaxRange" gangBoost = "electronicMaxRange"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
groups = ("Target Painter", "Weapon Disruptor", "Remote Sensor Damper", "ECM", "ECM Burst") groups = ("Target Painter", "Weapon Disruptor", "Remote Sensor Damper", "ECM", "ECM Burst")

View File

@@ -3,8 +3,9 @@
# Used by: # Used by:
# Variations of module: Information Warfare Link - Electronic Superiority I (2 of 2) # Variations of module: Information Warfare Link - Electronic Superiority I (2 of 2)
type = "active" type = "active"
def handler(fit, module, context): def handler(fit, module, context):
module.multiplyItemAttr("commandBonusTD", module.getModifiedItemAttr("commandBonusHidden")) module.multiplyItemAttr("commandBonusTD", module.getModifiedItemAttr("commandBonusHidden"))
module.multiplyItemAttr("commandBonusECM", module.getModifiedItemAttr("commandBonusHidden")) module.multiplyItemAttr("commandBonusECM", module.getModifiedItemAttr("commandBonusHidden"))
module.multiplyItemAttr("commandBonusRSD", module.getModifiedItemAttr("commandBonusHidden")) module.multiplyItemAttr("commandBonusRSD", module.getModifiedItemAttr("commandBonusHidden"))
module.multiplyItemAttr("commandBonusTP", module.getModifiedItemAttr("commandBonusHidden")) module.multiplyItemAttr("commandBonusTP", module.getModifiedItemAttr("commandBonusHidden"))

View File

@@ -4,9 +4,11 @@
# Variations of module: Skirmish Warfare Link - Interdiction Maneuvers I (2 of 2) # Variations of module: Skirmish Warfare Link - Interdiction Maneuvers I (2 of 2)
type = "gang", "active" type = "gang", "active"
gangBoost = "interdictionMaxRange" gangBoost = "interdictionMaxRange"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
groups = ("Stasis Web","Warp Scrambler") groups = ("Stasis Web", "Warp Scrambler")
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups, fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
"maxRange", module.getModifiedItemAttr("commandBonus"), "maxRange", module.getModifiedItemAttr("commandBonus"),
stackingPenalties = True) stackingPenalties = True)

View File

@@ -5,6 +5,8 @@
type = "gang", "active" type = "gang", "active"
gangBoost = "maxTargetRange" gangBoost = "maxTargetRange"
gangBonus = "commandBonus" gangBonus = "commandBonus"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
fit.ship.boostItemAttr("maxTargetRange", module.getModifiedItemAttr("commandBonus"), fit.ship.boostItemAttr("maxTargetRange", module.getModifiedItemAttr("commandBonus"),

View File

@@ -4,6 +4,8 @@
# Variations of module: Siege Warfare Link - Shield Efficiency I (2 of 2) # Variations of module: Siege Warfare Link - Shield Efficiency I (2 of 2)
type = "gang", "active" type = "gang", "active"
gangBoost = "shieldRepairCapacitorNeed" gangBoost = "shieldRepairCapacitorNeed"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"), fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),

View File

@@ -4,6 +4,8 @@
# Variations of module: Siege Warfare Link - Active Shielding I (2 of 2) # Variations of module: Siege Warfare Link - Active Shielding I (2 of 2)
type = "gang", "active" type = "gang", "active"
gangBoost = "shieldRepairDuration" gangBoost = "shieldRepairDuration"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"), fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),

View File

@@ -4,6 +4,8 @@
# Variations of module: Siege Warfare Link - Shield Harmonizing I (2 of 2) # Variations of module: Siege Warfare Link - Shield Harmonizing I (2 of 2)
type = "gang", "active" type = "gang", "active"
gangBoost = "shieldResistance" gangBoost = "shieldResistance"
runTime = "late"
def handler(fit, module, context): def handler(fit, module, context):
if "gang" not in context: return if "gang" not in context: return
for damageType in ("Em", "Explosive", "Thermal", "Kinetic"): for damageType in ("Em", "Explosive", "Thermal", "Kinetic"):