public bool PurchasePropellent(float propellent_mass, Market market) { return(market.Purchase(Craft.GetOwner(), Craft.Cargo, Propellent, PropellentMassToUnits(propellent_mass))); }
public bool SellPropellent(float propellent_mass, Market market) { if (PropellentMass < propellent_mass) { propellent_mass = PropellentMass; } return(market.Sell(Craft.GetOwner(), Craft.Cargo, Propellent, PropellentMassToUnits(propellent_mass))); }