When a gas particle changes phase into a liquid particle:
the particle loses energy
the particle gains energy
the particle has no change in energy
the change in energy depends on the type of gas