In a case of secondary assumption of the risk, the fault of the plaintiff is compared to that of the defendant and the damages are allocated according to the comparison of fault.
The reason that primary assumption of the risk is a complete defense (and not a basis for comparative fault) is that the plaintiff knowingly and voluntarily accepted a particular risk that the defendant did not have a duty to protect the plaintiff against.