AddCookerRecipe

Description
This function adds a crockpot recipe to the game. If the result is not already a prefab, a prefab for it must be created.

Parameters

 * - A string containing the type of cooker this recipe applies to. See below for possible values.
 * - A table containing several key/value pairs detailing the recipe itself. See below for more details on the recipe table.
 * - A boolean set to true if used in a mod. If this value is set to false, or not set at all, it will likely crash the game due to an error with the game's cookbook functionality. It's notable that vanilla recipes commonly omit this value.

The cooker parameter takes the name of a cooker as a string. There are four cookers currently available in the game:
 * - Regular Crock Pot
 * - Warly's Portable Crock Pot
 * - Warly's Portable Seasoning Station
 * - The Ancient Kiln found in the Ancient Archives. Functions identically to the Crock Pot

Not to be confused with the Recipe function mentioned in API/AddRecipe. The  used as a parameter in this function is a table containing the following keys:
 * - Name of the output food item.
 * - A function that checks if the recipe is valid. Function should take cooker, names, and tags as parameters.
 * - The recipe's priority. Higher priority recipes can override overlapping lower ones.
 * - Not sure what weight does at the moment. Only defined in Butter Muffin recipe.
 * - The type of food the result will be. Relevant for Meat/Veggie mechanics.
 * - The amount of health the food item restores. See  for usable constants.
 * - The amount of hunger the food item restores. See  for usable constants.
 * - The amount of sanity the food item restores. See  for usable constants.
 * - The time it takes for the food to spoil. Measured in seconds, however typically calculated in multiples of days. There are several constants in the TUNING class that define several perish durations, from 1 day to 40 days.
 * - The amount of time it takes to finish cooking. Most likely measured in 20sec intervals. For example entering 1 would make the recipe cook for 20sec, 4 → 80 sec.
 * - Determines the height at which the output recipe is displayed in the crockpot.
 * - Food tags applied to resulting recipe. Such as "Meat" or "Veggie".

Examples
It's notable that any of the parameters can be defined within the parameters of the function call, or stored in a separate variable to be used in the parameter. In this example, the recipe will be defined in its own variable to make the code more readable.

The following is a valid way to define a recipe for Froggle Bunwich: Note that the requirements for Froggle Bunwich is one Froglegs and one vegetable. Because of this, the test function first checks if froglegs or cooked froglegs are in the names table. It then checks if veggie is in the tags table, which it is if any vegetables are present. Also note that this is identical to the recipe found in, except the name and weight keys were added here.

Once we have defined the recipe, we can use it in the AddCookerRecipe function.

To keep Ancient Kiln consistent with the Crock Pot, we may want to add the recipe to that too:

''Note: Recipe changes for vanilla food items don't necessarily need is_mod_food to be true. It is strongly suggested you set it to true anyway.''