Order Config Set (price/exp/recipe)
Change price information
Open the config folder inside the ak4y-aquapark_restaurant file and start editing the order_config.lua file.
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.
Only drink recipes are in a separate table; DRINK_RECIPES (in the same file)
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;
RECIPES = {
pizza_margherita = {
type = "pizza",
name = "Margherita Pizza",
label = "Margherita Pizza",
----
----
, -- 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.
----
----
, -- 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,
}
},
}
Example of changing the requirements of the recipe;
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!
You can only put pizza ingredients on pizzas and hamburger ingredients on hamburgers!
Ingredient List
Pizza: sos - peynir - mushroom - pepper - olive - onion - salam - corn - tomato - pastirma
Burger: meat_cooked - chicken_cooked - lettuce - tomato - cheese - onion
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!
Modify the contents of the recipe book in the game
The items = {} table within RECIPE_BOOK_CONFIG is the part we need!
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!
RECIPE_BOOK_CONFIG = {
...
...
items = {
-- ๐ 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" }
}
----
----
},
},
}
Last updated
Was this helpful?