tpmkms_4wp 7.12.4-beta.3 → 7.12.4-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/common/fastfood.instance.json +176 -89
- package/common/fastfood.js +10 -5
- package/common/fastfood.test.json +3790 -0
- package/package.json +2 -2
package/common/fastfood.js
CHANGED
@@ -355,12 +355,9 @@ const template = {
|
|
355
355
|
// i need to get the one for fastfood here.
|
356
356
|
const api = args.kms.fastfood.api
|
357
357
|
const needsDrink = askAbout({ args, api })
|
358
|
-
|
359
|
-
|
360
|
-
} else {
|
361
|
-
verbatim("The drink must be specified")
|
358
|
+
for (const item of needsDrink) {
|
359
|
+
api.remove(item)
|
362
360
|
}
|
363
|
-
return false
|
364
361
|
},
|
365
362
|
matchq: (args) => askAbout(args).length > 0 && args.context.marker == 'controlEnd',
|
366
363
|
applyq: (args) => {
|
@@ -887,6 +884,14 @@ class State {
|
|
887
884
|
this.add(food)
|
888
885
|
}
|
889
886
|
},
|
887
|
+
{
|
888
|
+
where: where(),
|
889
|
+
match: ({context, isA}) => isA(context.marker, 'number') && !context.evaluate,
|
890
|
+
apply: ({context, e}) => {
|
891
|
+
food.comboNumber = { value: e(context).value }
|
892
|
+
this.add(Object.assign(food, context))
|
893
|
+
}
|
894
|
+
},
|
890
895
|
{
|
891
896
|
where: where(),
|
892
897
|
match: ({context, isA}) => isA(context.marker, food.marker),
|