From 00b151b9ffcf2b7304f4fa5600244e2190eab062 Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 5 Mar 2018 17:36:17 -0400 Subject: [PATCH] Add doForLoop to sb2 specmap --- src/serialization/sb2_specmap.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/serialization/sb2_specmap.js b/src/serialization/sb2_specmap.js index 0a5d6489..e9e8ffbf 100644 --- a/src/serialization/sb2_specmap.js +++ b/src/serialization/sb2_specmap.js @@ -768,6 +768,24 @@ const specMap = { } ] }, + 'doForLoop': { + opcode: 'control_for_each', + argMap: [ + { + type: 'field', + fieldName: 'VARIABLE' + }, + { + type: 'input', + inputOp: 'text', + inputName: 'VALUE' + }, + { + type: 'input', + inputName: 'SUBSTACK' + } + ] + }, 'stopScripts': { opcode: 'control_stop', argMap: [