奖励到账
This commit is contained in:
@@ -60,7 +60,7 @@ export class MissionComp extends CCComp {
|
||||
}
|
||||
|
||||
protected update(dt: number): void {
|
||||
if(!smc.vmdata.mission.play||smc.vmdata.pause){
|
||||
if(!smc.vmdata.mission.play||smc.vmdata.mission.pause){
|
||||
return
|
||||
}
|
||||
if(this.fight_start){
|
||||
@@ -99,9 +99,13 @@ export class MissionComp extends CCComp {
|
||||
this.node.getChildByName("mexp").getChildByName("hp").active = true
|
||||
this.mon_refresh()
|
||||
this.heros_call()
|
||||
}
|
||||
do_x10(){
|
||||
|
||||
}
|
||||
mission_end(){
|
||||
smc.vmdata.mission.play=false
|
||||
smc.vmdata.mission.pause=false
|
||||
let heros:any= this.get_heros();;
|
||||
let monsters:any= this.get_mons();
|
||||
let hcards:any= ecs.query(ecs.allOf(HCardComp));
|
||||
@@ -169,10 +173,6 @@ export class MissionComp extends CCComp {
|
||||
}
|
||||
}
|
||||
|
||||
do_reward(){
|
||||
console.log("do_reward")
|
||||
|
||||
}
|
||||
check_mon_num(){
|
||||
let mons:any = this.get_mons()
|
||||
let heros:any= this.get_heros()
|
||||
@@ -194,10 +194,12 @@ export class MissionComp extends CCComp {
|
||||
}
|
||||
to_end_mission(){
|
||||
if (smc.vmdata.mission.is_victory){
|
||||
this.VictoryComp.do_victiry()
|
||||
this.VictoryComp.do_victiry(true)
|
||||
smc.vmdata.mission.pause=true
|
||||
}
|
||||
if (smc.vmdata.mission.is_defeat){
|
||||
this.VictoryComp.do_defeat()
|
||||
this.VictoryComp.do_victiry(false)
|
||||
smc.vmdata.mission.pause=true
|
||||
}
|
||||
}
|
||||
get_mons(){
|
||||
|
||||
Reference in New Issue
Block a user