Skip to content

Commit

Permalink
Update src/weakpoint.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
osuphobia and github-actions[bot] authored Dec 27, 2024
1 parent d2a5e4d commit f8dc384
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/weakpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,7 @@ float weakpoint::hit_chance( const weakpoint_attack &attack ) const
} else {
final_coverage = coverage;
}
}
else {
} else {
// Use erfc if the wp does not benefit the attacker.
diff = attack.wp_skill - std::max( difficulty.of( attack ) + 10.0f, 10.0f );
difficulty_mult = 0.5f * erfc( diff / ( 2.0f * sqrt( 2.0f ) ) );
Expand Down

0 comments on commit f8dc384

Please sign in to comment.