From e1d679f7027f4cd076f4f5ac620302c47278300f Mon Sep 17 00:00:00 2001 From: Anton Simakov <67688115+GuardianDll@users.noreply.github.com> Date: Sat, 9 Nov 2024 00:10:58 +0100 Subject: [PATCH] make enchantment influence dps shown in item --- src/item.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/item.cpp b/src/item.cpp index 183bb6f880c9b..a87619a3c355d 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -2293,6 +2293,7 @@ double item::effective_dps( const Character &guy, Creature &mon ) const guy.roll_all_damage( crit, base_damage, true, *this, attack_vector_vector_null, sub_body_part_sub_limb_debug, &mon, bp ); damage_instance dealt_damage = base_damage; + dealt_damage = guy.modify_damage_dealt_with_enchantments( dealt_damage ); // TODO: Modify DPS calculation to consider weakpoints. resistances r = resistances( *static_cast( temp_mon ) ); for( damage_unit &dmg_unit : dealt_damage.damage_units ) {