26 lines
889 B
Python
26 lines
889 B
Python
# warpScrambleBlockMWDWithNPCEffect
|
|
#
|
|
# Used by:
|
|
# Modules named like: Warp Scrambler (27 of 27)
|
|
from eos.const import FittingModuleState
|
|
|
|
runTime = "early"
|
|
type = "projected", "active"
|
|
|
|
|
|
def handler(fit, module, context):
|
|
if "projected" not in context:
|
|
return
|
|
|
|
fit.ship.increaseItemAttr("warpScrambleStatus", module.getModifiedItemAttr("warpScrambleStrength"))
|
|
|
|
# this is such a dirty hack
|
|
for mod in fit.modules:
|
|
if not mod.isEmpty and mod.state > FittingModuleState.ONLINE and (
|
|
mod.item.requiresSkill("Micro Jump Drive Operation") or
|
|
mod.item.requiresSkill("High Speed Maneuvering")
|
|
):
|
|
mod.state = FittingModuleState.ONLINE
|
|
if not mod.isEmpty and mod.item.requiresSkill("Micro Jump Drive Operation") and mod.state > FittingModuleState.ONLINE:
|
|
mod.state = FittingModuleState.ONLINE
|