Added Effects Files for Citadel Modules

This commit is contained in:
Ebag333
2016-07-04 14:27:35 -07:00
parent 1c194b67f3
commit 0e0bcf51fc
15 changed files with 185 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
# remoteECMFalloff
#
# Used by:
# Modules from group: ECM (39 of 39)
type = "projected", "active"
def handler(fit, module, context):
if "projected" in context:
# jam formula: 1 - (1- (jammer str/ship str))^(# of jam mods with same str))
strModifier = 1 - module.getModifiedItemAttr("scan{0}StrengthBonus".format(fit.scanType))/fit.scanStrength
fit.ecmProjectedStr *= strModifier
# 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.