46 lines
2.0 KiB
Lua
46 lines
2.0 KiB
Lua
local ____lualib = require("lualib_bundle")
|
|
local Set = ____lualib.Set
|
|
local __TS__New = ____lualib.__TS__New
|
|
local ____exports = {}
|
|
local unlockedRecipesByResult = __TS__New(Set)
|
|
function ____exports.isRecipeUnlockedForResult(self, recipeResult)
|
|
return unlockedRecipesByResult:has(recipeResult)
|
|
end
|
|
function ____exports.openRecipe(self, recipeResult)
|
|
unlockedRecipesByResult:add(recipeResult)
|
|
end
|
|
function ____exports.closeRecipe(self, recipeResult)
|
|
unlockedRecipesByResult:delete(recipeResult)
|
|
end
|
|
____exports.RECIPES = {
|
|
{
|
|
ingredients = {"item_testo", "item_testo", "item_testo", ""},
|
|
result = "item_testo_pizza",
|
|
duration = 15,
|
|
category = "ingredient",
|
|
locked = true
|
|
},
|
|
{
|
|
ingredients = {"item_egg", "item_egg", "item_milk", "item_milk"},
|
|
result = "item_mayonnaise",
|
|
duration = 25,
|
|
category = "ingredient",
|
|
locked = true
|
|
},
|
|
{
|
|
ingredients = {"item_testo_pizza", "item_grilled_meat", "item_cheese", "item_mayonnaise"},
|
|
result = "item_pizza",
|
|
duration = 20,
|
|
category = "dish",
|
|
locked = true
|
|
},
|
|
{ingredients = {"item_coffe_bean", "item_milk", "item_banana", ""}, result = "item_cocktail", duration = 45, category = "dish"},
|
|
{ingredients = {"item_coffe_bean", "item_coffe_bean", "", ""}, result = "item_coffee", duration = 45, category = "dish"},
|
|
{ingredients = {"item_testo", "", "", ""}, result = "item_bread", duration = 45, category = "ingredient"},
|
|
{ingredients = {"item_milk", "item_milk", "item_milk", ""}, result = "item_cheese", duration = 15, category = "ingredient"},
|
|
{ingredients = {"item_bread", "item_grilled_meat", "item_cheese", "item_egg"}, result = "item_sandwich", duration = 45, category = "dish"},
|
|
{ingredients = {"item_coffe_bean", "item_coffe_bean", "item_coffe_bean", "item_coffe_bean"}, result = "item_energy_drink", duration = 90, category = "dish"},
|
|
{ingredients = {"item_meat", "", "", ""}, result = "item_grilled_meat", duration = 15, category = "ingredient"}
|
|
}
|
|
return ____exports
|