// method: remove the given fuel force reduction amount from the supply of the given booster – but not to go below 0 //
 public static void removeFuelForce(Booster booster, float reduction)
 {
     if (booster.leftInstance)
     {
         left.removeFuelForce(reduction);
     }
     else
     {
         right.removeFuelForce(reduction);
     }
 }
예제 #2
0
 // method: if defueling is enabled: have Booster Fuel Supply remove the given fuel force reduction amount for this booster //
 public void defuel(float reduction)
 {
     if (enabledDefueling())
     {
         BoosterFuelSupply.removeFuelForce(booster, (reduction * defuelingFactor));
     }
 }