update comments

This commit is contained in:
d98762625 2018-05-21 11:12:58 +01:00
parent 8ff6596657
commit 10556f528f
5 changed files with 11 additions and 393 deletions

View file

@ -39,9 +39,14 @@ class Jump extends Operation {
}
/**
* @param {string} input
* @param {Object[]} args
* @returns {string}
* Jump operation.
*
* @param {Object} state - The current state of the recipe.
* @param {number} state.progress - The current position in the recipe.
* @param {Dish} state.dish - The Dish being operated on.
* @param {Operation[]} state.opList - The list of operations in the recipe.
* @param {number} state.numJumps - The number of jumps taken so far.
* @returns {Object} The updated state of the recipe.
*/
run(state) {
const ings = state.opList[state.progress].ingValues;