Reformatting all effect files for readability and better PEP8 compliance

This commit is contained in:
Ebag333
2016-10-19 11:16:32 -07:00
parent 481619101b
commit 3e842f30f1
1961 changed files with 6494 additions and 1520 deletions

View File

@@ -1,8 +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
strModifier = 1 - module.getModifiedItemAttr("scan{0}StrengthBonus".format(fit.scanType)) / fit.scanStrength
fit.ecmProjectedStr *= strModifier