Skip to content

Commit

Permalink
Update avatar_action.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
RDru committed Jun 26, 2019
1 parent 3fb8798 commit bb75d36
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 bb75d36

Please sign in to comment.