Cooking
Checked against the current game code on 20 November 2026. This guide describes the routes available through normal gameplay: player cooking and settlement cook orders. See Cooking Recipes for all 101 player recipes and 22 settlement-order recipes.
See also: Fire & Campfires · Nutrition & Raw Food · Food Preservation · Water & Boiling.
Player cooking: Cook / Boil
Open Cooking on the local/tile map, choose a category, and select a recipe. The game checks that you can act, have enough energy to start, stand at a fire, and have the required ingredients. It then spends ingredients and cooking time. A successful batch creates one food or drink item in inventory. It does not immediately restore hunger or thirst.
- All 101 player recipes require a fire, including salads and teas.
- This cooking path does not check for a pot or a minimum Cooking level. A pot is required for the separate Boil Water action.
- Ingredients are consumed before the success roll. Burning loses the ingredients, spends the time/energy, and costs 0.5 morale.
- The current catalog has one recipe with an optional ingredient: Berry Pancakes automatically uses 1 milk when available. There is no optional-ingredient picker in the player Cooking menu.
- Recipe water is accessed through the water-container helpers. Use the ingredient names and clean-water requirements shown in the game.
Time and energy
Player recipes currently have no explicit cookingTime field, so the base is 0.75 hours. The duration resolver adds complexity from ingredient types, quantities, and any recipe requirement fields, capped at +50%, then rounds to whole minutes. The recipe tables show the result for each actual player recipe.
The base direct energy/fatigue-meter cost is 0.25, multiplied by recipe duration / 0.75 hours and divided by the total tool-efficiency specialization multiplier. Time passing can cause additional normal survival effects. Interrupted actions or exhaustion can therefore change the overall outcome and elapsed time.
Success and cooking XP
Let s be effective Cooking skill. Success probability is:
clamp(0.65 + s / 140, 0.65, 0.98)
The endpoints are 65% and 98%. This is a probability formula: s / 140 is added to 0.65 before converting to percent.
A successful cook awards Cooking XP using XP_BASE.cooking, multiplied by a random factor from 0.8 to 1.2 and by (1 + 0.1 × optional ingredient types used). Burning does not award this success XP.
Quality and the finished meal's hunger value
Hunger restoration is variable, not a fixed amount per recipe. Two batches of the same recipe can produce different item values.The player cooking calculation uses two separate factors:
- Condition/skill factor C: clamp(0.75 + s / 200 + (condition − 0.8) × 0.35, 0.70, 1.35). This is the expression used by the current code, with the stored condition value.
- Quality roll Q: centered at 0.5 + s × 0.005, with variance from the average of three random rolls. The variance range parameter is 0.20 − s × 0.0005. A 5% lucky roll adds 0.15–0.25; a 5% unlucky roll subtracts 0.15–0.25. The result is clamped to 0.25–1.25.
The meal stores Q as its quality, rounded to two decimals. Before the raw-ingredient floor and minimum item hunger are applied:
baseHunger = recipe.outputs.food × 4 skillMultiplier = 0.8 + s × 0.004 hunger = round((baseHunger + 4 × optional ingredient types used) × C × Q × skillMultiplier × nutritionMultiplier × gourmetMultiplier) thirst = round(recipe.outputs.thirst × C × Q × skillMultiplier)
Missing output fields count as zero. Pure thirst recipes have zero calculated hunger. Food-output recipes are stored with at least 5 hunger.
The hunger floor is calculated from ingredient hunger values in FORAGED_EDIBLES, including consumed optional ingredients. Only ingredients with a positive hungerGain in that lookup contribute. Where a positive total exists, the result must be at least:
ceil(rawIngredientHunger × (1.05 + clamp(s, 0, 100) × 0.0015))
This is a 5–20% margin over the lookup's raw-food total, not a blanket promise that every ingredient in the game is included in the floor.
What the recipe tooltip means
The Hunger preview in the recipe list reproduces the game's tooltip calculation. It combines broad quality/skill assumptions with the required-ingredient floor; it does not include condition factor C, nutrition/gourmet bonuses, or optional extras. It is therefore not a guaranteed final range for every character.
For example, River Fish Chowder has base hunger 16, and its tooltip previews 15–24 hunger. A successfully cooked chowder stores its own final hunger value, which can differ because the full production formula uses additional modifiers. The listed base value, tooltip preview, and finished item's value describe three different stages.
Cooking morale and eating morale
Cooking and eating award morale separately:
- On successful player cooking, a recipe with a nonzero morale parameter awards (recipe morale + 0.5 × optional ingredient types used) × C, clamped by the player's morale limits. A zero-morale recipe skips this award.
- Eating an unspoiled inventory meal adds (stored quality − 0.5) × 4 morale. The recipe's cooking-morale parameter is not reapplied when eating.
- A meal produced at Cooking 80+ also carries the skill buff described below.
Skill bonuses and storage
| Cooking threshold | Current effect |
|---|---|
| 40+ passive | Player cooking's hunger calculation receives the nutrition bonus, normally ×1.2. |
| 60+ passive | Recipes with at most two required ingredient types receive the gourmet bonus, normally ×1.1 hunger. |
| 80+ effective Cooking at production | The item carries +2 to all skills for 6 in-game hours when consumed, plus an immediate +2 morale on consumption. |
| All skill levels | Shelf life adds floor(s × 0.5) hours to the recipe's base shelf life. |
Storage extension also applies to standard player meals; it is not restricted to the advanced data. Base shelf lives vary by recipe. See the recipe tables rather than assuming all meals keep four days or all smoked dishes keep thirty days.
Settlement cook: Order Food
Meet a settlement NPC with the cook role and choose Order Food when their routine permits interaction. This service uses 22 recipes from cookingData.js, separate from the player menu's 101 recipes. Same-named dishes can have different base values.
- Pay with trade value through the payment interface; the player does not supply the recipe's ingredient resources.
- Choose a quantity. Production is queued behind existing orders and limited by the cook's remaining daily capacity.
- Duration is recipe.cookingTime × quantity × 1.5 hours. This is not the player's recipe-complexity duration calculation.
- Service price is max(5, (baseValue or 5) × (baseValue equals 1 ? 5 : 3)) × quantity in trade value.
- Production can fail. Successful meals wait for collection through the order interface. Ordering does not grant the player Cooking XP or the immediate morale award from personally cooking.
- Orders do not offer optional extras. The creation function receives an empty optional-ingredient selection.
NPC meal values
Production uses the cook's effective production skill, based on their profile baseSkill and qualityFactor. It does not use the player's Cooking skill.
For production skill s, meal quality is 0.5 + s × 0.005. Hunger uses the advanced recipe's baseHunger, the quality factor, and 0.8 + s × 0.004, followed by the raw-ingredient floor from RAW_FOOD_SATURATION. The creation function then applies ×1.2 hunger at s ≥ 40, and ×1.1 at s ≥ 60 for recipes with at most two ingredient types, with rounding. Thirst is baseThirst × quality × skill multiplier, rounded.
The cook's production skill also controls the floor(max(0, s) × 0.5)-hour shelf-life extension and the 80+ meal buff. Final item values are stored on the actual meal.
NPC job success is resolved by the shared workshop production system, not by the player's 65–98% cooking formula. Its failure chance is clamp(0.30 + difficulty × 0.07 − productionSkill / 230, 0.03, 0.58). Current cooking jobs do not store recipeDifficulty, so this resolver uses its default difficulty of 1. The order screen's displayed probability is calculated separately from the recipe's skillRequired field and reputation; it should not be treated as an exact statement of this completion calculation.
Direct advanced cooking function
The code still exposes actCookAdvanced and its 22-recipe data. That direct function checks the player's skill, fire/pot requirements, supports selected extras, and has no burn roll. The current player Cooking menu and cooking command do not call it. Those checks and extras are not normal player-menu requirements and are not how settlement orders work.
Eating and drinking cooked items
A finished item's stored hunger/thirst values are used on consumption, capped by the player's meters. The recipe's base hunger is not used again.
- The cooked-item consumption function currently applies no eating time cost.
- Unspoiled meals award quality-based eating morale as described above.
- Spoiled items retain 30% of hunger value (rounded), 50% of thirst value, cost 2 morale, and have a 35% chance of causing stomach bug. They are not guaranteed safe simply because they were cooked.
- An item with a medicine bonus heals 5 HP per medicine point. The current Willow Bark Tea player recipe does not contain that bonus.
Resource foods use a different action, normally 6 minutes unless its safe/internal option skips time:
| Resource | Hunger per unit | Other direct restoration |
|---|---|---|
| Prepared food (food) | 18 | +1 morale, +2.5 mental health; protein +8, carbs +10, fats +6, vitamin C +4 |
| Canned food (cannedFood) | 16 | +2 thirst, +2.5 morale, +6 mental health; protein +5, carbs +12, fats +7, vitamin C +2; 8% chance of hygiene loss |
| Field rations (field_rations) | 25 | Protein +10, carbs +15, fats +8, vitamin C +4 |
These resource-food values are not the same as the variable inventory meals created by cooking.
Boiling water
Boiling is a separate action requiring tile mode, a fire, a usable pot, and unboiled water in containers. Each round converts up to 5 units in 30 in-game minutes, costs base 0.25 energy/fatigue-meter points before efficiency modifiers, and applies pot wear. Multiple rounds are used for larger requested amounts. Normal time progression and exhaustion checks still apply.
Code references
- Game runtime: COOK_RECIPES, buildCookGrid, actCook, calculateCookingQualityWithVariance, getLegacyRecipeHungerYieldPreview, createCookedFoodItem, actEatFood, actEat, actBoil, getRecipeDurationHours, applyFatigue.
- Settlement cooking: showNPCCookingInterface, enqueueNPCCookJob, resolveNPCCraftOutcome.
- NPC meal definitions and formulas (game source:
public/systems/cookingData.js): COOKING_RECIPES, RAW_FOOD_SATURATION, calculateCookingQuality, calculateFinalHunger, createCookedFood.
Interactive Field Cooking & Ration Formulation Bench
Raw game meat and foraged roots carry parasites until prepared on a fire. Select available foraged provisions to simulate meal formulation, caloric yield, and psychological morale boosts.
1. PANTRY INGREDIENTS ON HAND (TOGGLE)
Combining wild onions with meat neutralizes gamey taste and grants a sustained cold resistance buff for 3 travel turns.