Functions Documentation
View Function Edit Function
Name shpGetFuelNeeded
Syntax (shpGetFuelNeeded ship item)
Argument List ship: ship whose fuel situation is being considered.
item: item to be used to refuel ship.
Returns number: returns the number of that item needed to refuel the ship.
Category ship, fuel
Description This function returns how many of the item passed to the function are needed to refuel the ship.
(setq maxNeeded (shpGetFuelNeeded gPlayerShip thisItem))

Used in working out the 'Refuel' messages when refuelling from the cargo while in flight.
Comment shpGetFuelNeeded return an exception error if the last parameter is Nil