英雄召唤基本完成 下一步 满3个英雄后 不再出现其他英雄

This commit is contained in:
2025-08-05 22:28:24 +08:00
parent 6f9529ada2
commit 97bba4edb7
8 changed files with 3112 additions and 1365 deletions

View File

@@ -70,8 +70,8 @@ export class BuffComp extends Component {
}
hp_show(){
// if(this.node.getComponent(HeroViewComp).fac == 0) return
let hp=this.HeroView.hp;
let hp_max=this.HeroView.hp_max;
let hp=this.HeroView.currentHp;
let hp_max=this.HeroView.currentHpMax;
let hp_progress= hp/hp_max;
this.hp_bar.progress = hp_progress;
if(this.HeroView.is_boss) return
@@ -91,11 +91,11 @@ export class BuffComp extends Component {
let view_atk = 0 //临时buff
let view_deatk = 0 //临时debuff
if(is_hp){
info.hp=this.HeroView.hp
info.hp_max=this.HeroView.hp_max
info.hp=this.HeroView.currentHp
info.hp_max=this.HeroView.currentHpMax
}else{
info.hp=this.HeroView.hp
info.hp_max=this.HeroView.hp_max
info.hp=this.HeroView.currentHp
info.hp_max=this.HeroView.currentHpMax
for(let i=0;i<this.HeroView.BUFF_ATKS.length;i++){
view_atk += this.HeroView.BUFF_ATKS[i].value