Skip to content

Commit

Permalink
Merge pull request CleverRaven#77127 from Kamejeir/tohit-charcreate
Browse files Browse the repository at this point in the history
making to-hit in character creation sign consistent
  • Loading branch information
Maleclypse authored Oct 19, 2024
2 parents 81ef3c8 + a37390d commit f2a0326
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/newcharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1290,10 +1290,11 @@ static std::string assemble_stat_details( avatar &u, const unsigned char sel )
case 1: {
description_str =
colorize(
string_format( _( "Melee to-hit bonus: +%.2f" ), u.get_melee_hit_base() )
+ string_format( _( "\nThrowing penalty per target's dodge: +%d" ),
u.throw_dispersion_per_dodge( false ) ),
COL_STAT_BONUS );
string_format( _( "Melee to-hit bonus: %+.2f" ), u.get_melee_hit_base() ),
u.get_melee_hit_base() >= 0 ? COL_STAT_BONUS : COL_STAT_PENALTY );
description_str += colorize(
string_format( _( "\nThrowing penalty per target's dodge: +%d" ),
u.throw_dispersion_per_dodge( false ) ), COL_STAT_PENALTY );
if( u.ranged_dex_mod() != 0 ) {
description_str += colorize( string_format( _( "\nRanged penalty: -%d" ),
std::abs( u.ranged_dex_mod() ) ), COL_STAT_PENALTY );
Expand Down

0 comments on commit f2a0326

Please sign in to comment.