From 24e6ffc11056a42f895caefc5d5b4dffb57b0dd8 Mon Sep 17 00:00:00 2001 From: panw Date: Fri, 24 Oct 2025 15:25:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor(hero):=20=E7=A7=BB=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99cd=E5=AD=97=E6=AE=B5=E5=B9=B6=E4=BC=98=E5=8C=96heroInf?= =?UTF-8?q?o=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整heroInfo接口,移除无用cd字段 - 精简各英雄与怪物对象中的cd属性 - 注释掉未使用的怪物配置数据 - 格式化属性排列更规范易读 --- assets/script/game/common/config/heroSet.ts | 78 ++++----------------- 1 file changed, 13 insertions(+), 65 deletions(-) diff --git a/assets/script/game/common/config/heroSet.ts b/assets/script/game/common/config/heroSet.ts index b9d9938e..1fc7948d 100644 --- a/assets/script/game/common/config/heroSet.ts +++ b/assets/script/game/common/config/heroSet.ts @@ -74,106 +74,54 @@ export enum HeroUpSet { } export interface heroInfo{ - uuid:number, name:string, path:string,fac:FacSet,kind:number,type:HType, hp:number,mp:number,map:number, def:number, ap:number,dis:number, cd:number,speed:number, - lv:number,skills:number[], buff:BuffConf[], debuff:DbuffConf[], info:string + uuid:number, name:string, path:string,fac:FacSet,kind:number,type:HType, + hp:number,mp:number,map:number, def:number, ap:number,dis:number, speed:number,lv:number,skills:number[], + buff:BuffConf[], debuff:DbuffConf[], info:string } export const HeroInfo: Record = { //主将 5001:{uuid:5001,name:"圣骑士",path:"hk1", fac:FacSet.HERO, kind:1, - type:HType.warrior,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:100,cd:1,speed:150,skills:[6001,6005], + type:HType.warrior,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:100,speed:150,skills:[6001,6005], buff:[],debuff:[],info:""}, 5002:{uuid:5002,name:"刺客",path:"hc1", fac:FacSet.HERO, kind:1, - type:HType.warrior,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:100,cd:1,speed:150,skills:[6001,6005], + type:HType.warrior,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:100,speed:150,skills:[6001,6005], buff:[],debuff:[],info:""}, 5005:{uuid:5005,name:"绿箭",path:"ha1", fac:FacSet.HERO, kind:2, - type:HType.remote,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,cd:1,speed:100,skills:[6001,6005], + type:HType.remote,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,speed:100,skills:[6001,6005], buff:[],debuff:[],info:""}, 5007:{uuid:5007,name:"牧师",path:"hh1", fac:FacSet.HERO, kind:2, - type:HType.mage,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,cd:1,speed:100,skills:[6001,6005], + type:HType.mage,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,speed:100,skills:[6001,6005], buff:[],debuff:[],info:""}, 5008:{uuid:5008,name:"火女",path:"hm1", fac:FacSet.HERO, kind:2, - type:HType.mage,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,cd:1.5,speed:100,skills:[6001,6005], + type:HType.mage,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,speed:100,skills:[6001,6005], buff:[],debuff:[],info:""}, 5009:{uuid:5009,name:"魔法精灵",path:"hm2", fac:FacSet.HERO, kind:2, - type:HType.mage,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,cd:1.5,speed:100,skills:[6006,6006,6301,6302,6303], + type:HType.mage,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,speed:100,skills:[6006,6006,6301,6302,6303], buff:[],debuff:[],info:""}, 5010:{uuid:5010,name:"德鲁伊",path:"hz1", fac:FacSet.HERO, kind:2, - type:HType.mage,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,cd:1.5,speed:100,skills:[6007,6007,6301,6302,6303], + type:HType.mage,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,speed:100,skills:[6007,6007,6301,6302,6303], buff:[],debuff:[],info:""}, -// 5011:{uuid:5011,name:"ha2",path:"ha2", fac:FacSet.HERO, kind:2, -// type:HType.remote,lv:1,hp:100,mp:100,map:100,def:5,ap:15,dis:400,cd:1,speed:100,skills:[6003,6003,6301,6302,6303], -// buff:[],debuff:[],info:""}, //怪物 5201:{uuid:5201,name:"兽人战士",path:"mo1", fac:FacSet.MON, kind:1, - type:HType.warrior,lv:1,hp:25,mp:100,map:100,def:5,ap:5,dis:90,cd:2,speed:100,skills:[6005], + type:HType.warrior,lv:1,hp:25,mp:100,map:100,def:5,ap:5,dis:90,speed:100,skills:[6005], buff:[],debuff:[],info:"普通怪物-战士型"}, 5202:{uuid:5202,name:"兽人刺客",path:"mo1", fac:FacSet.MON, kind:1, - type:HType.remote,lv:1,hp:20,mp:100,map:100,def:5,ap:5,dis:350,cd:1,speed:100,skills:[6005], + type:HType.remote,lv:1,hp:20,mp:100,map:100,def:5,ap:5,dis:350,speed:100,skills:[6005], buff:[],debuff:[],info:"普通怪物-战士型"}, 5203:{uuid:5203,name:"兽人护卫",path:"mo1", fac:FacSet.MON, kind:1, - type:HType.warrior,lv:1,hp:25,mp:100,map:100,def:5,ap:5,dis:90,cd:2,speed:100,skills:[6005], + type:HType.warrior,lv:1,hp:25,mp:100,map:100,def:5,ap:5,dis:90,speed:100,skills:[6005], buff:[],debuff:[],info:"普通怪物-战士型"}, - // 5204:{uuid:5204,name:"石卫", path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.mage,lv:1,hp:18,mp:100,map:100,def:5,ap:5,dis:90,cd:2.5,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"法师怪物-高伤害脆弱"}, - - // 5205:{uuid:5205,name:"土卫", path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.mage,lv:1,hp:18,mp:100,map:100,def:5,ap:5,dis:90,cd:2.5,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"法师怪物-高伤害脆弱"}, - - // 5206:{uuid:5206,name:"树卫", path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.mage,lv:1,hp:18,mp:100,map:100,def:5,ap:5,dis:90,cd:2.5,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"法师怪物-高伤害脆弱"}, - - - - // 5219:{uuid:5219,name:"牛头战士",path:"mo1", fac:FacSet.MON,kind:1, - // type:HType.warrior,lv:1,hp:25,mp:100,map:100,def:5,ap:5,dis:90,cd:2,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"普通怪物-战士型"}, - - // 5220:{uuid:5220,name:"牛头战士",path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.warrior,lv:1,hp:25,mp:100,map:100,def:5,ap:5,dis:90,cd:2,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"普通怪物-战士型"}, - - // 5221:{uuid:5221,name:"牛头战士",path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.remote,lv:1,hp:20,mp:100,map:100,def:5,ap:5,dis:350,cd:1.5,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"普通怪物-战士型"}, - - // 5222:{uuid:5222,name:"独眼巨人",path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.warrior,lv:1,hp:25,mp:100,map:100,def:5,ap:5,dis:90,cd:2,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"普通怪物-战士型"}, - - // 5223:{uuid:5223,name:"独眼巨人",path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.warrior,lv:1,hp:25,mp:100,map:100,def:5,ap:5,dis:90,cd:2,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"普通怪物-战士型"}, - - // 5224:{uuid:5224,name:"独眼巨人",path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.remote,lv:1,hp:20,mp:100,map:100,def:5,ap:5,dis:350,cd:1.5,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"普通怪物-战士型"}, - - // 5225:{uuid:5225,name:"精英独眼",path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.warrior,lv:1,hp:45,mp:100,map:100,def:5,ap:12,dis:300,cd:2,speed:100,skills:[6001], - // buff:[],debuff:[],info:"精英怪物-战士型"}, - - // 5226:{uuid:5226,name:"精英牛头",path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.warrior,lv:1,hp:45,mp:100,map:100,def:5,ap:12,dis:300,cd:2,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"精英怪物-战士型"}, - - // 5227:{uuid:5227,name:"精英兽人",path:"mo1", fac:FacSet.MON, kind:1, - // type:HType.warrior,lv:1,hp:45,mp:100,map:100,def:5,ap:12,dis:300,cd:2,speed:100,skills:[6001,6005], - // buff:[],debuff:[],info:"精英怪物-战士型"}, - }; \ No newline at end of file