Closed Soadreqm closed 2 years ago
There are also different kinds of food that lack the proper tags. Oatmeal is one such thing, but only before cooking.
It should be easy to make a list of comestibles with no materials and no allergy tags.
As per consumption.cpp, line 697:
if( has_trait( trait_CARNIVORE ) && nutrition_for( food ) > 0 &&
food.has_any_flag( carnivore_blacklist ) && !food.has_flag( flag_CARNIVORE_OK ) ) {
return ret_val<edible_rating>::make_failure( edible_rating::inedible_mutation,
_( "Eww. Inedible plant stuff!" ) );
}
According to @Coolthulhu , because garlic cloves have a kcal of 4, this is failing nutrition_for, which should be replaced with just compute_effective_nutrients( comest ).kcal > 0, which is what nutrition_for is calling.
Describe the bug
A character with the "Carnivore" mutation can eat raw garlic cloves, while garlic bulbs are described as "inedible plantstuff".
Steps To Reproduce
Expected behavior
Garlic should be either always edible or always inedible. It hardly matters which, given how little nutritional value it has. I just thought it was odd, since both seem to be made of the same "garlic" material.
Screenshots
Versions and configuration