Fix issue #1061 - Combat Rating is Affected by Buffs

Replaced `stats` with `None` into the calculation for damage reduction
This commit is contained in:
holychowders 2021-04-07 17:09:51 -07:00
parent fd77966293
commit a4b00a3b97

View File

@ -789,7 +789,7 @@ pub fn combat_rating(
// Assumes a "standard" max health of 100
let health_rating = health.base_max() as f32
/ 100.0
/ (1.0 - Damage::compute_damage_reduction(Some(inventory), Some(stats))).max(0.00001);
/ (1.0 - Damage::compute_damage_reduction(Some(inventory), None)).max(0.00001);
// Assumes a standard person has earned 20 skill points in the general skill
// tree and 10 skill points for the weapon skill tree