Update to SISI 1050133

This commit is contained in:
blitzmann
2016-06-19 12:39:09 -04:00
parent faa9c0a2b9
commit d1c6810e1e
14 changed files with 42 additions and 15 deletions

View File

@@ -95,11 +95,10 @@ class FitDpsGraph(Graph):
targetSigRad = explosionRadius if targetSigRad is None else targetSigRad
explosionVelocity = mod.getModifiedChargeAttr("aoeVelocity")
damageReductionFactor = mod.getModifiedChargeAttr("aoeDamageReductionFactor")
damageReductionSensitivity = mod.getModifiedChargeAttr("aoeDamageReductionSensitivity")
sigRadiusFactor = targetSigRad / explosionRadius
if targetVelocity:
velocityFactor = (explosionVelocity / explosionRadius * targetSigRad / targetVelocity) ** (log(damageReductionFactor) / log(damageReductionSensitivity))
velocityFactor = (explosionVelocity / explosionRadius * targetSigRad / targetVelocity) ** damageReductionFactor
else:
velocityFactor = 1