CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.66k stars 4.18k forks source link

Sugar crafted from wood contains no calories #28414

Closed jeremyshannon closed 5 years ago

jeremyshannon commented 5 years ago

Describe the bug
There exists a recipe to extract sugar from wood pulp using acid. Since the food rework, however, it generates sugar with no calories as the wood and acid inputs don't have any.

To Reproduce
Steps to reproduce the behavior: You need cooking 7 and a copy of one of the books, Advanced Physical Chemistry will do. Then you just need a fire/hotplate and some acid and wood, and presto! Magic calorie-free sugar.

Expected behavior
Cooking 7 shouldn't let you create a perfect no-calorie sugar substitute with this one weird trick. (Dietitians hate him!) It should produce sugar of the normal calorie count.

SwagNaut commented 5 years ago

The same thing happens in #28391, only with burritos.

int-ua commented 5 years ago

28180

kevingranade commented 5 years ago

I'm pretty sure this should use NUTRIENT_OVERRIDE, we can't derive the nutrition from inputs if they're inedible.