It is time to start adding the thermal properties to foods. And I could do with some help on how to do it.
The original plan was this:
Add “specific_heat_liquid”, “specific_heat_solid” abd “latent_heat” to all foods.
But we don’t really need unique values for all foods.
New plan:
Have a json file that defines different thermal properties for groupos of items.
Something like this:
[
{
"type": "THERMAL_PROPERTIES",
"id": "water",
"specific_heat_liquid": 4.186,
"specific_heat_solid": 2.108,
"latent_heat": 334,
},
{
"type": "THERMAL_PROPERTIES",
"id": "raw_meat",
"specific_heat_liquid": 3.5,
"specific_heat_solid": 2.2,
"latent_heat": 230,
},
{
"type": "THERMAL_PROPERTIES",
"id": "sausage",
"specific_heat_liquid": 3.1,
"specific_heat_solid": 2.3,
"latent_heat": 170,
},
{
"type": "THERMAL_PROPERTIES",
"id": "fruit",
"specific_heat_liquid": 3.8,
"specific_heat_solid": 2,
"latent_heat": 270,
}
]
(freezing temperatures could also be added here later. Most foods just freeze at 0 C even if they should freeze a bit later)
Then each raw meat item would just have “thermal group”: “meat” in them.
But I don’t know how to do this.
- How to make the game load this json?
- How to get the thermal properties based on the id?