public void ChangeIspAndThrustLinked(VariableISPEngine other, float level) { if (this != other && CurThrustSetting != level * 100f) { CurThrustSetting = level * 100f; } }
private void SetupVariableEngines() { allVariableEngines = new List <VariableISPEngine>(); List <Part> allParts = this.vessel.parts; foreach (Part pt in allParts) { PartModuleList pml = pt.Modules; for (int i = 0; i < pml.Count; i++) { PartModule curModule = pml.GetModule(i); VariableISPEngine candidate = curModule.GetComponent <VariableISPEngine>(); if (candidate != null && candidate != this && !allVariableEngines.Contains(candidate)) { allVariableEngines.Add(candidate); } } } }
public void ChangeIspAndThrustLinked(VariableISPEngine other, float level) { if (this != other && CurThrustSetting != level*100f) CurThrustSetting = level * 100f; }