Stacking penalize missile flight time rigs

This commit is contained in:
DarkPhoenix
2015-07-12 02:12:59 +03:00
parent 0060f58e3d
commit 6f944fc7db
2 changed files with 5 additions and 2 deletions

View File

@@ -7,5 +7,7 @@
type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
penalized = False if "skill" in context or "implant" in context else True
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"explosionDelay", container.getModifiedItemAttr("maxFlightTimeBonus") * level)
"explosionDelay", container.getModifiedItemAttr("maxFlightTimeBonus") * level,
stackingPenalties=penalized)

View File

@@ -7,6 +7,7 @@
type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
penalized = False if "skill" in context or "implant" in context else True
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"maxVelocity", container.getModifiedItemAttr("speedFactor") * level,
stackingPenalties = "skill" not in context and "implant" not in context)
stackingPenalties=penalized)