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

Freeze burn does not cause insta-rot #36644

Merged
merged 2 commits into from Jan 5, 2020
Merged

Freeze burn does not cause insta-rot #36644

merged 2 commits into from Jan 5, 2020

Conversation

ghost
Copy link

@ghost ghost commented Jan 2, 2020

Summary

SUMMARY: Features "Changes mechanics of MUSHY flag from from causing insta-rot on next thaw to making rot progress faster"

Purpose of change

Freeze burn (nb. to which, to varying degree, most organic matter it is susceptible) is caused by ice crystals forming and damaging cellular structures and, to a lesser degree - complex molecules. Rotting on the other hand is caused by various microorganisms metabolic processes (iow. bacteria eating and leaving its waste in place of nutrients).

Now, while repeated freezing and unfreezing will (eventually) turn most anything edible into unappealing mush, it does not cause it to rot. In fact, while freeze caused damage to eg. cellular walls does make for microbes to have easier time once unfrozen, it also affects (kills) the same microorganisms that would cause the rotting in the first place (they are cells after all, with water in them), and while few might still survive they are unable to metabolize anything whilst our food is frozen.

Describe the solution

Apply rot timer multiplication (x3) for mushy foods.

Describe alternatives you've considered

Ideally this would be implemented as multiple, progressing levels of 'mushiness', accounting for freezing speed (freezing slowly causes forming ice crystals to be bigger - more damage - more mushy stacks), and specific freeze burn susceptibility factors for different products. But that would be a complete overkill, especially comparatively considering implementation of the rotting itself.

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact labels Jan 4, 2020
src/item.cpp Outdated Show resolved Hide resolved
Co-Authored-By: ZhilkinSerg <ZhilkinSerg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants