-
Notifications
You must be signed in to change notification settings - Fork 4.4k
corrected formic acid counts #82958
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
corrected formic acid counts #82958
Conversation
what the fuck? |
How would I know? This garbage has appeared in a fair number of PRs lately, which is why I've mostly stopped bothering to look at failures. I very much doubt formic acid is a part of the ice cream recipe, and as you can see from the changes, that's all there is to this PR. |
Sorry, i didn't mean it to you, just a general exclamation. I just thought it is related to the change (because i never saw this specific error, also it appeared in two tests) and i could not find a correlation between ice cream recipe and this recipes of formic_acid |
Cataclysm Windows build / Build (pull_request) goes completely ape shit. It seems to be failing to download a lot of stuff. The icecream recipe test generates an upper limit of 478 kcal rather than the hard coded expected value of 470. Presumably one of these:
Edit: Changing the number of charges to 20 (half of the original 40) changes the failure message to a maximum calorie count of 471 rather than 478. I think this is caused by the usage of blood as an ingredient, and the acid then inheriting calories. When divided by 40 the calories are too low to have an effect on food that are preserved using weak acids. However, my attempts to use the NUTRIENT_OVERRIDE flag don't seem to have any effect. |
…into acid_fix Catch up to the current master state.
Finally found the bugger. Booze used for production of formic acid contributed calories to the acid, and then on to the blasted ice cream from something preserved with the acid. Muriatic acid could have the same issue if chemicals, such as coffein, also can contain calories. Didn't see it used for "real" food, though (was looking for usages of mixed alcohol). As an aside, I tried to set the NUTRIENT_OVERRIDE flag on the blood based recipes, and that had neither any effect nor generated a warning that it wouldn't. This kind of recipes, where calorie dense ingredients are removed as byproducts (at a loss), are definitely ones where you might want to set an override on the recipe but not on the product (in this case it makes sense to have it on the product, though, but that's not necessarily the case in general). |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary
None
Purpose of change
Fix #82950, i.e. formic acid recipes having enormous yields.
Describe the solution
Remove the "counts" entries from the recipes so the volume of the results matches the volume of inputs for the distillation recipe, and a loss of the alcohol (through evaporation) of the easier one.
Describe alternatives you've considered
Change the unit of acid from 250 ml to 1 ml and rework everything affected. It's possible whoever created the recipes with these huge counts intended it to produce 40 ml, but that's just a guess.
Testing
Viewed both recipes in the game and verified it now states the count produced is one. Created formic acid using the distillation recipe and verified the resultant amount of acid was indeed 1.
Additional context
I looked through the affected file looking for "counts" as well as for "acid" to see if other recipes were bugged, but found none. In particular, the chem_ascetic_acid and sulphuric acid recipes with blood directly following the formic acid ones did not contain any "counts" entries.