refactor(config): 简化BuffConf接口并内联buff配置
移除BuffConf接口中冗余的字段(uuid、name、icon、info),仅保留核心的buff和value。 将SkillConfig中的buffs字段类型从number[]改为BuffConf[],使配置更直接。 更新SkillSet中的技能配置,将buff ID替换为内联的BuffConf对象。
This commit is contained in:
@@ -98,12 +98,8 @@ export const HeroSkillList = [6001,6001,6001,6001,6001,6001]
|
||||
// Debuff配置接口
|
||||
|
||||
export interface BuffConf {
|
||||
uuid:number; // Buff唯一ID
|
||||
name?:string; // Buff名称
|
||||
icon?:string; // Buff图标
|
||||
buff:Attrs;
|
||||
value:number; // 效果值
|
||||
info?:string; // 描述
|
||||
}
|
||||
|
||||
interface IReady {
|
||||
@@ -148,11 +144,13 @@ export interface SkillConfig {
|
||||
crt?:number, // 额外暴击率
|
||||
frz?:number, // 额外冰冻概率
|
||||
bck?:number, // 额外击退概率
|
||||
buffs:number[], // 对施法者的buff配置列表(Buff UUID 列表)
|
||||
buffs:BuffConf[], // 对施法者的buff配置列表(Buff UUID 列表)
|
||||
call_hero?:number, // 召唤技能召唤英雄id(可选)
|
||||
info:string, // 技能描述
|
||||
}
|
||||
|
||||
|
||||
|
||||
/******
|
||||
*
|
||||
* 射箭类技能 带暴击属性
|
||||
@@ -286,32 +284,32 @@ export const SkillSet: Record<number, SkillConfig> = {
|
||||
6401:{
|
||||
uuid:6401,name:"单体攻击",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Team,readyAnm:"",endAnm:"",act:"atk",
|
||||
DTType:DTType.single,kind:SkillKind.Support,ap:0,hit_count:1,hitcd:0.2,speed:720,with:0,ready:0,EAnm:0,DAnm:"",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[1002],info:"随机1个友方+5攻击",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[{buff:Attrs.ap,value:5}],info:"随机1个友方+5攻击",
|
||||
},
|
||||
6402:{
|
||||
uuid:6402,name:"单体生命",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Team,readyAnm:"",endAnm:"",act:"atk",
|
||||
DTType:DTType.single,kind:SkillKind.Support,ap:0,hit_count:1,hitcd:0.2,speed:720,with:0,ready:0,EAnm:0,DAnm:"",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[1102],info:"随机1个友方+20最大生命值",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[{buff:Attrs.hp_max,value:20}],info:"随机1个友方+20最大生命值",
|
||||
},
|
||||
6403:{
|
||||
uuid:6403,name:"单体全能",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Team,readyAnm:"",endAnm:"",act:"atk",
|
||||
DTType:DTType.single,kind:SkillKind.Support,ap:0,hit_count:1,hitcd:0.2,speed:720,with:0,ready:0,EAnm:0,DAnm:"",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[1001,1101],info:"随机1个友方+2攻击,+10最大生命值",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[{buff:Attrs.ap,value:5},{buff:Attrs.hp_max,value:20}],info:"随机1个友方+2攻击,+10最大生命值",
|
||||
},
|
||||
6404:{
|
||||
uuid:6404,name:"群体攻击",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Team,readyAnm:"",endAnm:"",act:"atk",
|
||||
DTType:DTType.single,kind:SkillKind.Support,ap:0,hit_count:3,hitcd:0.2,speed:720,with:0,ready:0,EAnm:0,DAnm:"",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[1001],info:"随机3个友方+2攻击",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[{buff:Attrs.ap,value:2}],info:"随机3个友方+2攻击",
|
||||
},
|
||||
6405:{
|
||||
uuid:6405,name:"群体生命",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Team,readyAnm:"",endAnm:"",act:"atk",
|
||||
DTType:DTType.single,kind:SkillKind.Support,ap:0,hit_count:3,hitcd:0.2,speed:720,with:0,ready:0,EAnm:0,DAnm:"",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[1101],info:"随机3个友方+10最大生命值",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[{buff:Attrs.hp_max,value:10}],info:"随机3个友方+10最大生命值",
|
||||
},
|
||||
6406:{
|
||||
uuid:6406,name:"群体全能",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Team,readyAnm:"",endAnm:"",act:"atk",
|
||||
DTType:DTType.single,kind:SkillKind.Support,ap:0,hit_count:3,hitcd:0.2,speed:720,with:0,ready:0,EAnm:0,DAnm:"",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[1001,1101],info:"随机3个友方+2攻击,+10最大生命值",
|
||||
RType:RType.fixed,EType:EType.animationEnd,buffs:[{buff:Attrs.ap,value:2},{buff:Attrs.hp_max,value:10}],info:"随机3个友方+2攻击,+10最大生命值",
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user