Add more effects for new items
This commit is contained in:
@@ -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"))
|
||||
|
||||
3
eos/effects/drawbackcargocapacity.py
Normal file
3
eos/effects/drawbackcargocapacity.py
Normal file
@@ -0,0 +1,3 @@
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.ship.boostItemAttr("capacity", module.getModifiedItemAttr("drawback"))
|
||||
11
eos/effects/dronetrackingenhancerbonus.py
Normal file
11
eos/effects/dronetrackingenhancerbonus.py
Normal 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)
|
||||
5
eos/effects/elitebonusexpeditionmining1.py
Normal file
5
eos/effects/elitebonusexpeditionmining1.py
Normal 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)
|
||||
4
eos/effects/elitebonusexpeditionsigradius2.py
Normal file
4
eos/effects/elitebonusexpeditionsigradius2.py
Normal 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)
|
||||
6
eos/effects/frequencymininglasermaxrangebonus.py
Normal file
6
eos/effects/frequencymininglasermaxrangebonus.py
Normal 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"))
|
||||
@@ -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"))
|
||||
|
||||
@@ -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"))
|
||||
5
eos/effects/shipbonuswarpscramblemaxrangegb.py
Normal file
5
eos/effects/shipbonuswarpscramblemaxrangegb.py
Normal 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)
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
5
eos/effects/shipmissileemdamagecb.py
Normal file
5
eos/effects/shipmissileemdamagecb.py
Normal 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)
|
||||
5
eos/effects/shipmissileemdamagecf.py
Normal file
5
eos/effects/shipmissileemdamagecf.py
Normal 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)
|
||||
5
eos/effects/shipmissileexplodamagecb.py
Normal file
5
eos/effects/shipmissileexplodamagecb.py
Normal 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)
|
||||
5
eos/effects/shipmissileexplosivedamagecf.py
Normal file
5
eos/effects/shipmissileexplosivedamagecf.py
Normal 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)
|
||||
5
eos/effects/shipmissilekindamagecb.py
Normal file
5
eos/effects/shipmissilekindamagecb.py
Normal 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)
|
||||
5
eos/effects/shipmissilethermaldamagecf.py
Normal file
5
eos/effects/shipmissilethermaldamagecf.py
Normal 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)
|
||||
5
eos/effects/shipmissilethermdamagecb.py
Normal file
5
eos/effects/shipmissilethermdamagecb.py
Normal 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)
|
||||
@@ -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"))
|
||||
|
||||
@@ -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)
|
||||
|
||||
3
eos/effects/warpspeedaddition.py
Normal file
3
eos/effects/warpspeedaddition.py
Normal file
@@ -0,0 +1,3 @@
|
||||
type = "passive"
|
||||
def handler(fit, module, context):
|
||||
fit.ship.increaseItemAttr("warpSpeedMultiplier", module.getModifiedItemAttr("warpSpeedAdd"))
|
||||
Reference in New Issue
Block a user