金币经验掉落

This commit is contained in:
2025-08-19 22:30:59 +08:00
parent 854affeaae
commit c47ecc21e6
12 changed files with 1809 additions and 462 deletions

View File

@@ -65,8 +65,8 @@ export class HInfoComp extends Component {
smc.spendGameProperty({exp:experience,gold:gold},false)
let result=smc.levelUpHero(this.h_uuid,experience,gold)
if(!result){
smc.addGameProperty("exp",experience,false)
smc.addGameProperty("gold",gold,false)
smc.addExp(experience,false)
smc.addGold(gold,false)
oops.gui.toast("网络出错了,升级失败,请重试")
return
}