From 262e089aac8b3be0b0ff85965788b0c933645e42 Mon Sep 17 00:00:00 2001 From: Jon Davis Date: Fri, 17 Dec 2021 00:36:31 +0000 Subject: [PATCH] Prevent engine pips from affecting roll and yaw --- src/app/shipyard/Calculations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/shipyard/Calculations.js b/src/app/shipyard/Calculations.js index 0b9873ff..23ad030a 100644 --- a/src/app/shipyard/Calculations.js +++ b/src/app/shipyard/Calculations.js @@ -293,7 +293,7 @@ export function calcRoll(mass, baseRoll, thrusters, engpip, eng, boostFactor, bo let minMul = thrusters instanceof Module ? thrusters.getMinMul('rotation') : (thrusters.minmulrotation ? thrusters.minmulrotation : thrusters.minmul); let optMul = thrusters instanceof Module ? thrusters.getOptMul('rotation') : (thrusters.optmulrotation ? thrusters.optmulrotation : thrusters.optmul); let maxMul = thrusters instanceof Module ? thrusters.getMaxMul('rotation') : (thrusters.maxmulrotation ? thrusters.maxmulrotation : thrusters.maxmul); - + eng = 0; let result = calcValue(minMass, optMass, maxMass, minMul, optMul, maxMul, mass, baseRoll, engpip, eng); if (boost == true) { result *= boostFactor; @@ -321,7 +321,7 @@ export function calcYaw(mass, baseYaw, thrusters, engpip, eng, boostFactor, boos let minMul = thrusters instanceof Module ? thrusters.getMinMul('rotation') : (thrusters.minmulrotation ? thrusters.minmulrotation : thrusters.minmul); let optMul = thrusters instanceof Module ? thrusters.getOptMul('rotation') : (thrusters.optmulrotation ? thrusters.optmulrotation : thrusters.optmul); let maxMul = thrusters instanceof Module ? thrusters.getMaxMul('rotation') : (thrusters.maxmulrotation ? thrusters.maxmulrotation : thrusters.maxmul); - + eng = 0; let result = calcValue(minMass, optMass, maxMass, minMul, optMul, maxMul, mass, baseYaw, engpip, eng); if (boost == true) { result *= boostFactor;