Merge pull request #160 from blitzmann/fix-159
Fixes for stacking penalties for various wormhole effects
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.ship.multiplyItemAttr("agility", beacon.getModifiedItemAttr("agilityMultiplier"))
|
||||
fit.ship.multiplyItemAttr("agility", beacon.getModifiedItemAttr("agilityMultiplier"), stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -4,4 +4,5 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Remote Armor Repairer",
|
||||
"armorDamageAmount", module.getModifiedItemAttr("armorDamageAmountMultiplierRemote"))
|
||||
"armorDamageAmount", module.getModifiedItemAttr("armorDamageAmountMultiplierRemote"),
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -4,4 +4,5 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.drones.filteredItemMultiply(lambda drone: drone.item.requiresSkill("Drones"),
|
||||
"damageMultiplier", beacon.getModifiedItemAttr("damageMultiplierMultiplier"))
|
||||
"damageMultiplier", beacon.getModifiedItemAttr("damageMultiplierMultiplier"),
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -4,5 +4,4 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
|
||||
"emDamage", beacon.getModifiedItemAttr("damageMultiplierMultiplier"),
|
||||
stackingPenalties = True)
|
||||
"emDamage", beacon.getModifiedItemAttr("damageMultiplierMultiplier"))
|
||||
|
||||
@@ -4,5 +4,4 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
|
||||
"explosiveDamage", beacon.getModifiedItemAttr("damageMultiplierMultiplier"),
|
||||
stackingPenalties = True)
|
||||
"explosiveDamage", beacon.getModifiedItemAttr("damageMultiplierMultiplier"))
|
||||
|
||||
@@ -4,4 +4,5 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.drones.filteredItemMultiply(lambda drone: drone.item.requiresSkill("Fighters"),
|
||||
"damageMultiplier", beacon.getModifiedItemAttr("damageMultiplierMultiplier"))
|
||||
"damageMultiplier", beacon.getModifiedItemAttr("damageMultiplierMultiplier")
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -4,5 +4,4 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
|
||||
"kineticDamage", beacon.getModifiedItemAttr("damageMultiplierMultiplier"),
|
||||
stackingPenalties = True)
|
||||
"kineticDamage", beacon.getModifiedItemAttr("damageMultiplierMultiplier"))
|
||||
|
||||
@@ -5,4 +5,4 @@ type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Gunnery"),
|
||||
"damageMultiplier", beacon.getModifiedItemAttr("damageMultiplierMultiplier"),
|
||||
stackingPenalties = True)
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -4,5 +4,4 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
|
||||
"thermalDamage", beacon.getModifiedItemAttr("damageMultiplierMultiplier"),
|
||||
stackingPenalties = True)
|
||||
"thermalDamage", beacon.getModifiedItemAttr("damageMultiplierMultiplier"))
|
||||
|
||||
@@ -4,4 +4,5 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.drones.filteredItemMultiply(lambda drone: True,
|
||||
"trackingSpeed", beacon.getModifiedItemAttr("trackingSpeedMultiplier"))
|
||||
"trackingSpeed", beacon.getModifiedItemAttr("trackingSpeedMultiplier"),
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.ship.multiplyItemAttr("maxVelocity", beacon.getModifiedItemAttr("maxVelocityMultiplier"))
|
||||
fit.ship.multiplyItemAttr("maxVelocity", beacon.getModifiedItemAttr("maxVelocityMultiplier"), stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -4,4 +4,5 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
|
||||
"maxVelocity", beacon.getModifiedItemAttr("missileVelocityMultiplier"))
|
||||
"maxVelocity", beacon.getModifiedItemAttr("missileVelocityMultiplier"),
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -4,4 +4,5 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Remote Shield Booster",
|
||||
"shieldBonus", module.getModifiedItemAttr("shieldBonusMultiplierRemote"))
|
||||
"shieldBonus", module.getModifiedItemAttr("shieldBonusMultiplierRemote"),
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -4,4 +4,5 @@
|
||||
runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.ship.multiplyItemAttr("signatureRadius", beacon.getModifiedItemAttr("signatureRadiusMultiplier"))
|
||||
fit.ship.multiplyItemAttr("signatureRadius", beacon.getModifiedItemAttr("signatureRadiusMultiplier"),
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -5,4 +5,4 @@ type = ("projected", "offline")
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Small Energy Turret"),
|
||||
"damageMultiplier", module.getModifiedItemAttr("smallWeaponDamageMultiplier"),
|
||||
stackingPenalties = True)
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -5,4 +5,4 @@ type = ("projected", "offline")
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Small Hybrid Turret"),
|
||||
"damageMultiplier", module.getModifiedItemAttr("smallWeaponDamageMultiplier"),
|
||||
stackingPenalties = True)
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -5,4 +5,4 @@ type = ("projected", "offline")
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Small Projectile Turret"),
|
||||
"damageMultiplier", module.getModifiedItemAttr("smallWeaponDamageMultiplier"),
|
||||
stackingPenalties = True)
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -4,5 +4,4 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Light Missiles"),
|
||||
"emDamage", beacon.getModifiedItemAttr("smallWeaponDamageMultiplier"),
|
||||
stackingPenalties = True)
|
||||
"emDamage", beacon.getModifiedItemAttr("smallWeaponDamageMultiplier"))
|
||||
|
||||
@@ -4,5 +4,4 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Light Missiles"),
|
||||
"explosiveDamage", beacon.getModifiedItemAttr("smallWeaponDamageMultiplier"),
|
||||
stackingPenalties = True)
|
||||
"explosiveDamage", beacon.getModifiedItemAttr("smallWeaponDamageMultiplier"))
|
||||
|
||||
@@ -4,5 +4,4 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Light Missiles"),
|
||||
"kineticDamage", beacon.getModifiedItemAttr("smallWeaponDamageMultiplier"),
|
||||
stackingPenalties = True)
|
||||
"kineticDamage", beacon.getModifiedItemAttr("smallWeaponDamageMultiplier"))
|
||||
|
||||
@@ -4,5 +4,4 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.modules.filteredChargeMultiply(lambda mod: mod.charge.requiresSkill("Light Missiles"),
|
||||
"thermalDamage", beacon.getModifiedItemAttr("smallWeaponDamageMultiplier"),
|
||||
stackingPenalties = True)
|
||||
"thermalDamage", beacon.getModifiedItemAttr("smallWeaponDamageMultiplier"))
|
||||
|
||||
@@ -4,4 +4,5 @@
|
||||
runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, beacon, context):
|
||||
fit.ship.multiplyItemAttr("maxTargetRange", beacon.getModifiedItemAttr("maxTargetRangeMultiplier"))
|
||||
fit.ship.multiplyItemAttr("maxTargetRange", beacon.getModifiedItemAttr("maxTargetRangeMultiplier"),
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
@@ -4,4 +4,5 @@ runTime = "early"
|
||||
type = ("projected", "offline")
|
||||
def handler(fit, module, context):
|
||||
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Gunnery"),
|
||||
"trackingSpeed", module.getModifiedItemAttr("trackingSpeedMultiplier"))
|
||||
"trackingSpeed", module.getModifiedItemAttr("trackingSpeedMultiplier"),
|
||||
stackingPenalties = True, penaltyGroup="postMul")
|
||||
|
||||
Reference in New Issue
Block a user