Exemplo n.º 1
0
            public bool EngineerThrusters(ref double speed)
            {
                EngineeringModifiers mod = FindModification("EngineOptPerformance");

                if (mod != null)
                {
                    speed *= mod.Value / 100.0;
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
Exemplo n.º 2
0
            public bool EngineerMass(ref double mass)               // perform mass engineering
            {
                EngineeringModifiers mod = FindModification("Mass");

                if (mod != null)
                {
                    mass = mod.Value;
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
Exemplo n.º 3
0
            public bool EngineerFSD(ref EliteDangerousCalculations.FSDSpec spec)               // perform FSD
            {
                bool done = false;

                EngineeringModifiers mod = FindModification("FSDOptimalMass");

                if (mod != null)
                {
                    spec.OptimalMass = mod.Value;
                    done             = true;
                }

                mod = FindModification("MaxFuelPerJump");
                if (mod != null)
                {
                    spec.MaxFuelPerJump = mod.Value;
                    done = true;
                }

                return(done);
            }