Skip to content

Commit

Permalink
Fix NPC equip message
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramza13 committed Feb 8, 2020
1 parent 9aa7645 commit 5341545
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2153,7 +2153,9 @@ ret_val<bool> Character::can_wear( const item &it, bool with_equip_change ) cons
for( const trait_id &mut : get_mutations() ) {
const auto &branch = mut.obj();
if( branch.conflicts_with_item( it ) ) {
return ret_val<bool>::make_failure( _( "Your %s mutation prevents you from wearing your %s." ),
return ret_val<bool>::make_failure( is_player() ?
_( "Your %s mutation prevents you from wearing your %s." ), branch.name(), it.type_name() :
_( "My %s mutation prevents me from wearing this %s." ), branch.name(), it.type_name(),
branch.name(), it.type_name() );
}
}
Expand Down

0 comments on commit 5341545

Please sign in to comment.