> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markz3d.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Durability formulas

This documentation explains how durability is calculated for ingredients/foods.

***

# Ingredient/Food Durability

Each ingredient (or food item that can be cooked) has a **durability value** depending on how well it is cooked.

The <span className="text-green-300">perfect cooking point</span> is at <span className="text-green-300">73% (0.73)</span> of its cooking progress.

Durability scales as follows:

1. **From 0** → **0.73 cooking progress**
   * Durability rises from **0%** → **100%**
   * Example: <span className="text-yellow-300">halfway cooked</span> (0.365) gives \~50% durability.
2. **From 0.73 → 1.00 cooking progress**
   * Durability decreases from **100% → 0%**
   * Example: <span className="text-red-500">burned</span> (1.0) gives 0% durability.

The progressbar is completed at <span className="text-green-300">73%</span> after that it will start turning <span className="text-red-500">red</span> and so <span className="text-red-500">burning</span>

***

# Examples

**Cooking progress =** <span className="text-orange-500 font-bold">0.50</span><br />
**Durability formula:**<br /><span className="text-white/40">= (0.50 / 0.73) \* 100</span><br />
&#x20; ≈ <span className="text-orange-500 font-bold">69%</span>

<div className="flex">
  <img src="https://mintcdn.com/mxc/kwHIQSAhiVWpKX8t/images/70.webp?fit=max&auto=format&n=kwHIQSAhiVWpKX8t&q=85&s=96c5057700c612fc351f16db661d2a6e" alt="Main dashboard interface" height="100" width={100} className="rounded-lg" data-path="images/70.webp" />
</div>

**Cooking progress =** <span className="text-red-500 font-bold">0.90</span><br />
**Durability formula:**<br /><span className="text-white/40">= ((1 - 0.90) / (0.27)) \* 100</span><br /><span className="text-white/40">= (0.10 / 0.27) \* 100</span><br />
&#x20; ≈ <span className="text-red-500 font-bold">37%</span>

<div className="flex">
  <img src="https://mintcdn.com/mxc/kwHIQSAhiVWpKX8t/images/126.webp?fit=max&auto=format&n=kwHIQSAhiVWpKX8t&q=85&s=96e56e824e2b0182117ca7b9ea07c690" alt="Main dashboard interface" height="100" width={100} className="rounded-lg" data-path="images/126.webp" />
</div>

**Cooking progress =** <span className="text-green-500 font-bold">0.73</span><br />
**Durability formula:**<br /><span className="text-white/40">= (0.73 / 0.73) \* 100</span><br /><span className="text-white/40">= 1 \* 100</span><br />
&#x20; ≈ <span className="text-green-500 font-bold">100%</span>

<div className="flex">
  <img src="https://mintcdn.com/mxc/kwHIQSAhiVWpKX8t/images/100.webp?fit=max&auto=format&n=kwHIQSAhiVWpKX8t&q=85&s=a380e01767af98394eeb34110a290e59" alt="Main dashboard interface" height="100" width={100} className="rounded-lg" data-path="images/100.webp" />
</div>

***

# Hamburger Durability

A hamburger’s durability depends on **two factors**:

1. <span className="text-blue-500">How well its ingredients are cooked.</span>
2. <span className="text-orange-500">How many ingredients are used.</span>

***

### 1. <span className="text-blue-500">Ingredient Durability (80% of total)</span>

Each ingredient contributes durability based on how close it is to the **perfect cooking point** (73%).\
We take the **average durability** of all ingredients in the burger.

👉 Example:

* 4 ingredients with durabilities **60%, 80%, 90%, 70%**
* Average durability = (60 + 80 + 90 + 70) / 4 = **75%**

### 2. <span className="text-orange-500">Ingredient Count Score (20% of total)</span>

The hamburger also gets a bonus depending on how many ingredients it has.\
Max bonus at <span className="text-green-300 font-bold">8 ingredients = 100%.</span><br />
Fewer ingredients give a smaller bonus.

<div class="rounded-lg overflow-hidden">
  <table class="not-prose w-full rounded-lg text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
    <thead class="thead text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
      <tr>
        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Ingredients
        </th>

        <th scope="col" class="px-6 py-3 whitespace-nowrap">
          Score
        </th>
      </tr>
    </thead>

    <tbody>
      <tr class="body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
        <td class="px-6 py-4">8</td>
        <td class="px-6 py-4">100%</td>
      </tr>

      <tr class="body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
        <td class="px-6 py-4">6</td>
        <td class="px-6 py-4">75%</td>
      </tr>

      <tr class="body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
        <td class="px-6 py-4">4</td>
        <td class="px-6 py-4">50%</td>
      </tr>

      <tr class="body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
        <td class="px-6 py-4">2</td>
        <td class="px-6 py-4">25%</td>
      </tr>

      <tr class="body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
        <td class="px-6 py-4">0</td>
        <td class="px-6 py-4">0%</td>
      </tr>
    </tbody>
  </table>
</div>

👉 Example:

* 4 ingredients = <span className="text-orange-500 font-bold">50% score</span>

***

# Combine Them (Final Durability)

The final durability of the hamburger is calculated as:

<span className="text-green-500">Hamburger Durability</span> = (<span className="text-blue-500">
Average Ingredients Durability
</span> \* 0.8) + (
<span className="text-orange-500">Ingredient Count Score</span> \* 0.2)

## Example

**Average ingredients durability =** <span className="text-blue-500 font-bold">75% (0.75)</span><br />
**Ingredient count score =** <span className="text-orange-500 font-bold">50% (0.50)</span>

**Durability:**<br />= (<span className="text-blue-500">0.75</span>\*0.8) + (<span className="text-orange-500">0.50</span>\*0.2) \* 100 <br />= <span className="text-blue-500">0.60</span> + <span className="text-orange-500">0.10</span> \* 100<br />= <span className="text-green-500">70%</span>

***

# Examples

### 2 ingredients (cooked at 0.5, 0.6) and 6 filling ingredients

**Ingredient durabilities:**<br />
0.5 → 68%<br />
0.6 → 82%<br />
**Average =** <span className="text-blue-500 font-bold">75%</span>

**Ingredient count score:** <br /> <span className="text-white/40">(8 / 8) \* 100</span> = <span className="text-orange-500">100%</span>

**Final durability:** <br /> (<span className="text-blue-500">75</span> \* 0.8) + (<span className="text-orange-500">100</span> \* 0.2) = <span className="text-blue-500">60</span> + <span className="text-orange-500">20</span> = <span className="text-green-500">62%</span>

***

### 5 filling ingredients, no cooking ingredient

**Ingredient durabilities:**<br />
(none, so all = <span className="text-blue-500">0%</span>)<br />
**Average =** <span className="text-blue-500 font-bold">0%</span>

**Ingredient count score:** <br /> (5 / 8) \* 100 = <span className="text-orange-500 font-bold">62%</span>

**Final durability:** <br /> (<span className="text-blue-500">0</span> \* 0.8) + (<span className="text-orange-500">62</span> \* 0.2) = <span className="text-blue-500">0</span> + <span className="text-orange-500">12</span> = <span className="text-green-500">12%</span>

***

### 1 cooking ingredient burned (1.0) and 2 filling ingredients

**Ingredient durabilities:**<br />
1.0 → 0%<br />
**Average =** <span className="text-blue-500 font-bold">0%</span>

**Ingredient count score:** <br /> (3 / 8) \* 100 = <span className="text-orange-500 font-bold">37%</span>

**Final durability:** <br /> (<span className="text-blue-500">0</span> \* 0.8) + (<span className="text-orange-500">37</span> \* 0.2) = <span className="text-blue-500">0</span> + <span className="text-orange-500">7</span> = <span className="text-green-500">7%</span>
