Skip to content

Commit

Permalink
fix: missing spaces (CleverRaven#66797)
Browse files Browse the repository at this point in the history
* fix: missing spaces

* Update src/item_pocket.cpp

Co-authored-by: Jianxiang Wang (王健翔) <[email protected]>

* Update src/item_pocket.cpp

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

---------

Co-authored-by: casswedson <[email protected]>
Co-authored-by: Jianxiang Wang (王健翔) <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Jul 11, 2023
1 parent a097f96 commit 7f44c58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/item_pocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,8 @@ void item_pocket::contents_info( std::vector<iteminfo> &info, int pocket_number,
const std::vector<damage_info_order> &all_ablate = damage_info_order::get_all(
damage_info_order::info_type::ABLATE );
for( const damage_info_order &dio : all_ablate ) {
std::string label = string_format( idx == 0 ? _( "<bold>Protection</bold>: %s: " ) : "%s: ",
std::string label = string_format( idx == 0 ? _( "<bold>Protection</bold>: %s: " ) :
pgettext( "protection info", " %s: " ),
uppercase_first_letter( dio.dmg_type->name.translated() ) );
iteminfo::flags flgs = idx == all_ablate.size() - 1 ?
iteminfo::is_decimal : iteminfo::no_newline | iteminfo::is_decimal;
Expand Down
2 changes: 1 addition & 1 deletion src/melee.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2641,7 +2641,7 @@ void player_hit_message( Character *attacker, const std::string &message,
//Player won't see exact numbers of damage dealt by NPC unless player has DEBUG_NIGHTVISION trait
if( attacker->is_npc() && !player_character.has_trait( trait_DEBUG_NIGHTVISION ) ) {
//~ NPC hits something (critical)
msg = string_format( _( "%s. Critical!" ), message );
msg = string_format( _( "%s. Critical!" ), message );
} else if( technique && !wp_hit.empty() ) {
//~ %1$s: "someone hits something", %2$d: damage dealt, %3$s: the weakpoint hit
msg = string_format( _( "%1$s for %2$d damage, and hit it in %3$s. Critical!" ), message, dam,
Expand Down

0 comments on commit 7f44c58

Please sign in to comment.