Commit new Phoebe effect files
This commit is contained in:
14
eos/effects/cloakingprototype.py
Normal file
14
eos/effects/cloakingprototype.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# cloakingPrototype
|
||||
#
|
||||
# Used by:
|
||||
# Modules named like: Prototype Cloaking Device I (2 of 2)
|
||||
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("maxVelocityBonus"))
|
||||
Reference in New Issue
Block a user