(1) Subject to the rules of court, if a court awards costs to a plaintiff by reference to the amount recovered by the plaintiff, that amount is to be taken to be the amount recovered as qualified, or after making any deduction or reduction, in accordance with this Division.