If the defendant is held liable or found guilty in any prosecution, civil or criminal, of the taking of shellfish in violation of subdivisions 1 or 2 of section 13-0309 or if the defendant shall effect a civil compromise of any action or cause of action in favor of the state arising out of such violation, the defendant's interest in any and all rakes, tongs, dredges or devices other than a boat or