If the plaintiff maintains his action, he shall be discharged and recover his costs; but if not, the defendant shall recover his costs and such damages as the jury assess; or if the defendant is defaulted or the parties consent, the court may assess the damages.
14 M.R.S. § 7355