Skip to content

Commit

Permalink
Account for the rapid strike technique in DPS calc (CleverRaven#38880)
Browse files Browse the repository at this point in the history
(cherry picked from commit d0ec9ec)
  • Loading branch information
l29ah authored and tung committed Jun 23, 2020
1 parent c57b924 commit 77a657b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,10 @@ void item::basic_info( std::vector<iteminfo> &info, const iteminfo_query *parts,
iteminfo::lower_is_better, attack_time() ) );
double dps = ( dmg_bash + dmg_cut + dmg_stab ) * to_moves<int>( 1_seconds ) /
static_cast<double>( attack_time() );
static const matec_id rapid_strike( "RAPID" );
if( has_technique( rapid_strike ) ) {
dps *= 100.0 / 66;
}
info.push_back( iteminfo( "BASE", _( "Damage per second: " ), "",
iteminfo::is_decimal, dps ) );
}
Expand Down

0 comments on commit 77a657b

Please sign in to comment.