This commit is contained in:
2024-09-25 00:04:20 +08:00
parent ecc7ba9621
commit 93b820dd36
13 changed files with 5306 additions and 1305 deletions

View File

@@ -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