Convert defense (or magic defense) to a damage taken ratio (i.e. 0.95 means 5% mitigation).
Level stats for the level at which the computation is to be performed.
The defense (or magic defense) value.
Convert defense (or magic defense) to a damage taken ratio (i.e. 0.95 means 5% mitigation).