Revert "Clean up unused effects"

This reverts commit 842be9535b.
This commit is contained in:
blitzmann
2018-05-20 00:22:14 -04:00
parent deecfb31dc
commit 020cc9e295
214 changed files with 2102 additions and 6 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