@betorigami/games 3.4.2 → 3.4.4
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GameComponent, AutobetSettingsWithId, GameBetResult } from '@betorigami/game-ui-shared';
|
|
2
2
|
export declare class BlitzGame extends GameComponent {
|
|
3
3
|
static styles: import('lit').CSSResult[];
|
|
4
|
-
private
|
|
4
|
+
private selectedPicks;
|
|
5
5
|
private isManualPlaying;
|
|
6
6
|
private cardDetails;
|
|
7
7
|
private revealCardIndex;
|
|
@@ -16,6 +16,7 @@ export declare class BlitzGame extends GameComponent {
|
|
|
16
16
|
get areInputsDisabled(): boolean;
|
|
17
17
|
private get minPicks();
|
|
18
18
|
private get maxPicks();
|
|
19
|
+
private get picks();
|
|
19
20
|
constructor();
|
|
20
21
|
private isSpacebarDisabled;
|
|
21
22
|
private arePicksHotkeysDisabled;
|
package/dist/index.mjs
CHANGED
|
@@ -22893,10 +22893,10 @@ var __defProp$C = Object.defineProperty, __getOwnPropDesc$C = Object.getOwnPrope
|
|
|
22893
22893
|
};
|
|
22894
22894
|
let BlitzGame = class extends Tt {
|
|
22895
22895
|
constructor() {
|
|
22896
|
-
super(), this.
|
|
22896
|
+
super(), this.selectedPicks = BLITZ_DEFAULT_PICKS, this.isManualPlaying = !1, this.cardDetails = [], this.revealCardIndex = -1, this.progressActive = !1, this.gameOutcome = null, this.winPopupBet = null, this.getBlitzApi = Yh(() => this.gameData, () => this.isDemoMode, { createReal: (te, ae) => new BlitzApi(te, ae), createMock: () => new MockBlitzApi(() => this.gameData.edge, () => this.gameData.balance) }), this.isSpacebarDisabled = () => !this.gameData.hotkeysOpenEnabled || (this.manualOrAuto === "Manual" ? this._blitzManualEl?.isPrimaryActionDisabled() ?? !0 : this._blitzAutoEl?.isPrimaryActionDisabled() ?? !0), this.arePicksHotkeysDisabled = () => this.areInputsDisabled || !this.gameData.hotkeysOpenEnabled, this.handleSpacebar = () => {
|
|
22897
22897
|
this.isSpacebarDisabled() || (this.manualOrAuto !== "Manual" ? this._blitzAutoEl?.triggerPrimaryAction() : this._blitzManualEl?.triggerPrimaryAction());
|
|
22898
22898
|
}, this.handlePicksChange = (te) => {
|
|
22899
|
-
this.areInputsDisabled || (this.
|
|
22899
|
+
this.areInputsDisabled || (this.selectedPicks = BlitzUtils.clampPickCount(te.detail.picks, this.minPicks, this.maxPicks));
|
|
22900
22900
|
}, new cd(this, [{ key: " ", callback: this.handleSpacebar, options: { repeat: !0, repeatInterval: 200, disabled: this.isSpacebarDisabled } }, { key: "w", callback: He$1(() => this.gameData, () => this.changePicks(-1)), options: { repeat: !0, repeatInterval: 200, disabled: () => this.arePicksHotkeysDisabled() || this.picks <= this.minPicks } }, { key: "e", callback: He$1(() => this.gameData, () => this.changePicks(1)), options: { repeat: !0, repeatInterval: 200, disabled: () => this.arePicksHotkeysDisabled() || this.picks >= this.maxPicks } }]);
|
|
22901
22901
|
}
|
|
22902
22902
|
get isToggleDisabled() {
|
|
@@ -22912,8 +22912,11 @@ let BlitzGame = class extends Tt {
|
|
|
22912
22912
|
const te = Math.max(this.gameData.blitzMaxPickCount ?? BLITZ_DEFAULT_MAX_PICKS, this.minPicks);
|
|
22913
22913
|
return BlitzUtils.getMaxPicksForPayout({ minPicks: this.minPicks, maxPicks: te, edge: this.gameData.edge, minBet: this.gameData.minBet, maxPayout: this.gameData.maxPayout });
|
|
22914
22914
|
}
|
|
22915
|
+
get picks() {
|
|
22916
|
+
return BlitzUtils.clampPickCount(this.selectedPicks, this.minPicks, this.maxPicks);
|
|
22917
|
+
}
|
|
22915
22918
|
changePicks(te) {
|
|
22916
|
-
this.areInputsDisabled || (this.
|
|
22919
|
+
this.areInputsDisabled || (this.selectedPicks = BlitzUtils.clampPickCount(this.picks + te, this.minPicks, this.maxPicks));
|
|
22917
22920
|
}
|
|
22918
22921
|
get multiplier() {
|
|
22919
22922
|
return BlitzUtils.calculateMultiplier(this.picks, this.gameData.edge);
|
|
@@ -23082,7 +23085,7 @@ let BlitzGame = class extends Tt {
|
|
|
23082
23085
|
`;
|
|
23083
23086
|
}
|
|
23084
23087
|
};
|
|
23085
|
-
BlitzGame.styles = [...Tt.styles, blitzGameStyles], __decorateClass$C([r$4()], BlitzGame.prototype, "
|
|
23088
|
+
BlitzGame.styles = [...Tt.styles, blitzGameStyles], __decorateClass$C([r$4()], BlitzGame.prototype, "selectedPicks", 2), __decorateClass$C([r$4()], BlitzGame.prototype, "isManualPlaying", 2), __decorateClass$C([r$4()], BlitzGame.prototype, "cardDetails", 2), __decorateClass$C([r$4()], BlitzGame.prototype, "revealCardIndex", 2), __decorateClass$C([r$4()], BlitzGame.prototype, "progressActive", 2), __decorateClass$C([r$4()], BlitzGame.prototype, "gameOutcome", 2), __decorateClass$C([r$4()], BlitzGame.prototype, "winPopupBet", 2), __decorateClass$C([e$4("origami-blitz-manual")], BlitzGame.prototype, "_blitzManualEl", 2), __decorateClass$C([e$4("origami-blitz-auto")], BlitzGame.prototype, "_blitzAutoEl", 2), __decorateClass$C([e$4("origami-blitz-content")], BlitzGame.prototype, "_blitzContentEl", 2), BlitzGame = __decorateClass$C([t$2("origami-blitz-game")], BlitzGame);
|
|
23086
23089
|
const blitzUiModule = legacyUiModule({ id: I.BLITZ, renderGame: () => b$4`<origami-blitz-game></origami-blitz-game>`, gameInfo: blitzGameInfo, maxMultiplier: (te, ae) => BlitzUtils.calculateMultiplier(ae?.blitzMaxPickCount ?? BLITZ_DEFAULT_MAX_PICKS, te).toNumber(), verifierInputs: (te) => {
|
|
23087
23090
|
const ae = te.BLITZ;
|
|
23088
23091
|
return ae !== void 0 && "pickCount" in ae ? { pickCount: ae.pickCount } : {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@betorigami/games",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@betorigami/game-calculations": "10.1.0",
|
|
26
26
|
"@betorigami/game-ui-shared": "1.3.1",
|
|
27
|
-
"@betorigami/game-ui-wheel": "1.1.
|
|
27
|
+
"@betorigami/game-ui-wheel": "1.1.2",
|
|
28
28
|
"@lit/context": "^1.1.5",
|
|
29
29
|
"big.js": "^7.0.1",
|
|
30
30
|
"lit": "^3.3.0",
|