@novely/core 0.46.0-next.0 → 0.46.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.global.js +9 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -1427,7 +1427,8 @@ var Novely = (() => {
|
|
|
1427
1427
|
throw new Error(`Attempt to call Say action with unknown character "${character}"`);
|
|
1428
1428
|
}
|
|
1429
1429
|
} else if (action2 === "choice") {
|
|
1430
|
-
|
|
1430
|
+
const actions = props.slice(1);
|
|
1431
|
+
if (actions.every((choice) => !Array.isArray(choice))) {
|
|
1431
1432
|
for (let i = 1; i < props.length; i++) {
|
|
1432
1433
|
const choice = props[i];
|
|
1433
1434
|
props[i] = [
|
|
@@ -1439,6 +1440,13 @@ var Novely = (() => {
|
|
|
1439
1440
|
choice.image
|
|
1440
1441
|
];
|
|
1441
1442
|
}
|
|
1443
|
+
} else {
|
|
1444
|
+
for (let i = 1; i < props.length; i++) {
|
|
1445
|
+
const choice = props[i];
|
|
1446
|
+
if (Array.isArray(choice) && choice.length === 2) {
|
|
1447
|
+
choice[1] = flatActions(choice[1]);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1442
1450
|
}
|
|
1443
1451
|
}
|
|
1444
1452
|
if (preloadAssets === "blocking") {
|