Skip to content

Commit

Permalink
Fix warning text for consuming food with parasites (CleverRaven#53912)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyBerube authored Jan 1, 2022
1 parent 1b49ee0 commit 7eac832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/consumption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,9 @@ ret_val<edible_rating> Character::will_eat( const item &food, bool interactive )

if( food.get_comestible()->parasites > 0 && !food.has_flag( flag_NO_PARASITES ) &&
!has_flag( json_flag_PARAIMMUNE ) ) {
add_consequence( _( "Eating this raw meat probably isn't very healthy." ), PARASITES );
add_consequence( string_format( _( "Consuming this %s probably isn't very healthy." ),
food.tname() ),
PARASITES );
}

const bool edible = comest->comesttype == comesttype_FOOD || food.has_flag( flag_USE_EAT_VERB );
Expand Down

0 comments on commit 7eac832

Please sign in to comment.