@slot-engine/core 0.1.2 → 0.1.3
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.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2464,10 +2464,10 @@ var Optimizer = class {
|
|
|
2464
2464
|
const conditions = Object.keys(mode.conditions);
|
|
2465
2465
|
const scalings = Object.keys(mode.scaling);
|
|
2466
2466
|
const parameters = Object.keys(mode.parameters);
|
|
2467
|
-
for (const
|
|
2468
|
-
if (!
|
|
2467
|
+
for (const rs of configMode.resultSets) {
|
|
2468
|
+
if (!conditions.includes(rs.criteria)) {
|
|
2469
2469
|
throw new Error(
|
|
2470
|
-
`
|
|
2470
|
+
`ResultSet criteria "${rs.criteria}" in game mode "${k}" does not have a corresponding optimization condition defined.`
|
|
2471
2471
|
);
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|