圣盾加攻击bug 修复, 添加了多个怪物动画

This commit is contained in:
2025-01-05 23:42:31 +08:00
parent b5624cf477
commit 01ac7703c2
114 changed files with 47710 additions and 1824 deletions

View File

@@ -169,7 +169,7 @@ export class HeroViewComp extends CCComp {
if(oCol.tag==BoxSet.SKILL_TAG &&seCol.tag!=BoxSet.SKILL_TAG){
if(seCol.group != oCol.group){
let skill = oCol.node.getComponent(SkillCom)!;
console.log(Date.now()+this.hero_name+":"+this.uuid+' onBeginContact: '+skill.s_name+skill.uuid);
// console.log(Date.now()+this.hero_name+":"+this.uuid+' onBeginContact: '+skill.s_name+skill.uuid);
if(this.hp <= 0 ) return
this.check_uatk(skill);
}
@@ -372,7 +372,7 @@ export class HeroViewComp extends CCComp {
break;
case 2:
if(num > skill.depb) return
console.log(this.hero_name+":"+this.uuid+"debuff触发成功 i="+num+":debtime="+skill.debtime+":l_hp="+l_hp);
// console.log(this.hero_name+":"+this.uuid+"debuff触发成功 i="+num+":debtime="+skill.debtime+":l_hp="+l_hp);
this.BUFFCOMP.in_fired(skill.debtime,l_hp)
break;
case 3:
@@ -570,9 +570,9 @@ export class HeroViewComp extends CCComp {
let increase_hp=Math.floor(SkillSet[sk].hp*this.ap_max)
hero.add_hp(increase_hp)
}
if(SkillSet[sk].ap > 0){ //buff加攻击
let increase_atk=Math.floor(SkillSet[sk].ap*this.ap_max)
hero.add_ap(increase_atk,SkillSet[sk].bsd)
if(SkillSet[sk].apup > 0){ //buff加攻击
let increase_atk=Math.floor(SkillSet[sk].apup*this.ap_max)
hero.add_ap(increase_atk)
}
if(SkillSet[sk].shield > 0){ //buff护盾
@@ -637,7 +637,7 @@ export class HeroViewComp extends CCComp {
* @param ap 要增加的行动点数。
* @param time 可选参数表示增加行动点数的时间默认为0。
*/
add_ap(ap: number,time:number=0){
add_ap(ap: number){
this.ap += ap;
}
add_shield(shield:number){