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
# Conflicts:
#	src/item.cpp
  • Loading branch information
l29ah authored and twadams committed Mar 29, 2020
1 parent 60ad460 commit cf37b6d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1362,6 +1362,14 @@ void item::basic_info( std::vector<iteminfo> &info, const iteminfo_query *parts,
if( parts->test( iteminfo_parts::BASE_MOVES ) ) {
info.push_back( iteminfo( "BASE", _( "Moves per attack: " ), "",
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 cf37b6d

Please sign in to comment.