考虑购买游戏以及doublewin的情况
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m18s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m18s
This commit is contained in:
parent
2fc2633c33
commit
1ac74e9b95
@ -256,6 +256,10 @@ export class SlotBar extends Component {
|
||||
this.freeSpinBetLabel.string = gold2cash(bet);
|
||||
}
|
||||
|
||||
getdisplayBet() {
|
||||
return this.displayBet
|
||||
}
|
||||
|
||||
getBet(): number {
|
||||
return this.curBet;
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user