@betorigami/games 2.5.2 → 2.6.0

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +59 -2
  2. package/dist/index.mjs +1595 -1045
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
- import { BaccaratGameInputs, BaccaratGameOutputs, BlackjackActionType, BlackjackOutcome, BlackjackState, Card, Color, Column, Dozen, Half, InsuranceOutcome, Parity, PlayResult, RouletteType, SideBetResults } from '@betorigami/game-calculations';
3
+ import { BaccaratGameInputs, BaccaratGameOutputs, BlackjackActionType, BlackjackOutcome, BlackjackState, Card, CardDto, Color, Column, Dozen, Half, InsuranceOutcome, Parity, PlayResult, RouletteType, SideBetResults } from '@betorigami/game-calculations';
4
4
  import { ContextProvider } from '@lit/context';
5
5
  import Big$1 from 'big.js';
6
6
  import { CSSResult, LitElement, PropertyValues, TemplateResult } from 'lit';
@@ -54,7 +54,8 @@ declare enum OrigamiGame {
54
54
  ADVANCED_DICE = "ADVANCED_DICE",
55
55
  ROULETTE = "ROULETTE",
56
56
  BACCARAT = "BACCARAT",
57
- BLACKJACK = "BLACKJACK"
57
+ BLACKJACK = "BLACKJACK",
58
+ BLITZ = "BLITZ"
58
59
  }
59
60
  export type SeasonTheme = "DEFAULT" | "HORRORGAMI" | "JOLLYGAMI";
60
61
  declare const SUPPORTED_EDGE_PERCENTAGES: readonly [
@@ -1121,6 +1122,16 @@ export declare const translations: {
1121
1122
  provablyFair: string;
1122
1123
  strategyTip: string;
1123
1124
  };
1125
+ blitz: {
1126
+ how1: string;
1127
+ how2: string;
1128
+ how3: string;
1129
+ how4: string;
1130
+ how5: string;
1131
+ overview: string;
1132
+ provablyFair: string;
1133
+ strategyTip: string;
1134
+ };
1124
1135
  };
1125
1136
  games: {
1126
1137
  advancedDice: {
@@ -1183,6 +1194,12 @@ export declare const translations: {
1183
1194
  buyInsurance: string;
1184
1195
  noInsurance: string;
1185
1196
  };
1197
+ blitz: {
1198
+ cardsRemaining: string;
1199
+ decreasePicks: string;
1200
+ increasePicks: string;
1201
+ uniqueCards: string;
1202
+ };
1186
1203
  dice: {
1187
1204
  rollOver: string;
1188
1205
  rollUnder: string;
@@ -7111,6 +7128,13 @@ export type MinesStartAction = {
7111
7128
  selectedTiles: number[];
7112
7129
  hasCashedOut: boolean;
7113
7130
  };
7131
+ export type BlitzStartAction = {
7132
+ pickCount: number;
7133
+ };
7134
+ export type BlitzEndAction = EndAction & {
7135
+ cards: CardDto[];
7136
+ payoutMultiplier: string;
7137
+ };
7114
7138
  export interface DiamondsStartAction {
7115
7139
  }
7116
7140
  export interface WheelStartAction {
@@ -7225,6 +7249,7 @@ export interface Action {
7225
7249
  KENO?: KenoStartAction | EndAction;
7226
7250
  LIMBO?: LimboStartAction | LimboEndAction;
7227
7251
  MINES?: MinesStartAction | EndAction;
7252
+ BLITZ?: BlitzStartAction | BlitzEndAction;
7228
7253
  DIAMONDS?: DiamondsStartAction | EndAction;
7229
7254
  WHEEL?: WheelStartAction | EndAction;
7230
7255
  PLINKO?: PlinkoStartAction | EndAction;
@@ -7991,5 +8016,37 @@ export declare class BlackjackGame extends GameComponent {
7991
8016
  private onCardFlip;
7992
8017
  render(): import("lit-html").TemplateResult<1>;
7993
8018
  }
8019
+ export declare class BlitzGame extends GameComponent {
8020
+ static styles: import("lit").CSSResult[];
8021
+ private picks;
8022
+ private isManualPlaying;
8023
+ private cardDetails;
8024
+ private revealCardIndex;
8025
+ private gameOutcome;
8026
+ private winPopupBet;
8027
+ private _blitzManualEl?;
8028
+ private _blitzAutoEl?;
8029
+ private readonly getBlitzApi;
8030
+ get isToggleDisabled(): boolean;
8031
+ get areInputsDisabled(): boolean;
8032
+ private get minPicks();
8033
+ private get maxPicks();
8034
+ constructor();
8035
+ private isSpacebarDisabled;
8036
+ private arePicksHotkeysDisabled;
8037
+ private handleSpacebar;
8038
+ private changePicks;
8039
+ private handlePicksChange;
8040
+ private get multiplier();
8041
+ private get profitOnWin();
8042
+ private get cardsRemaining();
8043
+ private get showCardsRemaining();
8044
+ private get progressDurationMs();
8045
+ blitzPlay(): Promise<void>;
8046
+ private handleBetExecution;
8047
+ private revealCards;
8048
+ protected executeAutobet(autobetSettings: AutobetSettingsWithId, currentBetAmount: string): Promise<GameBetResult>;
8049
+ render(): import("lit-html").TemplateResult<1>;
8050
+ }
7994
8051
 
7995
8052
  export {};