Files
pyfa/eos/effects/structurewarpscrambleblockmwdwithnpceffect.py
2016-07-04 14:27:35 -07:00

21 lines
612 B
Python

# structureWarpScrambleBlockMWDWithNPCEffect
#
# Used by:
# Modules named like: Standup Warp Scrambler
runTime = "early"
type = "projected", "active"
from eos.types import State
def handler(fit, module, context):
if "projected" not in context:
return
# this is such a dirty hack
for mod in fit.modules:
if not mod.isEmpty and mod.item.requiresSkill("High Speed Maneuvering") and mod.state > State.ONLINE:
mod.state = State.ONLINE
# TODO
# believe this doesn't actual require skills to use.
# Need to figure out how to remove the skill req *OR* tie it to the structure.