How Cooking works

How Cooking works

Demo 0.11.2

How it works

Cooking attempt

  1. Each attempt takes Interval and succeeds with Success chance.
  2. An attempt needs the full Item cost and Currency cost; without them Cooking stops.
  3. The ingredients are kept with Input Preservation Chance, or after a failed attempt with Input Preservation Chance on Failure; otherwise they are spent.
  4. A success pays one product: a roll from 0 to 1 picks the first Products entry, in ascending chance, whose running total of chances reaches the roll. Its quantity doubles with Output Doubling Chance. The success then pays XP.
  5. A failure pays no product and no XP.

Formulas

Base item cost
Recipe ingredients items
Base currency cost
Recipe ingredients currencies
Item cost
Quantitymax(1, trunc(Base item cost quantity × (1 + Input Cost)))
Currency cost
Quantitymax(1, trunc(Base currency cost quantity × (1 + Input Cost)))
Base products
Recipe products
Products
Quantitytrunc(max(1, (Base products quantity + Flat product quantity) × (1 + Percent product quantity)))
Base experience
Recipe base experience
Interval
floor(Recipe base interval × (1 + Interval (%)) + Interval (Flat))
Proficiency
max(0, Level + Proficiency (Flat))
Difficulty
max(Recipe difficulty + Flat difficulty, 0)
Success chance
clamp((69 + Proficiency) ÷ (69 + Difficulty), 0, 1)

Modifiers

ModifierGranted by
Output Doubling ChanceYour chance to double the output
Input Preservation ChanceYour chance to preserve the input
Flat product quantityNone in the demo
Percent product quantity
Input CostAdjustment to the input costNone in the demo
Interval (Flat)The adjustment to the base intervalGlobal flat action intervalNone in the demo
Interval (%)The adjustment to the base intervalGlobal percent action intervalNone in the demo
Proficiency (Flat)Adjustment to your proficiency
Flat difficultyNone in the demo
Input Preservation Chance on FailureYour chance to preserve the input when failing to cook
  • ValeAstrologyMajor 2+50% Input Preservation chance on failure in Cooking