If a court of competent jurisdiction determines that a water supply has been illegally diminished in quantity or quality and that a valid water right to use that supply has been damaged as a result of the diminishment, damages awarded to the owner of the water right shall be an amount to cover the cost of making such repairs, alterations, or construction that will ensure the delivery to the surface owner of that quality and quantity of water available to the surface owner prior to the diminishment.
N.D.C.C. § 61-04-32