Notwithstanding the provisions of these statutes, no person can recover a greater amount in damages for the breach of an obligation than he could have gained by the full performance thereof on both sides, except in the cases specified in statutes providing exemplary damages or penal damages, and in statutes relating to damages for breach of promise to marry, for seduction, or wrongful injuries to animals.
SDCL 21-1-5