Food (Resource)

{{#invoke:CargoQuery|main {{!}}} }}
 * q?tables = {{#vardefineecho:table|Food}}
 * q?fields = CONCAT("Food")=table,_pageName = page, imageName = filename, source, kcal, quality, ingredient1, amount1, ingredient2, amount2, ingredient3, amount3, spoilTime, implemented
 * q?where  = implemented = '1'
 * template = QueryEntry
 * intro    = {{QueryHeader|Food}}
 * outro    = {{!}}-

Food Storage
Food is only fully preserved when it's both, in a Deep Freeze, and in a Sterile Atmosphere.

Spoilage Speed
Each Food has a base decay rate. For foodstuff with a base shelf life of 4 cycles this is -25% freshness/cycle. Each modifier causes a part of this base decay rate which are then added together.

Example:
 * Unrefridgerated is x0.7, normal atmosphere is x0.3, for normal food spoilage speed of x1
 * Refridgerated is x0.2, polluted atmosphere is x1, for an faster food spoilage speed of x1.2

Temperature
Cooling Food slows down it's spoilage.

A Refrigerator cools down its contents to 2°C, but since the Game looks at the Food item and it's surrounding atmosphere, and picks whichever is the lower one to decide whether it is refrigerated, it can also simply be placed in a cool environment.


 * above 4°C: Unrefrigerated, food spoilage multiplier: x0.7 (-17.5%/cycle from a base -25%/cycle)
 * below 4°C: Refrigerated, food spoilage multiplier: x0.2 (-5%/cycle from a base -25%/cycle)
 * below -18°C: in Deep Freeze, food spoilage multiplier: x0 (only the atmosphere will contribute to spoilage)

If the Food is inside a Vacuum, their own Temperature decides whether or not they are considered refrigerated or frozen.

Atmospheres
Food spoils depending on the atmosphere it is exposed to.
 * Normal Atmospheres: food spoilage multiplier: x0.3 (-7.5%/cycle from a base -25%/cycle)
 * Polluted Atmospheres: food spoilage multiplier: x1 (-25%/cycle from a base -25%/cycle)
 * Sterile Atmospheres: food spoilage multiplier: x0 (only the atmosphere will contribute to spoilage)

Following atmospheres are considered as Sterile Atmospheres and slow down Food spoilage: Only Polluted Oxygen is considered a Polluted Atmosphere.
 * Gas Carbon Dioxide
 * Gas Chlorine
 * Gas Hydrogen
 * Vacuum

Any other Gases, Any Liquids or Solids (like on a conveyor rail inside a Tile) are normal Atmospheres