From 1ac74e9b95b96d47c5aac6fc7dc5d61f34518fa1 Mon Sep 17 00:00:00 2001 From: TJH Date: Mon, 8 Jun 2026 14:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=99=91=E8=B4=AD=E4=B9=B0=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E4=BB=A5=E5=8F=8Adoublewin=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Game/Scripts/SlotBar.ts | 4 ++++ assets/Game/Scripts/SlotScene.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/Game/Scripts/SlotBar.ts b/assets/Game/Scripts/SlotBar.ts index 01eb181..3ee289c 100644 --- a/assets/Game/Scripts/SlotBar.ts +++ b/assets/Game/Scripts/SlotBar.ts @@ -256,6 +256,10 @@ export class SlotBar extends Component { this.freeSpinBetLabel.string = gold2cash(bet); } + getdisplayBet() { + return this.displayBet + } + getBet(): number { return this.curBet; } diff --git a/assets/Game/Scripts/SlotScene.ts b/assets/Game/Scripts/SlotScene.ts index 7d5be2d..d25ad46 100644 --- a/assets/Game/Scripts/SlotScene.ts +++ b/assets/Game/Scripts/SlotScene.ts @@ -220,7 +220,7 @@ export class SlotScene extends Component { this.slotBar.setWin(0); } - if (this.slotBar.getBalance() < this.slotBar.getBet() && !this.isFreeSpin && !this.spinInfo.Frb.Ongoing) { + if (this.slotBar.getBalance() < (buyType == 1 ? this.slotBar.getBet() * this.gameInfo.BuyMul : (this.isDoubleWin ? this.slotBar.getdisplayBet() : this.slotBar.getBet())) && !this.isFreeSpin && !this.spinInfo.Frb.Ongoing) { //余额不足不经过服务器,在客户端拦截 this.showErrorTip(2, ""); this.handleErrSpin();