Skip to content

Commit

Permalink
Typos fixed (#72502)
Browse files Browse the repository at this point in the history
* typos fixed

* typo fix

* tests fix
  • Loading branch information
YuriNikolai authored Mar 26, 2024
1 parent ee69127 commit 12148b4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions data/json/items/fluff.json
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@
},
{
"id": "jigsaw_20",
"name": { "str": "Mount Fiji jigsaw puzzle" },
"description": "A jigsaw puzzle cardboard box containing 1000 cardboard pieces that when connected together properly forms the horizontal view of Mount Fiji, at the Japanese island of Honshu.",
"name": { "str": "Mount Fuji jigsaw puzzle" },
"description": "A jigsaw puzzle cardboard box containing 1000 cardboard pieces that when connected together properly forms the horizontal view of Mount Fuji, at the Japanese island of Honshu.",
"color": "blue",
"weight": 20
},
Expand Down
2 changes: 1 addition & 1 deletion data/json/monsters/mutant.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
{
"id": "mon_mutant_alpha_boss",
"type": "MONSTER",
"name": { "str": "mutant child" },
"name": { "str": "mutant child", "str_pl": "mutant children" },
"description": "A thin child with a shaved head, wearing a too-large white lab coat over a baggy orange jumpsuit. They turn their head towards you with uncanny speed, and you're taken aback by the inhuman curiosity burning in their eyes. Their angelic smile does very little to reassure you of their intentions.",
"copy-from": "mon_mutant_alpha",
"default_faction": "lab_mutant",
Expand Down
4 changes: 2 additions & 2 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5695,14 +5695,14 @@ void item::properties_info( std::vector<iteminfo> &info, const iteminfo_query *p
} );
if( any_encumb_increase ) {
info.emplace_back( "BASE",
_( "* This items pockets are <info>not rigid</info>. Its"
_( "* This item's pockets are <info>not rigid</info>. Its"
" volume and encumbrance increase with contents." ) );
not_rigid = true;
}
}
if( !not_rigid && !all_pockets_rigid() && !is_corpse() ) {
info.emplace_back( "BASE",
_( "* This items pockets are <info>not rigid</info>. Its"
_( "* This item's pockets are <info>not rigid</info>. Its"
" volume increases with contents." ) );
}
}
Expand Down
8 changes: 4 additions & 4 deletions tests/iteminfo_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,23 +431,23 @@ TEST_CASE( "item_rigidity", "[iteminfo][rigidity]" )

CHECK( item_info_str( waterskin, rigidity ) ==
"--\n"
"* This items pockets are <color_c_cyan>not rigid</color>."
"* This item's pockets are <color_c_cyan>not rigid</color>."
" Its volume and encumbrance increase with contents.\n" );

CHECK( item_info_str( backpack, rigidity ) ==
"--\n"
"* This items pockets are <color_c_cyan>not rigid</color>."
"* This item's pockets are <color_c_cyan>not rigid</color>."
" Its volume and encumbrance increase with contents.\n" );

CHECK( item_info_str( quiver, rigidity ) ==
"--\n"
"* This items pockets are <color_c_cyan>not rigid</color>."
"* This item's pockets are <color_c_cyan>not rigid</color>."
" Its volume and encumbrance increase with contents.\n" );

// Non-armor item - volume increases, but not encumbrance
CHECK( item_info_str( condom, rigidity ) ==
"--\n"
"* This items pockets are <color_c_cyan>not rigid</color>."
"* This item's pockets are <color_c_cyan>not rigid</color>."
" Its volume increases with contents.\n" );
}

Expand Down

0 comments on commit 12148b4

Please sign in to comment.