Closed watcherPlayer closed 11 months ago
Is this related to the issue with milling (caused by charge removal)?
It's because of the charge removal. The following code in iexamine.cpp covers it:
for( item &it : items ) { if( it.has_flag( flag_SMOKABLE ) && it.get_comestible() ) { item result( it.get_comestible()->smoking_result, it.birthday(), it.charges ); recipe rec; result.inherit_flags( it, rec ); if( !result.has_flag( flag_NUTRIENT_OVERRIDE ) ) { // If the item has "cooks_like" it will be replaced by that item as a component. if( !it.get_comestible()->cooks_like.is_empty() ) { // Set charges to 1 for stacking purposes. it = item( it.get_comestible()->cooks_like, it.birthday(), 1 ); } result.components.add( it ); result.recipe_charges = it.charges; } addmsg( ( "You take down the stook as the drying process is now finished." ) ); it = result; } }
That just needs to be changed from charges to count.
edit: looks like github's code pasting is broken? Sorry about the formatting, but that's the code. iexamine.cpp 3151
Describe the bug
drying cereal stalks through a 'Stooking spot' does not work correctly, after drying all cereals have zero calories, but if you dry them through the crafting system (shift + 7) everything is fine
Attach save file
None
Steps to reproduce
Expected behavior
calories > 0
Screenshots
Versions and configuration
Additional context
No response