金币经验掉落
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -71,7 +71,6 @@ export class MissionComp extends CCComp {
|
||||
if(d_item.item_uuid==hitem.item_uuid){
|
||||
hitem.addItemCount(d_item.count)
|
||||
drop_item.splice(j,1)
|
||||
smc.addItem(d_item.item_uuid,d_item.count)
|
||||
break
|
||||
}
|
||||
}
|
||||
@@ -89,7 +88,6 @@ export class MissionComp extends CCComp {
|
||||
const node = instantiate(prefab) as unknown as Node;
|
||||
node.parent=parent
|
||||
node.getComponent(ItemComp)!.update_data(d_item.item_uuid,d_item.count)
|
||||
smc.addItem(d_item.item_uuid,d_item.count)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -107,7 +105,7 @@ export class MissionComp extends CCComp {
|
||||
oops.message.dispatchEvent(GameEvent.NewWave)
|
||||
return
|
||||
}
|
||||
smc.addGameProperty("mission",1)
|
||||
smc.addMission(1)
|
||||
oops.message.dispatchEvent(GameEvent.FightEnd,{victory:true})
|
||||
oops.gui.open(UIID.Victory,{victory:true,rewards:this.rewards})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user