Files
pyfa/eos/effects/effect607.py
2019-03-16 14:08:20 -04:00

17 lines
517 B
Python

# cloaking
#
# Used by:
# Modules from group: Cloaking Device (10 of 14)
type = "active"
runTime = "early"
# TODO: Rewrite this effect
def handler(fit, module, context):
# Set flag which is used to determine if ship is cloaked or not
# This is used to apply cloak-only bonuses, like Black Ops' speed bonus
# Doesn't apply to covops cloaks
fit.extraAttributes["cloaked"] = True
# Apply speed penalty
fit.ship.multiplyItemAttr("maxVelocity", module.getModifiedItemAttr("maxVelocityModifier"))