From 39316cf266b58d73bd8cea2889bc7cbafd863cff Mon Sep 17 00:00:00 2001 From: walkpan Date: Sun, 17 May 2026 23:25:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(hero):=20=E8=B0=83=E6=95=B4=E8=8B=B1?= =?UTF-8?q?=E9=9B=84=E5=8D=87=E7=BA=A7=E7=89=B9=E6=95=88=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正了英雄等级对应的特效播放映射,注释了暂未使用的9级特效代码 --- assets/script/game/hero/Hero.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/assets/script/game/hero/Hero.ts b/assets/script/game/hero/Hero.ts index da280801..4c11e747 100644 --- a/assets/script/game/hero/Hero.ts +++ b/assets/script/game/hero/Hero.ts @@ -89,11 +89,13 @@ export class Hero extends ecs.Entity { mLogger.log(this.debugMode,"hero",node.getSiblingIndex()); var hv = node.getComponent(HeroViewComp)!; - if(hero_lv == 2){hv.playAllTime("plus")} - if(hero_lv == 3){hv.playAllTime("plus2")} - if(hero_lv == 4){hv.playAllTime("plus3")} - if(hero_lv == 5){hv.playAllTime("plus4")} - if(hero_lv == 6){hv.playAllTime("plus5")} + if(hero_lv == 3){hv.playAllTime("plus")} + if(hero_lv == 4){hv.playAllTime("plus")} + if(hero_lv == 5){hv.playAllTime("plus")} + if(hero_lv == 6){hv.playAllTime("plus2")} + // if(hero_lv == 9){hv.playAllTime("plus3")} + // if(hero_lv == 9){hv.playAllTime("plus4")} + // if(hero_lv == 9){hv.playAllTime("plus5")} const model = this.get(HeroAttrsComp); // 从配置中读取英雄静态数据