修复 同时刷新卡牌bug

This commit is contained in:
2024-08-26 13:49:56 +08:00
parent e859e14ac7
commit 7b618eb645
9 changed files with 596 additions and 1733 deletions

View File

@@ -54,12 +54,24 @@ export class CardControllerComp extends CCComp {
if (this.in_load) {
return
}
if((smc.vm_data.shuaxin.max-smc.vm_data.shuaxin.min) < 1 ){
oops.gui.toast("马上就要刷新了")
return
}
if(smc.vm_data.shuaxin.min < 0.5){
oops.gui.toast("不要刷新太快哦")
return
}
if (smc.vm_data.gold.min < smc.vm_data.cards.ref_cost) {
oops.gui.toast("金币不足")
return
}
smc.vm_data.gold.min -= smc.vm_data.cards.ref_cost;
this.load_cards()
smc.vm_data.shuaxin.min = -5
if(smc.vm_data.shuaxin.min <=0 ){
smc.vm_data.shuaxin.min = 0
}
}
load_cards() {