云环境和本地调试 添加
This commit is contained in:
@@ -364,11 +364,11 @@ export class CardComp extends CCComp {
|
||||
this.reset_card()
|
||||
}
|
||||
cost_gold_check(){
|
||||
if(smc.vmdata.mission_data.gold< this.cost_gold){
|
||||
if(smc.vmdata.data.gold< this.cost_gold){
|
||||
oops.gui.toast("[cardcomp]:金币不足", false);
|
||||
return false
|
||||
}
|
||||
smc.vmdata.mission_data.gold-=this.cost_gold
|
||||
smc.vmdata.data.gold-=this.cost_gold
|
||||
return true
|
||||
}
|
||||
reset() {
|
||||
|
||||
Reference in New Issue
Block a user