Fit implant effects (now applies to whichever implant source is selected)
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(
|
fit.appliedImplants.filteredItemMultiply(
|
||||||
lambda implant: "signatureRadiusBonus" in implant.itemModifiedAttributes and "implantSetAngel" in implant.itemModifiedAttributes,
|
lambda implant: "signatureRadiusBonus" in implant.itemModifiedAttributes and "implantSetAngel" in implant.itemModifiedAttributes,
|
||||||
"signatureRadiusBonus",
|
"signatureRadiusBonus",
|
||||||
implant.getModifiedItemAttr("implantSetAngel"))
|
implant.getModifiedItemAttr("implantSetAngel"))
|
||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
fit.appliedImplants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
||||||
"scanGravimetricStrengthPercent", implant.getModifiedItemAttr("implantSetCaldariNavy"))
|
"scanGravimetricStrengthPercent", implant.getModifiedItemAttr("implantSetCaldariNavy"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
fit.appliedImplants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
||||||
"scanGravimetricStrengthModifier", implant.getModifiedItemAttr("implantSetLGCaldariNavy"))
|
"scanGravimetricStrengthModifier", implant.getModifiedItemAttr("implantSetLGCaldariNavy"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
runTime = "early"
|
runTime = "early"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
fit.appliedImplants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
||||||
"scanMagnetometricStrengthPercent", implant.getModifiedItemAttr("implantSetFederationNavy"))
|
"scanMagnetometricStrengthPercent", implant.getModifiedItemAttr("implantSetFederationNavy"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
runTime = "early"
|
runTime = "early"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
fit.appliedImplants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
||||||
"scanMagnetometricStrengthModifier", implant.getModifiedItemAttr("implantSetLGFederationNavy"))
|
"scanMagnetometricStrengthModifier", implant.getModifiedItemAttr("implantSetLGFederationNavy"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
runTime = "early"
|
runTime = "early"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
fit.appliedImplants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
||||||
"scanRadarStrengthPercent", implant.getModifiedItemAttr("implantSetImperialNavy"))
|
"scanRadarStrengthPercent", implant.getModifiedItemAttr("implantSetImperialNavy"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
type = "passive"
|
type = "passive"
|
||||||
runTime = "early"
|
runTime = "early"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
fit.appliedImplants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
||||||
"scanRadarStrengthModifier", implant.getModifiedItemAttr("implantSetLGImperialNavy"))
|
"scanRadarStrengthModifier", implant.getModifiedItemAttr("implantSetLGImperialNavy"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"WarpSBonus", implant.getModifiedItemAttr("implantSetWarpSpeed"))
|
"WarpSBonus", implant.getModifiedItemAttr("implantSetWarpSpeed"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
fit.appliedImplants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
||||||
"scanLadarStrengthPercent", implant.getModifiedItemAttr("implantSetRepublicFleet"))
|
"scanLadarStrengthPercent", implant.getModifiedItemAttr("implantSetRepublicFleet"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
fit.appliedImplants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
||||||
"scanLadarStrengthModifier", implant.getModifiedItemAttr("implantSetLGRepublicFleet"))
|
"scanLadarStrengthModifier", implant.getModifiedItemAttr("implantSetLGRepublicFleet"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"durationBonus", implant.getModifiedItemAttr("implantSetBloodraider"))
|
"durationBonus", implant.getModifiedItemAttr("implantSetBloodraider"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"agilityBonus", implant.getModifiedItemAttr("implantSetChristmas"))
|
"agilityBonus", implant.getModifiedItemAttr("implantSetChristmas"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"armorHpBonus2", implant.getModifiedItemAttr("implantSetChristmas"))
|
"armorHpBonus2", implant.getModifiedItemAttr("implantSetChristmas"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"implantBonusVelocity", implant.getModifiedItemAttr("implantSetChristmas"))
|
"implantBonusVelocity", implant.getModifiedItemAttr("implantSetChristmas"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"capacitorCapacityBonus", implant.getModifiedItemAttr("implantSetChristmas"))
|
"capacitorCapacityBonus", implant.getModifiedItemAttr("implantSetChristmas"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"capRechargeBonus", implant.getModifiedItemAttr("implantSetChristmas"))
|
"capRechargeBonus", implant.getModifiedItemAttr("implantSetChristmas"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"cpuOutputBonus2", implant.getModifiedItemAttr("implantSetChristmas"))
|
"cpuOutputBonus2", implant.getModifiedItemAttr("implantSetChristmas"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"powerEngineeringOutputBonus", implant.getModifiedItemAttr("implantSetChristmas"))
|
"powerEngineeringOutputBonus", implant.getModifiedItemAttr("implantSetChristmas"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"shieldCapacityBonus", implant.getModifiedItemAttr("implantSetChristmas"))
|
"shieldCapacityBonus", implant.getModifiedItemAttr("implantSetChristmas"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"shieldBoostMultiplier", implant.getModifiedItemAttr("implantSetGuristas"))
|
"shieldBoostMultiplier", implant.getModifiedItemAttr("implantSetGuristas"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"rangeSkillBonus", implant.getModifiedItemAttr("implantSetMordus"))
|
"rangeSkillBonus", implant.getModifiedItemAttr("implantSetMordus"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"maxRangeBonus", implant.getModifiedItemAttr("implantSetORE"))
|
"maxRangeBonus", implant.getModifiedItemAttr("implantSetORE"))
|
||||||
|
|||||||
@@ -6,5 +6,6 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
print "applying set bonus to implants on ", fit, fit.appliedImplants, " from: ", implant, implant.item.name
|
||||||
|
fit.appliedImplants.filteredItemMultiply(lambda target: target.item.requiresSkill("Cybernetics"),
|
||||||
"armorHpBonus", implant.getModifiedItemAttr("implantSetSansha") or 1)
|
"armorHpBonus", implant.getModifiedItemAttr("implantSetSansha") or 1)
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"velocityBonus", implant.getModifiedItemAttr("implantSetSerpentis"))
|
"velocityBonus", implant.getModifiedItemAttr("implantSetSerpentis"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"scanStrengthBonus", implant.getModifiedItemAttr("implantSetSisters"))
|
"scanStrengthBonus", implant.getModifiedItemAttr("implantSetSisters"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"boosterAttributeModifier", implant.getModifiedItemAttr("implantSetSyndicate"))
|
"boosterAttributeModifier", implant.getModifiedItemAttr("implantSetSyndicate"))
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
runTime = "early"
|
runTime = "early"
|
||||||
type = "passive"
|
type = "passive"
|
||||||
def handler(fit, implant, context):
|
def handler(fit, implant, context):
|
||||||
fit.implants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
fit.appliedImplants.filteredItemMultiply(lambda mod: mod.item.group.name == "Cyberimplant",
|
||||||
"agilityBonus", implant.getModifiedItemAttr("implantSetThukker"))
|
"agilityBonus", implant.getModifiedItemAttr("implantSetThukker"))
|
||||||
|
|||||||
Reference in New Issue
Block a user