If a Borg ship (PlayerRace = 6) destroys another ship, it will attempt to beam up debris of the destroyed ship.
Neutronium_gathered = Neutronium_on_ship Tritanium_gathered = Tritanium_on_ship + Hull_tritanium_cost
Duranium and Molybdenum are gathered using the same formula as Tritanium. The order is Tritanium, Duranium, Molybdenum; if the cargo room is full before all minerals are gathered, the excess is not loaded up.