dd
This commit is contained in:
@@ -55,6 +55,7 @@ export class MapMonsterComp extends CCComp {
|
||||
oops.message.on("other_add_monster", this.on_other_add_monster, this);
|
||||
oops.message.on("do_add_hero", this.on_do_add_hero, this);
|
||||
oops.message.on("normal_call", this.on_normal_call, this);
|
||||
oops.message.on("better_call", this.on_better_call, this);
|
||||
|
||||
}
|
||||
start() {
|
||||
@@ -105,6 +106,12 @@ export class MapMonsterComp extends CCComp {
|
||||
let hero:any =RandomManager.instance.getRandomByObjectList(smc.cards, 1);
|
||||
this.addHero(hero[0].uuid)
|
||||
}
|
||||
on_better_call(){
|
||||
let hero:any =RandomManager.instance.getRandomByObjectList(smc.cards, 1);
|
||||
console.log("better_call:",hero)
|
||||
this.addHero(hero[0].uuid)
|
||||
this.addHero(hero[0].uuid)
|
||||
}
|
||||
monster_refresh(){
|
||||
if (this.setp_num <= 0){
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user