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

Fix temperature calculations for items carried by player #46897

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

Hirmuolio
Copy link
Contributor

@Hirmuolio Hirmuolio commented Jan 20, 2021

Summary

SUMMARY: Bugfixes "Fix temperature for items carried by player"

Purpose of change

Fixes: #46880
Fixes: #34316

It turns out that temperature was completely broken for items that were carried by player. Somehow nobody noticed it other than when interacting with freezers.

Describe the solution

There was a bool in the function call. That bool was not supposed to be there.
The bool "false" was used as the insulation "0".
Insulation 0 led to infinite thermal conductivity.
So items carried by player would always get set to enviroment temperature every time they were processed.

Describe alternatives you've considered

Testing

Take item that is clearly at very different temperature from envirmoent (frozen), put it in player inventory, wait 10 minutes.
The item gets warmer but does not instantly become enviroment temperature when it gets processed.

Additional context

@BrettDong BrettDong added <Bugfix> This is a fix for a bug (or closes open issue) Items / Item Actions / Item Qualities Items and how they work and interact Mechanics: Temperature Freezing, cooling, thawing, heating, etc. mechanics [C++] Changes (can be) made in C++. Previously named `Code` labels Jan 20, 2021
@kevingranade kevingranade merged commit d1e702b into CleverRaven:master Jan 22, 2021
@Hirmuolio Hirmuolio deleted the fixtemp branch January 24, 2021 20:36
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 Mechanics: Temperature Freezing, cooling, thawing, heating, etc. mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Taking food from freezer defrosts it Frozen items thaw really really fast when taken from minifreezer
3 participants