From 24dd6e973d4e3b0db09d210816be2b8cc070aecc Mon Sep 17 00:00:00 2001 From: walkpan Date: Tue, 7 Jan 2025 08:05:22 +0800 Subject: [PATCH] =?UTF-8?q?buff=20=E8=B7=AF=E5=BE=84=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/resources/game/skills/heath.prefab | 6 +++--- assets/resources/game/skills/heath/heath.anim | 12 ++++++------ assets/script/game/common/config/SkillSet.ts | 2 +- assets/script/game/hero/HeroViewComp.ts | 2 ++ 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/assets/resources/game/skills/heath.prefab b/assets/resources/game/skills/heath.prefab index 70dc5c77..38d91336 100644 --- a/assets/resources/game/skills/heath.prefab +++ b/assets/resources/game/skills/heath.prefab @@ -170,13 +170,13 @@ "_dstBlendFactor": 4, "_color": { "__type__": "cc.Color", - "r": 255, + "r": 51, "g": 255, - "b": 255, + "b": 0, "a": 255 }, "_spriteFrame": { - "__uuid__": "7b0e7263-3b25-4fec-8935-abdd67c4b86d@fa39c", + "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@ea9e2", "__expectedType__": "cc.SpriteFrame" }, "_type": 0, diff --git a/assets/resources/game/skills/heath/heath.anim b/assets/resources/game/skills/heath/heath.anim index 861a523b..7a0cc9a4 100644 --- a/assets/resources/game/skills/heath/heath.anim +++ b/assets/resources/game/skills/heath/heath.anim @@ -67,8 +67,8 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.20833333333333334, - 0.4166666666666667, + 0.2083333283662796, + 0.4166666567325592, 0.625 ], "_values": [ @@ -142,8 +142,8 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.20833333333333334, - 0.4166666666666667, + 0.2083333283662796, + 0.4166666567325592, 0.625 ], "_values": [ @@ -217,8 +217,8 @@ "__type__": "cc.RealCurve", "_times": [ 0, - 0.20833333333333334, - 0.4166666666666667, + 0.2083333283662796, + 0.4166666567325592, 0.625 ], "_values": [ diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index 15de3841..dff225fd 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -65,7 +65,7 @@ export const SkillSet={ in:1,count:1,apup:0,ap:2,hp:0,cd:1,shield:0,speed:300,}, 6017:{uuid: 6017,path: "6017",type: 91,tg:1,debuff:0,depb:50,debtime:2,derate:1,name: "治愈术",sp_name:"heath",info:"释放一个寒冰箭攻击敌人", - in:0.5,count:1,apup:0,ap:1,hp:3,shield:0,speed:450, }, + in:1,count:1,apup:0,ap:1,hp:3,shield:0,speed:450, }, 6018:{uuid: 6018,path: "6018",type: 91,tg:0,debuff:0,depb:50,debtime:2,derate:1,name: "魔法盾",sp_name:"shield",info:"释放一个寒冰箭攻击敌人", in:0.8,count:1,apup:0,ap:1,hp:0,cd:1,shield:1,speed:450, }, diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index c0ce1f7f..ee622f2f 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -567,6 +567,8 @@ export class HeroViewComp extends CCComp { console.log("to_add_buff:"+hero.hero_name+" "+sk); let is_crit=this.check_crit() skill.load(pos,this.box_group,this.node,sk,this.ap_max,t_pos,is_crit,this.crit_add); + console.log(this.scale+this.hero_name+"使用buff:"+sk+" t_pos:"+t_pos+" box:"+this.box_group,); + if(SkillSet[sk].hp > 0){ //buff加血 let increase_hp=Math.floor(SkillSet[sk].hp*this.ap_max) hero.add_hp(increase_hp)