Skip to content

Commit

Permalink
Update src/activity_handlers.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
RonaldCoppieters and github-actions[bot] authored Apr 20, 2024
1 parent 6a31677 commit 2d90a31
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/activity_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2565,14 +2565,14 @@ void repair_item_finish( player_activity *act, Character *you, bool no_menu )
}

title += used_tool->is_tool() && used_tool->has_flag( flag_USES_NEARBY_AMMO )
? string_format( _( "Charges: <color_light_blue>%s</color> %s (%s per use)\n" ),
ammo_remaining,
ammo_name,
used_tool->ammo_required() )
: string_format( _( "Charges: <color_light_blue>%s/%s</color> %s (%s per use)\n" ),
ammo_remaining, used_tool->ammo_capacity( current_ammo, true ),
ammo_name,
used_tool->ammo_required() );
? string_format( _( "Charges: <color_light_blue>%s</color> %s (%s per use)\n" ),
ammo_remaining,
ammo_name,
used_tool->ammo_required() )
: string_format( _( "Charges: <color_light_blue>%s/%s</color> %s (%s per use)\n" ),
ammo_remaining, used_tool->ammo_capacity( current_ammo, true ),
ammo_name,
used_tool->ammo_required() );
title += string_format( _( "Materials available: %s\n" ), string_join( material_list, ", " ) );
title += string_format( _( "Skill used: <color_light_blue>%s (%s)</color>\n" ),
actor->used_skill.obj().name(), level );
Expand Down

0 comments on commit 2d90a31

Please sign in to comment.