Fix several effects
This commit is contained in:
@@ -4,7 +4,5 @@ type = "gang", "active"
|
||||
gangBoost = "armorRepairCapacitorNeed"
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
groups = ("Armor Repair Unit", "Armor Repair Projector")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
"capacitorNeed", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Remote Armor Repair Systems"),
|
||||
"capacitorNeed", module.getModifiedItemAttr("commandBonus"))
|
||||
|
||||
@@ -4,7 +4,5 @@ type = "gang", "active"
|
||||
gangBoost = "armorRepairDuration"
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
groups = ("Armor Repair Unit", "Armor Repair Projector")
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
|
||||
"duration", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems") or mod.item.requiresSkill("Remote Armor Repair Systems"),
|
||||
"duration", module.getModifiedItemAttr("commandBonus"))
|
||||
|
||||
@@ -5,5 +5,4 @@ gangBoost = "shieldRepairCapacitorNeed"
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),
|
||||
"capacitorNeed", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
"capacitorNeed", module.getModifiedItemAttr("commandBonus"))
|
||||
|
||||
@@ -5,5 +5,4 @@ gangBoost = "shieldRepairDuration"
|
||||
def handler(fit, module, context):
|
||||
if "gang" not in context: return
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),
|
||||
"duration", module.getModifiedItemAttr("commandBonus"),
|
||||
stackingPenalties = True)
|
||||
"duration", module.getModifiedItemAttr("commandBonus"))
|
||||
|
||||
@@ -7,5 +7,4 @@ type = "passive"
|
||||
def handler(fit, container, context):
|
||||
level = container.level if "skill" in context else 1
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Repair Systems"),
|
||||
"duration", container.getModifiedItemAttr("durationSkillBonus") * level,
|
||||
stackingPenalties = "skill" not in context and "implant" not in context)
|
||||
"duration", container.getModifiedItemAttr("durationSkillBonus") * level)
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
# Implants named like: Blue Pill Booster (5 of 5)
|
||||
type = "passive"
|
||||
def handler(fit, container, context):
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation"),
|
||||
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Capital Shield Operation"),
|
||||
"shieldBonus", container.getModifiedItemAttr("shieldBoostMultiplier"))
|
||||
|
||||
Reference in New Issue
Block a user