@slot-engine/core 0.1.0 → 0.1.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.mjs CHANGED
@@ -2583,9 +2583,9 @@ var WinType = class {
2583
2583
  * Custom post-processing of wins, e.g. for handling multipliers.
2584
2584
  */
2585
2585
  postProcess(func) {
2586
- const result = func(this, this.ctx);
2587
- this.payout = result.payout;
2586
+ const result = func(this.winCombinations, this.ctx);
2588
2587
  this.winCombinations = result.winCombinations;
2588
+ this.payout = result.winCombinations.reduce((sum, w) => sum + w.payout, 0);
2589
2589
  return this;
2590
2590
  }
2591
2591
  /**