Merge pull request #561 from Freaky/reserve-tank-jump-mass

Calculate jump range with a full reserve fuel tank
This commit is contained in:
Felix Linker
2020-10-24 11:46:32 +02:00
committed by GitHub

View File

@@ -14,6 +14,7 @@ export function jumpRange(mass, fsd, fuel, ship) {
const fsdOptimalMass = fsd instanceof Module ? fsd.getOptMass() : fsd.optmass;
let jumpAddition = 0;
if (ship) {
mass += ship.reserveFuelCapacity || 0;
for (const module of ship.internal) {
if (module && module.m && module.m.grp === 'gfsb' && ship.getSlotStatus(module) == 3) {
jumpAddition += module.m.getJumpBoost();