From 705a4620ed9b47554e59582fee0404be8a43ae15 Mon Sep 17 00:00:00 2001 From: panw Date: Thu, 15 Jan 2026 16:45:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor(heroSet):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=8B=B1=E9=9B=84=E9=85=8D=E7=BD=AE=E4=B8=AD=E7=9A=84dis?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=B9=B6=E4=BD=BF=E7=94=A8rangeType=E6=9B=BF?= =?UTF-8?q?=E4=BB=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 攻击距离现在完全由rangeType字段控制,简化了英雄配置结构并消除了冗余数据 --- assets/script/game/common/config/heroSet.ts | 34 ++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/assets/script/game/common/config/heroSet.ts b/assets/script/game/common/config/heroSet.ts index 2d6d3ac6..b5aed734 100644 --- a/assets/script/game/common/config/heroSet.ts +++ b/assets/script/game/common/config/heroSet.ts @@ -113,7 +113,7 @@ export interface heroInfo { mp: number; // 法力值上限 ap: number; // 攻击力 def: number; // 防御(伤害减免) - dis: number; // 攻击距离(像素) +// dis: number; // 攻击距离(像素) rangeType: SkillRange; // 攻击距离类型 (近/中/远) speed: number; // 移动速度(像素/秒) skills: number[]; // 携带技能ID列表 @@ -137,37 +137,37 @@ export const HeroInfo: Record = { // ========== 英雄角色 ========== 5001:{uuid:5001,name:"盾战士",path:"hk1", fac:FacSet.HERO, kind:1,as:1.5, - type:HType.warrior,lv:1,hp:200,mp:200,def:0,ap:15,dis:120,speed:120,skills:[6001,6004], + type:HType.warrior,lv:1,hp:200,mp:200,def:0,ap:15,speed:120,skills:[6001,6004], rangeType: SkillRange.Melee, buff:[],tal:[],info:"盾战士"}, 5002:{uuid:5002,name:"奥术法师",path:"hm2", fac:FacSet.HERO, kind:2,as:1.5, - type:HType.mage,lv:1,hp:92,mp:135,def:0,ap:14,dis:420,speed:95,skills:[6003,6101], + type:HType.mage,lv:1,hp:92,mp:135,def:0,ap:14,speed:95,skills:[6003,6101], rangeType: SkillRange.Long, buff:[],tal:[],info:"奥术法师"}, 5003:{uuid:5003,name:"射手",path:"ha1", fac:FacSet.HERO, kind:2,as:1.5, - type:HType.remote,lv:1,hp:100,mp:80,def:0,ap:18,dis:450,speed:140,skills:[6002,6100], + type:HType.remote,lv:1,hp:100,mp:80,def:0,ap:18,speed:140,skills:[6002,6100], rangeType: SkillRange.Long, buff:[],tal:[],info:"射手"}, 5005:{uuid:5005,name:"牧师",path:"hh1", fac:FacSet.HERO, kind:2,as:1.5, - type:HType.mage,lv:1,hp:88,mp:135,def:0,ap:15,dis:350,speed:100,skills:[6003,6100], + type:HType.mage,lv:1,hp:88,mp:135,def:0,ap:15,speed:100,skills:[6003,6100], rangeType: SkillRange.Mid, buff:[],tal:[],info:"牧师"}, 5004:{uuid:5004,name:"火焰法师",path:"hm1", fac:FacSet.HERO, kind:2,as:1.5, - type:HType.mage,lv:1,hp:85,mp:140,def:0,ap:16,dis:400,speed:90,skills:[6003,6101], + type:HType.mage,lv:1,hp:85,mp:140,def:0,ap:16,speed:90,skills:[6003,6101], rangeType: SkillRange.Mid, buff:[],tal:[],info:"火焰法师"}, 5006:{uuid:5006,name:"召唤法师",path:"hz1", fac:FacSet.HERO, kind:2,as:1.5, - type:HType.support,lv:1,hp:115,mp:145,def:0,ap:8,dis:380,speed:105,skills:[6003,6101], + type:HType.support,lv:1,hp:115,mp:145,def:0,ap:8,speed:105,skills:[6003,6101], rangeType: SkillRange.Mid, buff:[],tal:[],info:"召唤法师"}, 5007:{uuid:5007,name:"刺客",path:"hc1", fac:FacSet.HERO, kind:1,as:1.5, - type:HType.assassin,lv:1,hp:80,mp:60,def:0,ap:22,dis:120,speed:180,skills:[6001,6004], + type:HType.assassin,lv:1,hp:80,mp:60,def:0,ap:22,speed:180,skills:[6001,6004], rangeType: SkillRange.Melee, buff:[],tal:[],info:"刺客"}, @@ -176,50 +176,50 @@ export const HeroInfo: Record = { // 1. 基础近战型 5201:{uuid:5201,name:"兽人战士",path:"mo1", fac:FacSet.MON, kind:1,as:3.0, - type:HType.warrior,lv:1,hp:40,mp:100,def:0,ap:5,dis:60,speed:180,skills:[6005], + type:HType.warrior,lv:1,hp:40,mp:100,def:0,ap:5,speed:180,skills:[6005], rangeType: SkillRange.Melee, buff:[],tal:[],info:"标准炮灰:确保英雄能完成3次普攻积累天赋计数"}, // 2. 快速突击型 5301:{uuid:5301,name:"兽人斥候",path:"mo1", fac:FacSet.MON, kind:1,as:1.2, - type:HType.assassin,lv:1,hp:30,mp:100,def:0,ap:12,dis:50,speed:400,skills:[6005], + type:HType.assassin,lv:1,hp:30,mp:100,def:0,ap:12,speed:400,skills:[6005], rangeType: SkillRange.Melee, buff:[],tal:[],info:"快速突击:极高移速贴脸,检测护盾(7102)刷新率"}, // 3. 重型坦克型 5401:{uuid:5401,name:"兽人卫士",path:"mo1", fac:FacSet.MON, kind:1,as:5.0, - type:HType.warrior,lv:1,hp:400,mp:100,def:5,ap:25,dis:90,speed:60,skills:[6005], + type:HType.warrior,lv:1,hp:400,mp:100,def:5,ap:25,speed:60,skills:[6005], rangeType: SkillRange.Melee, buff:[],tal:[],info:"重型坦克:数值墙,检测玩家破甲(7008)与持续输出"}, // 4. 远程骚扰型 5501:{uuid:5501,name:"兽人射手",path:"mo1", fac:FacSet.MON, kind:1,as:3.0, - type:HType.remote,lv:1,hp:50,mp:100,def:0,ap:15,dis:800,speed:90,skills:[6203], + type:HType.remote,lv:1,hp:50,mp:100,def:0,ap:15,speed:90,skills:[6203], rangeType: SkillRange.Long, buff:[],tal:[],info:"远程骚扰:跨屏打击,迫使阵地分散或移动英雄"}, // 5. 特殊机制型 5601:{uuid:5601,name:"兽人自爆兵",path:"mo1", fac:FacSet.MON, kind:1,as:3.0, - type:HType.assassin,lv:1,hp:60,mp:100,def:0,ap:250,dis:50,speed:220,skills:[6005], + type:HType.assassin,lv:1,hp:60,mp:100,def:0,ap:250,speed:220,skills:[6005], rangeType: SkillRange.Melee, buff:[],tal:[],info:"特殊机制:极端伤害,漏怪即秒杀,检测减伤(7103)"}, // 召唤师:持续召唤小怪(后续可在技能系统中实现 SType.zhaohuan) 5602:{uuid:5602,name:"兽人召唤师",path:"mo1", fac:FacSet.MON, kind:1,as:3.0, - type:HType.mage,lv:1,hp:120,mp:300,def:5,ap:8,dis:380,speed:100,skills:[6005], + type:HType.mage,lv:1,hp:120,mp:300,def:5,ap:8,speed:100,skills:[6005], rangeType: SkillRange.Mid, buff:[],tal:[],info:"战术目标:持续召唤小怪,检测英雄大招清场频率"}, // 治疗者:为周围怪物回血(此处以提升治疗效果和生命回复为基础被动) 5603:{uuid:5603,name:"兽人祭司",path:"mo1", fac:FacSet.MON, kind:1,as:3.0, - type:HType.support,lv:1,hp:120,mp:300,def:5,ap:6,dis:90,speed:105,skills:[6005], + type:HType.support,lv:1,hp:120,mp:300,def:5,ap:6,speed:105,skills:[6005], rangeType: SkillRange.Melee, buff:[],tal:[],info:"战术目标:为怪群回血,检测玩家沉默(7006)覆盖率"}, // 光环怪:为周围怪物提供增益(此处以Buff效果提升与移动速度提升为基础被动) // Attrs.BUFF_UP=60 (RATIO=1),Attrs.SPEED=63 (RATIO=1) 5604:{uuid:5604,name:"兽人图腾师",path:"mo1", fac:FacSet.MON, kind:1,as:3.0, - type:HType.support,lv:1,hp:100,mp:250,def:5,ap:7,dis:90,speed:110,skills:[6005], + type:HType.support,lv:1,hp:100,mp:250,def:5,ap:7,speed:110,skills:[6005], rangeType: SkillRange.Melee, buff:[],tal:[],info:"战术目标:提供加速光环,改变怪群推进节奏"}, // 6. 精英/BOSS型 5701:{uuid:5701,name:"兽人首领(BOSS)",path:"mo1", fac:FacSet.MON, kind:1,as:2.5, - type:HType.warrior,lv:3,hp:25000,mp:500,def:20,ap:80,dis:120,speed:120,skills:[6005], + type:HType.warrior,lv:3,hp:25000,mp:500,def:20,ap:80,speed:120,skills:[6005], rangeType: SkillRange.Melee, buff:[],tal:[],info:"终极考验:极高HP,检测大招重置与辐射协同输出"}, };