Add a new product to results, converts if needed.
Parameters:
Add to technology as a recipe unlock.
Parameters:
-
tech_name
:
(string)
Name of the technology to add the unlock too
Returns:
Change the recipe category.
Parameters:
-
category_name
:
(string)
The new crafting category
Returns:
Convert result type to results type.
Returns:
Converts a recipe to the difficulty recipe format.
Parameters:
-
expensive_energy
:
(number)
crafting energy_required for the expensive recipe
(optional)
Returns:
Remove one ingredient completely.
Parameters:
-
normal
:
(string)
-
expensive
:
(string or boolean)
expensive recipe to remove, or if true remove normal recipe from both
Returns:
Remove the main product of the recipe.
Parameters:
-
for_normal
:
(boolean)
(default: false)
-
for_expensive
:
(boolean)
(default: false)
Remove a product from results, converts if needed.
Parameters:
Remove the recipe unlock from the technology.
Parameters:
-
tech_name
:
(string)
Name of the technology to remove the unlock from
Returns:
Replace one ingredient with another.
Parameters:
Remove a product from results, converts if needed.
Parameters:
Set the enabled status of the recipe.
Parameters:
-
enabled
:
(boolean)
Enable or disable the recipe
Returns:
Set the main product of the recipe.
Parameters:
-
main_product
:
(string or boolean)
if boolean then use normal/expensive recipes passed as main product
-
normal
:
(Product or string)
recipe
(optional)
-
expensive
:
(Product or string)
recipe
(optional)
Returns: