Ask for confirmation on eating raw meat #39907
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: Interface "Ask for confirmation on eating raw meat"
Purpose of change
Asks for confirmation before eating raw meat.
Before you could accidentally eat raw meat too easily and get parasites.
Describe the solution
We now check if the food has any parasite(which from my quick grep seems to be only raw meat) and asks the user to confirm if he really wants to eat it.
Describe alternatives you've considered
Considered adding a generic flag ASK_EAT but I think checking for parasites is better as it let us have a specific flavor message.
Testing
It now asks if you want to eat a piece of raw meat.
I also altered the test for cannibal eating human flesh to testing with human_cooked as even if you're a cannibal it will warn you about eating raw human flesh(just for health reason instead of moral ones).
Additional context