Skip to content

Commit

Permalink
Merge pull request #77687 from GuardianDll/enchantment_shows_in_dps
Browse files Browse the repository at this point in the history
Make enchantment influence dps shown in item
  • Loading branch information
Maleclypse authored Nov 9, 2024
2 parents 8b33fb7 + e1d679f commit 09f30df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<monster *>( temp_mon ) );
for( damage_unit &dmg_unit : dealt_damage.damage_units ) {
Expand Down

0 comments on commit 09f30df

Please sign in to comment.