Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"RAW" flag which reduces calories of uncooked foods #35347

Merged
merged 6 commits into from
Nov 25, 2019

Conversation

Davi-DeGanne
Copy link
Contributor

Summary

SUMMARY: Balance "Raw food provides fewer calories compared to cooked"

Purpose of change

Raw food takes more energy for the human digestive system to break down, and thus means less net energy. Research on the subject is still ongoing, but a 33% increase from to cooking seems a decent guess. See discussion in #34989 for more information.

Describe the solution

Implemented as 25% decrease to food with the "RAW" flag as compared with their JSON defined calories. When the food is cooked (used in any recipe with a heat source, or smoked on a smoking rack) this penalty is removed. Otherwise, it persists through crafting.

The "RAW" flag was added to raw meat, eggs, fruits, vegetables, nuts, and seeds.

Describe alternatives you've considered

None as of yet.

Testing

I spawned various raw items and confirmed their calories were reduced, and confirmed that they properly increased to normal levels when cooked.

One useful item to test is cattail rhizomes. They keep their RAW debuff throughout the crafting process of rhizome->starch->flour, but when baked into bread, the calories are increased by 33%.

Raw food takes more energy for your digestive system to break down, and
thus means less net energy. Research on the subject is still ongoing,
but a 33% increase from to cooking seems a decent guess. This is
implemented as a 25% decrease to food with the "RAW" flag. When the food
is cooked (used in any recipe with a heat source) this penalty is
removed. Otherwise, it persists through crafting.
@Rail-Runner
Copy link
Contributor

Personally I've never heard that fruits and veggies like apples and tomatoes (that are edible and tasty raw) get more nutritious if cooked. Is it really true?

@Davi-DeGanne
Copy link
Contributor Author

Yes, well probably. There haven't been a lot of studies to confirm or deny it (primarily due to a complete lack of interest on the topic from the scientific community, and because the only way to truly measure it is by studying the energy levels of the consumer), but this article found that cooking food (in this case, meat and sweet potatoes) significantly increases the resultant energy levels of the mice that consumed it. There is also more theoretical discussion in a book called "Catching Fire: How Cooking Made Us Human" by Richard Wrangham.

The upshot is that while cooking food does not directly impact the caloric content of food, it does make those calories more bio-available, easier for our digestive system to break down. Even fiber, which we subtract from carbohydrates before calculating calories since it's indigestible by humans, has been observed to break down into digestible carbohydrates when cooked.

Whether cooking increases the energy we get from foods like apples and tomatoes can only be speculated on, since we lack data on the subject. My thinking was that despite foods being quite different in many respects, the basic caloric compounds (fats, proteins, and carbohydrates) are the same. It stands to reason that even foods we think of as acceptable to eat raw, might become even more nutritious when cooked. This argument seemed more attractive to me than the vague argument of "it's tasty raw" (which was actually my first gut reaction), especially when every food I could think of is at least as good cooked as it is raw.

@SirPendrak
Copy link
Contributor

Good, no more raw pasta eating

@LetterShapedGlyphs
Copy link
Contributor

The only part of this I have issue with is the "Fruit" category. Putting aside the botanical definition of 'fruit', most colloquially defined fruits derive almost all of their calories from sugars, which is not made easier to digest by cooking. Certainly not to the extend that you are proposing.

Honestly, even the cooking of meat was originally done for parasite/disease reasons, and while it's almost certain our stomachs have evolved to extract nutrients more efficiently from cooked meat, a large portion of the calories come from the presence of fats/lipids which similarly are not made more or less bio-available by cooking.

You're also not making a clean distinction between the bio-availability of nutrients, and caloric value. Even if a large number of food items in the game should have their Vitamin levels adjusted by cooking, I question the validity of adjusting the calorie values.

@Davi-DeGanne
Copy link
Contributor Author

Davi-DeGanne commented Nov 6, 2019

@karthas077

EDIT: My original reply was a bit ranty, my apologies, today has been hectic and I was a bit rushed. To address your reply in a more piecemeal manner:

most colloquially defined fruits

This is too vague to be useful, to make any changes, I would need an exhaustive list of the in-game fruits you're referring to.

fruits derive almost all of their calories from sugars, which is not made easier to digest by cooking

fats/lipids … are not made more or less bio-available by cooking

Says who? If you want your argument to carry weight, you should back up your claims with peer-reviewed studies or something else with equivalent weight, such as a detailed technical explanation of the biological mechanisms involved.

