Revert "Remove effect files that are not used by any item"

This reverts commit b29fa2467a.

(cherry picked from commit 4a95156)
This commit is contained in:
blitzman
2016-12-04 20:10:09 -08:00
committed by Ebag333
parent 9f4b31979c
commit 7fbd89392a
67 changed files with 744 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
# Not used by any item
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