From a4b00a3b97aa68a0ccbaa5e755f86195c82f6f92 Mon Sep 17 00:00:00 2001 From: holychowders Date: Wed, 7 Apr 2021 17:09:51 -0700 Subject: [PATCH 1/2] Fix issue #1061 - Combat Rating is Affected by Buffs Replaced `stats` with `None` into the calculation for damage reduction --- common/src/combat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/combat.rs b/common/src/combat.rs index b04c482923..60fda60eb7 100644 --- a/common/src/combat.rs +++ b/common/src/combat.rs @@ -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 From 54d0c0f09883b191c9bf74303d675699abe185ba Mon Sep 17 00:00:00 2001 From: holychowders Date: Wed, 7 Apr 2021 17:38:09 -0700 Subject: [PATCH 2/2] Update the changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e5340d0e6..b7ca66034c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Flying agents raycast more angles to check for obstacles. - Mouse Cursor now locks to the center of the screen when menu is not open - Social window no longer moves when group is open +- Combat rating no longer takes buffs into account ## [0.9.0] - 2021-03-20