reload() | Reload the recipe from the prototype. | |
Reload the recipe from the prototype. | ||
name | :: R string | Name of the recipe. [...] |
Name of the recipe. [...] | ||
localised_name | :: R LocalisedString | Localised name of the recipe. |
Localised name of the recipe. | ||
localised_description | :: R LocalisedString | |
prototype | :: R LuaRecipePrototype | The prototype for this recipe. |
The prototype for this recipe. | ||
enabled | :: RW boolean | Can the recipe be used? |
Can the recipe be used? | ||
category | :: R string | Category of the recipe. |
Category of the recipe. | ||
ingredients | :: R array[Ingredient] | The ingredients to this recipe. |
The ingredients to this recipe. | ||
products | :: R array[Product] | The results/products of this recipe. |
The results/products of this recipe. | ||
hidden | :: R boolean | Is the recipe hidden? [...] |
Is the recipe hidden? [...] | ||
hidden_from_flow_stats | :: RW boolean | Is the recipe hidden from flow statistics? |
Is the recipe hidden from flow statistics? | ||
energy | :: R double | Energy required to execute this recipe. [...] |
Energy required to execute this recipe. [...] | ||
order | :: R string | The string used to alphabetically sort these prototypes. [...] |
The string used to alphabetically sort these prototypes. [...] | ||
group | :: R LuaGroup | Group of this recipe. |
Group of this recipe. | ||
subgroup | :: R LuaGroup | Subgroup of this recipe. |
Subgroup of this recipe. | ||
force | :: R LuaForce | The force that owns this recipe. |
The force that owns this recipe. | ||
productivity_bonus new | :: RW float | The productivity bonus for this recipe. |
The productivity bonus for this recipe. | ||
valid | :: R boolean | Is this object valid? [...] |
Is this object valid? [...] | ||
object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] |
-- The ingredients of "advanced-oil-processing" would look like this:
{{type="fluid", name="crude-oil", amount=100}, {type="fluid", name="water", amount=50}}
-- The products of "advanced-oil-processing" would look like this:
{{type="fluid", name="heavy-oil", amount=25}, {type="fluid", name="light-oil", amount=45}, {type="fluid", name="petroleum-gas", amount=55}}