# Order Config Set (price/exp/recipe)

{% hint style="info" %}
Each recipe in the script has a price and an exp value.\
Recipes are generated randomly, and correctly delivered orders earn the worker money and experience based on the order contents.
{% endhint %}

## Change price information

1. Open the config folder inside the ak4y-aquapark\_restaurant file and start editing the **order\_config.lua** file.
2. We will make changes to the RECIPES = {} table, which begins with the code on line 160; all recipes and contents are located within this table.

{% hint style="danger" %}
Only drink recipes are in a separate table; DRINK\_RECIPES (in the same file)
{% endhint %}

## Find the recipe you want to change in the Recipes table (e.g., pizza\_margherita)

***

### Example of changing the recipe's monetary gain and experience gain;

<pre class="language-lua"><code class="lang-lua">RECIPES = {
    pizza_margherita = {
        type = "pizza",
        name = "Margherita Pizza", 
        label = "Margherita Pizza", 
        ----
        ----
        <a data-footnote-ref href="#user-content-fn-1">price = 25</a>, -- The change you make in this section will apply if any order contains this recipe. If the order delivered to the customer is correct, the amount will be added to the preparer's earnings.
        ----
        ----
        <a data-footnote-ref href="#user-content-fn-2">exp = 15</a>, -- Any changes made in this section will apply to orders containing this recipe. If the order is correct when delivered to the customer, the preparer will receive additional experience.
        ----
        ----
        image = "./pizza.png",
        category = "pizza",
        recipe = {
            sos = 1,         
            peynir = 1,      
        }
    },
}
</code></pre>

***

### Example of changing the requirements of the recipe;

```lua
RECIPES = {
    pizza_margherita = {
        type = "pizza",
        name = "Margherita Pizza", 
        label = "Margherita Pizza", 
        price = 25,
        exp = 15,
        category = "pizza",
        ----
        ----
        recipe = {
            sos = 1, -- How many of these ingredients should be on the pizza for this recipe?       
            peynir = 1, -- How many of these ingredients should be on the pizza for this recipe? 
            -- you can add more here...
        }
        ----
        ----
    },
}
```

### Add new ingredients to the recipe;

Place the appropriate ingredient from the ingredients below into the recipe = {} table for the item you selected, and write the amount of that ingredient you want to add to the recipe next to it!

{% hint style="warning" %}
You can only put pizza ingredients on pizzas and hamburger ingredients on hamburgers!
{% endhint %}

Ingredient List

* **Pizza:** sos - peynir - mushroom - pepper - olive - onion - salam - corn - tomato - pastirma
* **Burger:** meat\_cooked - chicken\_cooked - lettuce - tomato - cheese - onion&#x20;

{% hint style="success" %}
**After making changes to your recipes, don't forget to update the recipe tablet in the game as well! Your players might see incorrect recipes!**
{% endhint %}

***

### Modify the contents of the recipe book in the game

1. #### To modify the contents of the recipe book in the game, we will make changes to the RECIPE\_BOOK\_CONFIG = {} table within the order\_config.lua file.
2. The **items = {**} table within RECIPE\_BOOK\_CONFIG is the part we need!
3. You can apply the recipe changes you've made to the Necessary Ingredients and Prep Steps shown in the table below. You can also make them visible to your players on the game tablet!

<pre class="language-lua"><code class="lang-lua">RECIPE_BOOK_CONFIG = {
    ...
    ...
<strong>    items = {
</strong>            -- 🍕 PIZZA RECIPES
            {
                uniqueId = 1,
                recipeKey = "pizza_margherita", -- Link to RECIPES
                label = "Margherita Pizza",
                difficulty = "Easy",
                cookTime = "8 Min",
                categoryId = 1, -- pizza
                img = "pizza.png",
                selected = false,
                ----
                ----
                neccesaryIngredients = {
                    "Pizza Dough",
                    "Tomato Sauce",
                    "Mozzarella Cheese"
                },
                prepSteps = {
                    { step = 1, label = "Roll out pizza dough" },
                    { step = 2, label = "Take dough to preparation counter" },
                    { step = 3, label = "Spread tomato sauce evenly" },
                    { step = 4, label = "Add mozzarella cheese" },
                    { step = 5, label = "Bake in oven for 3 minutes" },
                    { step = 6, label = "Remove from oven and serve" }
                }
                ----
                ----
            },
        },
    }
</code></pre>

[^1]: The change you make in this section will apply if any order contains this recipe. If the order delivered to the customer is correct, the amount will be added to the preparer's earnings.

[^2]: ```
    Any changes made in this section will apply to orders containing this recipe. If the order is correct when delivered to the customer, the preparer will receive additional experience.
    ```