our stomachs have evolved to extract nutrients more efficiently from cooked meat

Perhaps, but may I remind you (or perhaps you never read the study I linked above, which you ought to if you want to have a productive discussion on this topic) that it was mice that were shown to have significantly more energy when fed a diet of cooked meat as opposed to the same amount of raw meat; I think we can agree that mice have had far less evolutionary pressure than us towards digesting cooked meat.

You're also not making a clean distinction between the bio-availability of nutrients, and caloric value.

I never said the words "nutrient" or "vitamin." I have explicitly and exclusively been talking about the observed difference in bio-available calories between cooked meat and raw meat. The effects of cooking on vitamins are far too complex and unpredictable to be addressed in this PR (or at all, probably).

@kevingranade
Copy link
Member

sugars, which is not made easier to digest by cooking

Source?

even the cooking of meat was originally done for parasite/disease reasons,

Source?

large portion of the calories come from the presence of fats/lipids which similarly are not made more or less bio-available by cooking.

Source?

In short, we have a very serious study that indicates that cooking does in fact increase extractable calories in food, so that's the status quo. In order for your assertions to be taken seriously, they need to also be appropriately sourced.

@Amoebka
Copy link
Contributor

Amoebka commented Nov 7, 2019

The quoted article only concern starch-reach foods and meat. Anyone extrapolating those results on all food in general without further research loses any ability to claim scientific accuracy anyway.

@Davi-DeGanne
Copy link
Contributor Author

Davi-DeGanne commented Nov 7, 2019

The quoted article only concern starch-reach foods and meat. Anyone extrapolating those results on all food in general without further research loses any ability to claim scientific accuracy anyway.

I'm not claiming perfect scientific accuracy. As I discussed in my reply to Rail-Runner, I made the judgement call to make it the way it is, based on conjectural extrapolation. I also had in mind slightly easier maintainability -- it's easier to enforce "add 'RAW' flag to all raw food" than a complex set of heuristic-based rules that people will inevitably disagree on.

The PR's current state is now the "status quo," and more conjectural evidence isn't enough to supplant it; I would need an objectively stronger argument, not an equivalent one, to make any changes.

@Amoebka
Copy link
Contributor

Amoebka commented Nov 7, 2019

Ok, so basically YOU don't need scientific data to make an arbitrary change based on nothing but your assumptions ("extrapolation" is not an argument), but anyone trying to argue has to provide it? Seems real fair.

@Davi-DeGanne
Copy link
Contributor Author

Davi-DeGanne commented Nov 7, 2019

Ok, so basically YOU don't need scientific data to make an arbitrary change based on nothing but your assumptions ("extrapolation" is not an argument), but anyone trying to argue has to provide it? Seems real fair.

I had to make an assumption one way or the other, because I wrote the code. I went with the option that made the most sense to me. I'm not going to go back and change it unless someone offers a more compelling argument than "it makes more sense to me the other way," or I'm told I have to make changes by one of the mergers. If that seems unfair to you, I don't know what to tell you.

@curstwist curstwist added [JSON] Changes (can be) made in JSON Items: Food / Vitamins Comestibles and drinks Game: Balance Balancing of (existing) in-game features. labels Nov 13, 2019
@LetterShapedGlyphs
Copy link
Contributor

LetterShapedGlyphs commented Nov 17, 2019

most colloquially defined fruits

This is too vague to be useful, to make any changes, I would need an exhaustive list of the in-game fruits you're referring to.

I don't know if you missed the part where I said "Putting aside the botanical definition of 'fruit'" or if you just misunderstood me, but what I was trying to specify was "Anything an average human would consider a fruit, as opposed to a tomato, which is botanically a fruit"

sugars, which is not made easier to digest by cooking

Source?

"Fructose exists naturally in many foods, such as fruits and vegetables. Small amounts of fructose can also be converted from sorbitol by aldose reductase. Sorbitol is also found in fruits and vegetables and as a sweetener in diet foods. However, the majority of dietary fructose comes from two sweeteners, sucrose and high fructose corn syrup (HFCS), which are commonly used in manufactured foods and beverages. Sucrose, commonly known as table sugar, is manufactured from sugar cane and sugar beet. As a disaccharide, sucrose releases equal amounts of glucose and fructose into the small intestine after being hydrolyzed by sucrase. "

https://ufdc.ufl.edu/UFE0041402/00001

