|The Hermit humbly requests that this page be rewritten or expanded.
| There are some vague or non-exact figures and information on this page. Some spading is required.
Consumables in KoL are computed thusly:
Each consumable has a minadv, and a maxadv. These two values are internal to the database. The player never sees these. Both minadv and maxadv are integers.
When a food or drink is consumed, the following happens:
- The game chooses a value between minadv and maxadv in a uniformly random fashion.
- munchies pills bonus adventures are computed and added.
- Ol' Scratch's salad fork and Frosty's frosty mug bonus adventures are computed and added.
- milk of magnesium and The Ode to Booze bonus adventures are added.
- tuxedo shirt gets added on for applicable drinks.
- Salty Mouth gets added on, for applicable drinks.
- Opossum and Blender bonus adventures are added, if applicable.
Size and Quality
Many consumables also have a Size (equal to the fullness/drunkenness of that item) and a Quality (value chosen to make adventure gains better). The S/Q paradigm denotes that a food uses Size and Quality to determine its minadv and maxadv. Most older (NS11) consumables follow S/Q. Size and Quality are very important for crafted consumables, when two craftable things are put together, the Size and Quality values of the two get added together.
For any consumables following S/Q:
For a Food, if the difference between minadv and maxadv is greater than 7, then a chop is performed from either end of the range. For a Booze, if the difference between minadv and maxadv is greater than 5, a chop is performed. This chop is equal to:
- Food: floor((maxadv-minadv-6)/2) from both sides.
- Booze: floor((maxadv-minadv-4)/2) from both sides.
Because of this, a food that has been chopped will always have its unmodified observed range be 6 or 7, due to the following:
- T = top of range, B = bottom of range, M=max, m=min.
- T = M - floor((M-m-6)/2)
- B = m + floor((M-m-6)/2)
- T - B = M - floor((M - m - 6)/2) - m - floor((M - m - 6)/2)
- = M - m - 2*floor((M - m) / 2) + 6
- Notice that if (M - m) is even, then it is exactly 6, and if (M - m) is odd, then it is exactly 7.
- = 6 + (0 or 1)
Similarly, a booze that has been chopped will always have its unmodified observed range be 4 or 5.
What to take away from this: If a food's unmodified observed range is not 6 or 7, then either it has not been chopped, or the food has been messed with in some way by the game designers. Similar logic can be applied for a booze which has a range that is not 4 or 5.
Furthermore, if a food's unmodified observed range is less than 6, and the minimum of the range is not equal to the Size, then the food is messed with. Similarly for a booze's unmodified observed range being less than 4.
There are also many consumables which do not follow the S/Q pattern. Supernova Champagne is an example. Its range is hardcoded 7-11. While that would fit with S=3, Q=5, it does not fit, due to how Blender used to work (unverifiable in-game now). These types of consumables are assumed to have their minadv and maxadv hardcoded. Every consumable added to the game since NS13 is believed to be hardcoded.
Examples of Size and Quality
A Booze example
Size and Quality values are added together for craftable things. Basic booze has S=3 and Q=1, basic fruits have S=1 and Q=1, and cocktail garnishes have Q=3. Therefore, Advanced Cocktails are S=4 and Q=5. Their minadv is 4, and their maxadv is 20. They get chopped by floor(20-4-4)/2 = 6 from both sides, producing the range 10-14. So the minimum observable value without modifiers is 10, and the maximum is 14.
A Food example
Hi meins are S=5 and Q=8.9. Their minadv is 5, and their maxadv is 44, they get chopped by floor(44-5-6)/2 = 16 from both sides, producing the range 21-28. So the minimum is 21, and the maximum is 28.
Stated Consumable Quality
Consumables give a rough indication of how good they are in their item description. The stated quality is based solely on average adventures per size. This table shows the breakpoints.
Munchies pills add adventures to Food in a tiered fashion. If the actual amount of adventures that the consumable would give you is in the following ranges, then Munchies pills will add a specific amount.
| Raw Food
| Bonus Munchies|
As an example: A boring spaghetti giving you 4 adventures would gain +2 adventures from a munchies pill, and a boring spaghetti giving you 10 adventures would give you +1 from a munchies pill. Alternatively, if you got 9 adventures from a boring spaghetti eaten with only a munchies pill, you would know that the base roll must have been 8 adventures.
Then Milk of magnesium and Ode to Booze are added on. These will add as many adventures as the size of the consumable. For example, a boring spaghetti will get +3 adventures from Milk, and a corpsedriver will get +6 adventures from Ode.
Frosty's frosty mug increases adventures gained from booze by 30%, rounded down. If the booze is a beer, however, adventures are increased by 50%, also rounded down.
Ol' Scratch's salad fork increases adventures gained from food by 30%, rounded up. If the food is a salad, however, adventures are increased by 50%, also rounded up.
After that, for applicable beers, Salty Mouth gives a 4-6 adventure boost uniform-randomly.
Finally, for applicable boozes, the Tuxedo shirt gives a 1-3 adventure boost uniform-randomly.
Example with Modifiers
This example will show how Superhuman Cocktails behave when modified by Ode and Frosty's Mug.
It may be easier to follow along with this example by looking at the table below, since sometimes it is not readily clear why the math works out the way it does.
Superhuman Cocktails are minadv 4, with maxadv 28. This means the chop is floor(28-4-4)/2 = 10. This means that the base range is 14-18. The average of this range is 16.0.
Applying Ode to this increases all values of this chopped range by 4, which makes the range 18-22. The average of this range is 20.0.
Finally, drinking with Frosty's Mug increases all values of the range by 30%, but they are floored. This can be seen in the table below. Frosty's Mug acts after everything else, so 18-22 are chosen to be modified.
The average must be calculated by finding the weighted average of each possible value that's produced from the range.
- floor(18 * 1.3) = 23, occurs with a 20% chance
- floor(19 * 1.3) = 24, occurs with a 20% chance
- floor(20 * 1.3) = 26, occurs with a 20% chance
- floor(21 * 1.3) = 27, occurs with a 20% chance
- floor(22 * 1.3) = 28, occurs with a 20% chance
The weighted average is the sum of each possible value multiplied by its probability of occurring. In this case, the range is 23-38, and the average is 25.6. Frosty's mug affects the drink's observable values in a predictable way, and that's why there are jumps in the observable values between 24 and 26.
|+Ode and Frosty||23||24||26||27||28||25.60|
A Food Example
The math is the same idea for Food and Booze alike, here is an example of hi meins. Notice that, like with the Booze example above, there are jumps in the amount of adventures that are observable. So with a Fork, a player will never see an adventure gain of 31 or 35 for a hi mein.
|+Munchies and Milk||27||28||29||30||31||32||33||34||30.50|
|+Milk and Fork||34||36||37||38||39||41||42||43||38.75|
|+Munchies, Milk, Fork||36||37||38||39||41||42||43||45||40.12|