优化了 飘字和名称修改

This commit is contained in:
2025-01-21 22:54:44 +08:00
parent 34039c3ca7
commit 2893050463
10 changed files with 3580 additions and 1160 deletions

View File

@@ -45,7 +45,7 @@ export class LuckHomeCompComp extends CCComp {
this.get_reward(1)
}
open_mb() {
if (smc.vmdata.box.num <=0) {oops.gui.toast("宝箱数量不足");return;}
if (smc.vmdata.box.num < 5) {oops.gui.toast("宝箱数量不足");return;}
smc.vmdata.box.num=smc.vmdata.box.num-5;
this.open_reward()
for (let x = 0; x < 5; x++) {
@@ -53,7 +53,7 @@ export class LuckHomeCompComp extends CCComp {
}
}
open_lb() {
if (smc.vmdata.box.num <=0) {oops.gui.toast("宝箱数量不足");return;}
if (smc.vmdata.box.num < 15) {oops.gui.toast("宝箱数量不足");return;}
smc.vmdata.box.num=smc.vmdata.box.num-15;
this.open_reward()
for (let x = 0; x < 15; x++) {