Skip to content

Commit

Permalink
Change damage type string in i-menu (#75871)
Browse files Browse the repository at this point in the history
* Change damage type string

* Update src/item.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Uwuewsky and github-actions[bot] authored Sep 9, 2024
1 parent cdadd85 commit 75f6cde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5602,7 +5602,8 @@ void item::melee_combat_info( std::vector<iteminfo> &info, const iteminfo_query
damage_info_order::info_type::MELEE ) ) {
// NOTE: Using "BASE" instead of "DESCRIPTION", so numerical formatting will work
// (output.cpp:format_item_info does not interpolate <num> for DESCRIPTION info)
info.emplace_back( "BASE", string_format( "%s: ", uppercase_first_letter( dio.verb.translated() ) ),
info.emplace_back( "BASE", string_format( "%s: ",
uppercase_first_letter( dio.dmg_type->name.translated() ) ),
"<num>", iteminfo::no_newline, non_crit.type_damage( dio.dmg_type ) );
//~ Label used in the melee damage section in the item info screen (ex: " Critical bash: ")
//~ %1$s = a prepended space, %2$s = the name of the damage type (bash, cut, pierce, etc.)
Expand Down

0 comments on commit 75f6cde

Please sign in to comment.