From be7740e2b63f74b48fb01040421346c331f15263 Mon Sep 17 00:00:00 2001 From: walkpan Date: Wed, 31 Dec 2025 22:33:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8A=80=E8=83=BD):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=B2=BB=E7=96=97=E5=92=8C=E9=AD=94=E6=B3=95=E7=9B=BE=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E6=8A=80=E8=83=BD=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增治疗(6100)和魔法盾(6101)基础技能配置 - 删除旧的heath技能资源文件 - 添加新的heathed动画和预制体资源 - 调整水球技能(6005)的ap和map参数 --- assets/script/game/hero/HeroViewComp.ts | 4 ++-- assets/script/game/skill/TooltipCom.ts | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index 7ed74eea..881c3b7f 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -430,17 +430,17 @@ export class HeroViewComp extends CCComp { playSkillEffect(skill_id:number) { let skill = SkillSet[skill_id] + console.log('[heroview] skill_id'+skill_id,skill) + if (!skill) return; switch(skill.act){ case "max": this.as.max() - this.tooltip(TooltipTypes.skill, skill.name) break case "atk": this.as.atk() break case "buff": this.as.buff() - this.tooltip(TooltipTypes.skill, skill.name) break } } diff --git a/assets/script/game/skill/TooltipCom.ts b/assets/script/game/skill/TooltipCom.ts index e0ac7712..7f9016f1 100644 --- a/assets/script/game/skill/TooltipCom.ts +++ b/assets/script/game/skill/TooltipCom.ts @@ -59,7 +59,12 @@ export class TooltipCom extends CCComp { },0.5) break case TooltipTypes.skill: - this.node.getChildByName("skill").getChildByName("name").getComponent(Label).string = "<"+SkillSet[this.s_uuid].name+">"; + const skillConfig = SkillSet[this.s_uuid]; + if (skillConfig) { + this.node.getChildByName("skill").getChildByName("name").getComponent(Label).string = "<"+skillConfig.name+">"; + } else { + this.node.getChildByName("skill").getChildByName("name").getComponent(Label).string = ""; + } this.node.getChildByName("skill").active=true; this.node.setPosition(v3(this.node.position.x,this.node.position.y+30)) this.scheduleOnce(()=>{