@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.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 condition of conditions) {
2468
- if (!configMode.resultSets.find((r) => r.criteria === condition)) {
2467
+ for (const rs of configMode.resultSets) {
2468
+ if (!conditions.includes(rs.criteria)) {
2469
2469
  throw new Error(
2470
- `Condition "${condition}" defined in optimizer config for game mode "${k}" does not exist as criteria in any ResultSet of the same game mode.`
2470
+ `ResultSet criteria "${rs.criteria}" in game mode "${k}" does not have a corresponding optimization condition defined.`
2471
2471
  );
2472
2472
  }
2473
2473
  }