Skip to content

Commit

Permalink
Merge pull request #31893 from RDru/bow-stamina-fix
Browse files Browse the repository at this point in the history
Fix for firing a bow (minor)
  • Loading branch information
ZhilkinSerg authored Jun 27, 2019
2 parents 91022b0 + bb75d36 commit d9b7a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/avatar_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ bool avatar_action::fire( avatar &you, map &m )

// Burn 0.2% max base stamina x the strength required to fire.
you.mod_stat( "stamina", gun->get_min_str() * static_cast<int>( 0.002f *
get_option<float>( "PLAYER_MAX_STAMINA" ) ) );
get_option<int>( "PLAYER_MAX_STAMINA" ) ) );
// At low stamina levels, firing starts getting slow.
int sta_percent = ( 100 * you.stamina ) / you.get_stamina_max();
reload_time += ( sta_percent < 25 ) ? ( ( 25 - sta_percent ) * 2 ) : 0;
Expand Down

0 comments on commit d9b7a9f

Please sign in to comment.