Fix Scram effect to turn off MWDs. Fixes #70

This commit is contained in:
blitzmann
2015-09-06 11:06:52 -04:00
parent 51a8076d30
commit 492776c5a8

View File

@@ -4,5 +4,13 @@
# Variations of module: Warp Scrambler I (19 of 19)
runTime = "early"
type = "projected", "active"
from eos.types import State
def handler(fit, module, context):
pass
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