This commit is contained in:
2025-06-24 00:13:13 +08:00
parent edba01722c
commit b69222d24f
12 changed files with 7460 additions and 7063 deletions

View File

@@ -138,11 +138,9 @@ export class HeroViewComp extends CCComp {
};
if(this.DEBUFF_FROST > 0){
this.DEBUFF_FROST -=dt;
return
}
if(this.DEBUFF_STUN > 0){
this.DEBUFF_STUN -=dt;
return
}
this.in_stop(dt);
// 处理伤害队列
@@ -326,35 +324,35 @@ export class HeroViewComp extends CCComp {
}
}
add_debuff(type:number,debuff:number,count:number,){
add_debuff(type:number,deV:number,deC:number,){
switch(type){
case DebuffAttr.BURN:
this.DEBUFF_BURN.push({burn:debuff,count:count})
this.DEBUFF_BURN.push({burn:deV,count:deC})
break
case DebuffAttr.SLOW:
this.DEBUFF_SLOW+=debuff
this.DEBUFF_SLOW+=deV
break
case DebuffAttr.FROST:
this.BUFFCOMP.in_iced(debuff)
this.DEBUFF_FROST+=debuff
this.BUFFCOMP.in_iced(deV)
this.DEBUFF_FROST+=deV
break
case DebuffAttr.STUN:
this.BUFFCOMP.in_yun(debuff)
this.DEBUFF_STUN+=debuff
this.BUFFCOMP.in_yun(deV)
this.DEBUFF_STUN+=deV
this.is_stop=true
break
case DebuffAttr.DECD:
this.cd-=debuff
this.cd-=deV
break
case DebuffAttr.DEHP:
this.hp_max-=debuff
this.hp_max-=deV
if(this.hp-this.hp_max>0) this.hp=this.hp_max
break
case DebuffAttr.DEATK:
this.ap-=debuff
this.ap-=deV
break
case DebuffAttr.DECOUNT:
this.atk_count-=debuff
this.atk_count-=deV
if(this.atk_count<0) this.atk_count=1
break
case DebuffAttr.BACK: