pixi-rainman-game-engine 0.3.14 → 0.3.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.
@@ -37,7 +37,7 @@ export declare abstract class AbstractMainContainer extends Container {
37
37
  protected bonusWinContainer: Nullable<UpdatableSpineContainer>;
38
38
  protected superBonusWinContainer: Nullable<UpdatableSpineContainer>;
39
39
  protected overlay: Nullable<Graphics>;
40
- protected readonly buttonsEventManager: ButtonsEventManager;
40
+ protected buttonsEventManager: ButtonsEventManager;
41
41
  protected logo: Nullable<Logo>;
42
42
  protected abstract background: IResizableContainer;
43
43
  protected animatedFront: Nullable<IResizableContainer>;
@@ -52,6 +52,7 @@ export declare abstract class AbstractController<T> {
52
52
  protected summaryStop: boolean;
53
53
  protected shouldDisableBetButtons: boolean;
54
54
  protected wasAutoplayEnabledBeforeFreeSpin: boolean;
55
+ protected setSlowerSpeedForFreeSpins: boolean;
55
56
  protected resolveBigWin?: () => void;
56
57
  protected resolveMysteryWin?: () => void;
57
58
  protected resolveBonusWin?: () => void;
@@ -52,6 +52,7 @@ export class AbstractController {
52
52
  summaryStop = false;
53
53
  shouldDisableBetButtons = false;
54
54
  wasAutoplayEnabledBeforeFreeSpin = false;
55
+ setSlowerSpeedForFreeSpins = false;
55
56
  resolveBigWin;
56
57
  resolveMysteryWin;
57
58
  resolveBonusWin;
@@ -1025,10 +1026,10 @@ export class AbstractController {
1025
1026
  await this.countBigWin();
1026
1027
  await this.handleLoopingWinActionQueue();
1027
1028
  if (RainMan.settingsStore.howManyFreeSpinsLeft !== 0 &&
1028
- this.invokeFreeSpinPlateAfterWin &&
1029
+ (this.invokeFreeSpinPlateAfterWin || this.setSlowerSpeedForFreeSpins) &&
1029
1030
  RainMan.settingsStore.isFreeSpinsPlayEnabled) {
1030
1031
  RainMan.componentRegistry.setSpeedLevel(SPEED_LEVELS.slow);
1031
- this.uiController.updateShownSpeedLevel(RainMan.componentRegistry.getSpeedLevel());
1032
+ this.uiController.updateShownSpeedLevel(SPEED_LEVELS.slow);
1032
1033
  this.disableSpeedButton(false);
1033
1034
  }
1034
1035
  this.clearAndDestroyActions();
@@ -1107,6 +1108,9 @@ export class AbstractController {
1107
1108
  if (this.invokeFreeSpinPlateAfterWin) {
1108
1109
  this.invokeFreeSpinPlateAfterWin = false;
1109
1110
  }
1111
+ if (this.setSlowerSpeedForFreeSpins) {
1112
+ this.setSlowerSpeedForFreeSpins = false;
1113
+ }
1110
1114
  RainMan.settingsStore.setIsPlayingAnyAction(false);
1111
1115
  this.columnsContainer.setInteractivityForSymbols(true);
1112
1116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixi-rainman-game-engine",
3
- "version": "0.3.14",
3
+ "version": "0.3.15",
4
4
  "description": "This repository contains all of the mechanics that used in rainman games.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",