Add more effects for new items

This commit is contained in:
DarkPhoenix
2014-05-31 22:02:41 +04:00
parent c9dca6cd2a
commit 665a1c473c
21 changed files with 86 additions and 8 deletions

View File

@@ -9,5 +9,5 @@
# Ship: Astero
type = "passive"
def handler(fit, container, context):
fit.modules.filteredItemForce(lambda mod: mod.item.group.name == "Cloaking Device",
fit.modules.filteredItemForce(lambda mod: mod.item.requiresSkill("Cloaking"),
"moduleReactivationDelay", container.getModifiedItemAttr("covertOpsAndReconOpsCloakModuleDelay"))

View File

@@ -0,0 +1,3 @@
type = "passive"
def handler(fit, module, context):
fit.ship.boostItemAttr("capacity", module.getModifiedItemAttr("drawback"))

View File

@@ -0,0 +1,11 @@
type = "passive"
def handler(fit, module, context):
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
"maxRange", module.getModifiedItemAttr("maxRangeBonus"),
stackingPenalties = True)
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
"falloff", module.getModifiedItemAttr("falloffBonus"),
stackingPenalties = True)
fit.drones.filteredItemBoost(lambda drone: drone.item.requiresSkill("Drones"),
"trackingSpeed", module.getModifiedItemAttr("trackingSpeedBonus"),
stackingPenalties = True)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, module, context):
level = fit.character.getSkill("Expedition Frigates").level
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Mining"),
"miningAmount", module.getModifiedItemAttr("eliteBonusExpedition1") * level)

View File

@@ -0,0 +1,4 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Expedition Frigates").level
fit.ship.boostItemAttr("signatureRadius", ship.getModifiedItemAttr("eliteBonusExpedition2") * level)

View File

@@ -0,0 +1,6 @@
# Used by:
# Implants named like: Low grade Harvest (5 of 6)
type = "passive"
def handler(fit, implant, context):
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Frequency Mining Laser",
"maxRange", implant.getModifiedItemAttr("maxRangeBonus"))

View File

@@ -2,5 +2,5 @@
# Ship: Venture
type = "passive"
def handler(fit, module, context):
fit.modules.filteredItemMultiply(lambda mod: mod.item.requiresSkill("Gas Cloud Harvesting"),
"miningAmount", module.getModifiedItemAttr("miningAmountMultiplier"))
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name == "Gas Cloud Harvester",
"miningAmount", module.getModifiedItemAttr("miningAmountMultiplier"))

View File

@@ -0,0 +1,4 @@
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"explosionDelay", ship.getModifiedItemAttr("shipBonusPirateFaction2"))

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Gallente Battleship").level
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Warp Scrambler",
"maxRange", ship.getModifiedItemAttr("shipBonusGB") * level)

View File

@@ -3,5 +3,5 @@
type = "passive"
def handler(fit, module, context):
level = fit.character.getSkill("Mining Frigate").level
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gas Cloud Harvesting"),
"duration", module.getModifiedItemAttr("shipBonusOREfrig2") * level)
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == "Gas Cloud Harvester",
"duration", module.getModifiedItemAttr("shipBonusOREfrig2") * level)

View File

@@ -4,4 +4,4 @@ type = "passive"
def handler(fit, module, context):
level = fit.character.getSkill("Mining Frigate").level
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Mining"),
"miningAmount", module.getModifiedItemAttr("shipBonusOREfrig1") * level)
"miningAmount", module.getModifiedItemAttr("shipBonusOREfrig1") * level)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Caldari Battleship").level
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"emDamage", ship.getModifiedItemAttr("shipBonusCB") * level)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Caldari Frigate").level
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"emDamage", ship.getModifiedItemAttr("shipBonusCF") * level)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Caldari Battleship").level
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"explosiveDamage", ship.getModifiedItemAttr("shipBonusCB") * level)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Caldari Frigate").level
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"explosiveDamage", ship.getModifiedItemAttr("shipBonusCF") * level)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Caldari Battleship").level
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"kineticDamage", ship.getModifiedItemAttr("shipBonusCB") * level)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Caldari Frigate").level
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"thermalDamage", ship.getModifiedItemAttr("shipBonusCF") * level)

View File

@@ -0,0 +1,5 @@
type = "passive"
def handler(fit, ship, context):
level = fit.character.getSkill("Caldari Battleship").level
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"thermalDamage", ship.getModifiedItemAttr("shipBonusCB") * level)

View File

@@ -2,5 +2,5 @@
# Ship: Worm
type = "passive"
def handler(fit, ship, context):
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Light Missiles") or mod.charge.requiresSkill("Rockets"),
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"maxVelocity", ship.getModifiedItemAttr("shipBonusPirateFaction"))

View File

@@ -4,4 +4,6 @@
# Modules named like: Hyperspatial Velocity Optimizer (8 of 8)
type = "passive"
def handler(fit, container, context):
fit.ship.boostItemAttr("baseWarpSpeed", container.getModifiedItemAttr("WarpSBonus"))
penalized = False if "skill" in context or "implant" in context else True
fit.ship.boostItemAttr("baseWarpSpeed", container.getModifiedItemAttr("WarpSBonus"),
stackingPenalties=penalized)

View File

@@ -0,0 +1,3 @@
type = "passive"
def handler(fit, module, context):
fit.ship.increaseItemAttr("warpSpeedMultiplier", module.getModifiedItemAttr("warpSpeedAdd"))