The heating of sugars actually decreases their bioavailability.
"glucose and fructose react with amino acids when heated and thus participate in non-enzymatic Maillard browning reactions. These reactions generate components important for the taste, aroma, texture and appearance qualities of baked goods. The reactions also occur at the cost of losses of bioavailability of both reducing sugars and some amino acids."

https://www.longdom.org/open-access/sugar-loss-attributed-to-nonenzymatic-browning-corresponds-to-reduce-calories-recovered-in-lowmolecularweight-fraction-2155-9600-1000674.pdf

even the cooking of meat was originally done for parasite/disease reasons,

Source?

In retrospect I think I was actually incorrect about this one, and that trying to untangle the evolutionary pressure of fewer parasites/diseases vs easier digestion is an exercise in futility, so I'll just go ahead and accept that it's probably both.

large portion of the calories come from the presence of fats/lipids which similarly are not made more or less bio-available by cooking.

Source?

https://wa.kaiserpermanente.org/healthAndWellness/index.jhtml?item=%2Fcommon%2FhealthAndWellness%2Fconditions%2Fdiabetes%2FfoodBalancing.html

https://health.gov/dietaryguidelines/dga2005/document/html/chapter6.htm

and

https://www.sciencedirect.com/science/article/abs/pii/S0022286098009375

Given that meat doesn't have carbohydrates, even extremely lean meat is contributing way more calories from fat than it is from protein.

Most importantly, from the last one - "This variation in unsaturation grade and conformation provides evidence of the transformation of essential polyunsaturated fatty acids and subsequent decrease in the oils’ nutritional value."

Really it's starches and proteins that benefit from being cooked.

@Davi-DeGanne
Copy link
Contributor Author

Davi-DeGanne commented Nov 17, 2019

Thanks for the response, it is clearly well-researched! (Also, good job finding two relevant primary sources that I didn't catch.)

You make a lot of good points. I will remove the RAW flag from both fruits and fat shortly. It also seems evident that cooking sugars does in fact reduce available calories. However, implementing that would require additional C++ support, which I think makes more sense as a separate PR. That said, I may tackle it myself -- feel free to write an issue about it referencing this PR though, in case I don't get around to it.

I do have one criticism of your findings:

Most importantly, from the last one - "This variation in unsaturation grade and conformation provides evidence of the transformation of essential polyunsaturated fatty acids and subsequent decrease in the oils’ nutritional value."

I think you might be conflating "nutritional value" with "bioavailable calories." "Nutritional value" has a very broad meaning, and I believe the way they are using it here references the fact that in their experiment, unsaturated fats are being converted to trans fats, which are strongly correlated with higher incidence of coronary artery disease. Nowhere in the article does it state or imply that bioavailable caloric energy is being lost.

Still, as I said earlier, I will remove the RAW flag from fat shortly, as I certainly don't see any mechanism for increase of bioavailable calories either.

I'm leaving the RAW flag on meat though, because:

  • We have a primary source indicating that meat does provide more energy when cooked, and only extrapolation (however well thought-out that extrapolation may be) to the contrary.
  • The status quo of not only this PR, but also master branch, is a 33% increase in calories upon cooking meat.

Regarding this:

most colloquially defined fruits

This is too vague to be useful, to make any changes, I would need an exhaustive list of the in-game fruits you're referring to.

I don't know if you missed the part where I said "Putting aside the botanical definition of 'fruit'" or if you just misunderstood me, but what I was trying to specify was "Anything an average human would consider a fruit, as opposed to a tomato, which is botanically a fruit"

What's going on here is that "Anything an average human would consider a fruit" is too subjective a criteria to be useful. Do you consider a coconut to be colloquially a fruit? I do, but some might not. However, using the source you've provided, I have inferred a new criteria "Any food which derives the majority of it's calories from glucose, sucrose, and/or fructose."

Sugars and fats are not easier to digest after cooking, so removed RAW
flag from foods that derive most of their calories from these sources.
@anothersimulacrum
Copy link
Member

Could you document these criteria somewhere?

Also added a TODO regarding making these criteria a unit test once the
infrastructure to do so is in place.
@Davi-DeGanne
Copy link
Contributor Author

Good idea, I put it in JSON_FLAGS.md, in the entry for the RAW flag. I also added a TODO to make a unit test for the criteria once fat/protein/carbs are added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Game: Balance Balancing of (existing) in-game features. Items: Food / Vitamins Comestibles and drinks [JSON] Changes (can be) made in JSON
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants