pixi-rainman-game-engine 0.1.14 → 0.1.15
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.
|
@@ -250,8 +250,15 @@ export class AbstractController {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
if (this.mysteryFxSymbolMustFormWinningLine)
|
|
254
|
-
|
|
253
|
+
if (this.mysteryFxSymbolMustFormWinningLine) {
|
|
254
|
+
if (this.config.streakMap.has(streak.join("")))
|
|
255
|
+
return reelsIndexesWithScatter;
|
|
256
|
+
const couldFormWinningLine = Array.from({ length: RainMan.config.numberOfRows }, (_, row) => [
|
|
257
|
+
...streak,
|
|
258
|
+
row,
|
|
259
|
+
]).some((streak) => this.config.streakMap.has(streak.join("")));
|
|
260
|
+
return couldFormWinningLine ? reelsIndexesWithScatter : [];
|
|
261
|
+
}
|
|
255
262
|
return reelsIndexesWithScatter;
|
|
256
263
|
}
|
|
257
264
|
handleSpinLogic() {
|
package/package.json
CHANGED