Updates for modifications

This commit is contained in:
Cmdr McDonald
2016-10-31 11:22:36 +00:00
parent 4b14f617ec
commit e5cc3e269e
13 changed files with 162 additions and 69 deletions

View File

@@ -60,11 +60,8 @@ export function shieldStrength(mass, baseShield, sg, multiplier) {
let exponent = Math.log((optMul - minMul) / (maxMul - minMul)) / Math.log(Math.min(1, (maxMass - optMass) / (maxMass - minMass)))
let ynorm = Math.pow(xnorm, exponent);
let mul = minMul + ynorm * (maxMul - minMul);
let strength = baseShield * mul;
// TODO handle multiplier
return strength;
return baseShield * mul * multiplier;
}
/**