开始商店 脚本和ui

This commit is contained in:
panfudan
2025-08-20 17:46:06 +08:00
parent b531948d4d
commit 1896b5fab0
22 changed files with 9189 additions and 11412 deletions

View File

@@ -363,11 +363,11 @@ export class CardComp extends CCComp {
this.reset_card()
}
cost_gold_check(){
if(smc.vmdata.data.gold< this.cost_gold){
if(smc.data.gold< this.cost_gold){
oops.gui.toast("[cardcomp]:金币不足", false);
return false
}
smc.vmdata.data.gold-=this.cost_gold
smc.data.gold-=this.cost_gold
return true
}
reset() {