pixi-rainman-game-engine 0.1.48 → 0.1.49

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.
@@ -437,7 +437,7 @@ export class AbstractController {
437
437
  autoplaySpin() {
438
438
  if (!RainMan.settingsStore.howManyAutoSpinsLeft)
439
439
  return;
440
- if (!RainMan.settingsStore.infinitySpinsEnabled || RainMan.settingsStore.howManyAutoSpinsLeft > 0) {
440
+ if (!RainMan.settingsStore.infinitySpinsEnabled) {
441
441
  RainMan.settingsStore.decreaseAutoSpinsCount();
442
442
  }
443
443
  if (RainMan.settingsStore.howManyAutoSpinsLeft === 0) {
@@ -592,7 +592,7 @@ export class AbstractController {
592
592
  this.unlockLogicAfterSpinning();
593
593
  if (RainMan.settingsStore.isFreeSpinsPlayEnabled) {
594
594
  this.uiController.increaseTotalFreeSpinWinAmount(spinLogic.winTotalAmountWithoutMystery);
595
- this.uiController.limitWinAmount(spinLogic.winTotalAmount);
595
+ this.uiController.limitWinAmount(this.uiController.totalFreeSpinWinAmount);
596
596
  }
597
597
  else {
598
598
  this.uiController.limitWinAmount(spinLogic.winTotalAmount);
@@ -713,12 +713,10 @@ export class AbstractController {
713
713
  return;
714
714
  const amount = customAmount || this.uiController.recentWin;
715
715
  this.mainContainer.invokeBigWin();
716
- this.changeGamePhase(gamePhases.BIG_WIN_INVOKED);
717
716
  const animationTimeDivider = RainMan.settingsStore.currentSpeed === SPEED_LEVELS.fast ? 3 : 1;
718
717
  await RainMan.componentRegistry
719
718
  .get(COMPONENTS.bigWin)
720
719
  .update(amount, RainMan.config.durationOfActions.updatableTextCountingDuration / animationTimeDivider);
721
- this.changeGamePhase(gamePhases.STOPPING_HANDLING_ACTIONS);
722
720
  await new Promise((resolve) => {
723
721
  this.resolveBigWin = resolve;
724
722
  setTimeout(() => {
@@ -727,7 +725,6 @@ export class AbstractController {
727
725
  this.mainContainer.destroyBigWin();
728
726
  this.resolveBigWin();
729
727
  this.resolveBigWin = undefined;
730
- this.changeGamePhase(gamePhases.IDLE);
731
728
  }, RainMan.config.durationOfActions.bigWinPhaseTimeout / animationTimeDivider);
732
729
  });
733
730
  }
@@ -736,12 +733,10 @@ export class AbstractController {
736
733
  return;
737
734
  const amount = winAmount || this.uiController.recentWin;
738
735
  this.mainContainer.invokeBonusWin();
739
- this.changeGamePhase(gamePhases.BONUS_WIN_INVOKED);
740
736
  const animationTimeDivider = RainMan.settingsStore.currentSpeed === SPEED_LEVELS.fast ? 3 : 1;
741
737
  await RainMan.componentRegistry
742
738
  .get(COMPONENTS.bonusWin)
743
739
  .update(amount, RainMan.config.durationOfActions.updatableTextCountingDuration / animationTimeDivider);
744
- this.changeGamePhase(gamePhases.STOPPING_HANDLING_ACTIONS);
745
740
  await new Promise((resolve) => {
746
741
  this.resolveBonusWin = resolve;
747
742
  setTimeout(() => {
@@ -750,7 +745,6 @@ export class AbstractController {
750
745
  this.mainContainer.destroyBonusWin();
751
746
  this.resolveBonusWin();
752
747
  this.resolveBonusWin = undefined;
753
- this.changeGamePhase(gamePhases.IDLE);
754
748
  }, RainMan.config.durationOfActions.bonusWinPhaseTimeout / animationTimeDivider);
755
749
  });
756
750
  }
@@ -759,12 +753,10 @@ export class AbstractController {
759
753
  return;
760
754
  const amount = winAmount || RainMan.settingsStore.cumulativeWinAmount;
761
755
  this.mainContainer.invokeSuperBonusWin();
762
- this.changeGamePhase(gamePhases.SUPER_BONUS_WIN_INVOKED);
763
756
  const animationTimeDivider = RainMan.settingsStore.currentSpeed === SPEED_LEVELS.fast ? 3 : 1;
764
757
  await RainMan.componentRegistry
765
758
  .get(COMPONENTS.superBonusWin)
766
759
  .update(amount, RainMan.config.durationOfActions.updatableTextCountingDuration / animationTimeDivider);
767
- this.changeGamePhase(gamePhases.STOPPING_HANDLING_ACTIONS);
768
760
  await new Promise((resolve) => {
769
761
  this.resolveSuperBonusWin = resolve;
770
762
  setTimeout(() => {
@@ -773,7 +765,6 @@ export class AbstractController {
773
765
  this.mainContainer.destroySuperBonusWin();
774
766
  this.resolveSuperBonusWin();
775
767
  this.resolveSuperBonusWin = undefined;
776
- this.changeGamePhase(gamePhases.IDLE);
777
768
  }, RainMan.config.durationOfActions.superBonusWinPhaseTimeout / animationTimeDivider);
778
769
  });
779
770
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixi-rainman-game-engine",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
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",