From 5a5d849c0bdd910b68cb50ce884007278b44b54e Mon Sep 17 00:00:00 2001 From: walkpan Date: Sun, 5 Apr 2026 21:23:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=8B=B1=E9=9B=84=E9=85=8D=E7=BD=AE):=20?= =?UTF-8?q?=E4=B8=BA=E8=8B=B1=E9=9B=84=E6=95=B0=E6=8D=AE=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8F=AC=E5=94=A4=E5=92=8C=E6=AD=BB=E4=BA=A1=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 heroInfo 接口中添加 call 和 dead 可选字段,用于存储英雄召唤后和死亡后触发的技能ID。同时为盾战士(5001)配置了召唤和死亡技能(6305)。 --- assets/script/game/common/config/heroSet.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/script/game/common/config/heroSet.ts b/assets/script/game/common/config/heroSet.ts index 8ffe9f24..30be0d81 100644 --- a/assets/script/game/common/config/heroSet.ts +++ b/assets/script/game/common/config/heroSet.ts @@ -63,6 +63,8 @@ export interface heroInfo { type: HType; // 攻击定位(近战/中程/远程) hp: number; // 生命值上限 ap: number; // 攻击力 + call?:number; // 召唤后出发的技能uuid + dead?:number; // 死亡后出发的技能uuid // dis: number; // 攻击距离(像素) speed: number; // 移动速度(像素/秒) skills: Record ; // 携带技能ID列表 @@ -94,7 +96,7 @@ export interface HSkillInfo { export const HeroInfo: Record = { // ========== 近战英雄 ========== - 5001:{uuid:5001,name:"盾战士",path:"hk1", fac:FacSet.HERO,cards_lv:1,lv:1,type:HType.Melee,hp:450,ap:25,speed:480, + 5001:{uuid:5001,name:"盾战士",path:"hk1", fac:FacSet.HERO,cards_lv:1,lv:1,type:HType.Melee,hp:450,ap:25,call:6305,dead:6305,speed:480, skills:{6001:{uuid:6001,lv:1,cd:0.75,ccd:0},6301:{uuid:6301,lv:1,cd:5,ccd:0}},info:"近战,魔法盾 坦克"}, 5002:{uuid:5002,name:"圣骑士",path:"hk3", fac:FacSet.HERO,cards_lv:3,lv:1,type:HType.Melee,hp:1350,ap:75,speed:480, skills:{6001:{uuid:6001,lv:1,cd:0.75,ccd:0},6305:{uuid:6305,lv:1,cd:5,ccd:0}},info:"近战,群体护盾 坦克"},