Test both the success and failure paths
Figure 17. Lubricated gear replaces Brass gear. One oil has been consumed; the rest of the stack remains.
| Test | Expected result |
|---|---|
| Oil and gear are both carried | One recipe result is added; the intended ingredients are removed. |
| Only oil is carried | No result is added by the guarded script. |
| An unrelated item is selected | No accidental recipe reward. |
| The result cannot be carried or is already at its limit | Handle that condition before consumption in your recipe logic. |
| The rule is reachable from both directions | A single player attempt should run the recipe once. |
The runtime can find a rule on the source item or on the target item, with legacy combination data also supported. Keep one obvious place for the recipe rather than maintaining two competing copies.
A combination’s result action can run a script or action list. Give it the same condition checks you would put in an ordinary puzzle. The GUI is the input surface; the recipe logic decides what is allowed.
