feat(config): 新增群体增益技能并简化Buff配置接口
- 移除 BuffRunType 枚举及 BuffConf 接口中的 time, chance, runType, interval 字段 - 新增技能ID 6207-6216,提供全体攻击/生命增益效果 - 新增BuffID 1001-1005(攻击提升)和1101-1105(生命上限提升) - 保持现有技能配置结构,仅扩展数据内容
This commit is contained in:
@@ -27,11 +27,7 @@ export enum SkillKind {
|
||||
Support = 3
|
||||
}
|
||||
|
||||
export enum BuffRunType {
|
||||
Permanent = 0,
|
||||
Timed = 1,
|
||||
Interval = 2
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -107,11 +103,7 @@ export interface BuffConf {
|
||||
icon?:string; // Buff图标
|
||||
buff:Attrs;
|
||||
value:number; // 效果值
|
||||
time:number; // 持续时间
|
||||
chance:number; // 触发概率
|
||||
info?:string; // 描述
|
||||
runType?:BuffRunType;
|
||||
interval?:number;
|
||||
}
|
||||
|
||||
interface IReady {
|
||||
@@ -263,7 +255,46 @@ export const SkillSet: Record<number, SkillConfig> = {
|
||||
uuid:6206,name:"群体治疗",sp_name:"buff_wind",icon:"1292",TGroup:TGroup.Ally,readyAnm:"",endAnm:"",act:"atk",DTType:DTType.single,kind:SkillKind.Heal,
|
||||
ap:20,hit_count:1,hitcd:0.2,speed:720,with:0,ready:0,EAnm:0,DAnm:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[],info:"全体回复20%最大生命值",
|
||||
},
|
||||
|
||||
6207:{
|
||||
uuid:6207,name:"全体攻击",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Ally,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:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[1001],info:"全体+1攻击",
|
||||
},
|
||||
6208:{
|
||||
uuid:6208,name:"全体攻击",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Ally,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:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[1002],info:"全体+2攻击",
|
||||
},
|
||||
6209:{
|
||||
uuid:6209,name:"全体攻击",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Ally,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:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[1003],info:"全体+5攻击",
|
||||
},
|
||||
6210:{
|
||||
uuid:6210,name:"全体攻击",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Ally,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:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[1004],info:"全体+10攻击",
|
||||
},
|
||||
6211:{
|
||||
uuid:6211,name:"全体攻击",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Ally,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:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[1005],info:"全体+20攻击",
|
||||
},
|
||||
6212:{
|
||||
uuid:6212,name:"全体生命",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Ally,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:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[1101],info:"全体最大生命值+10",
|
||||
},
|
||||
6213:{
|
||||
uuid:6213,name:"全体生命",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Ally,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:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[1102],info:"全体最大生命值+20",
|
||||
},
|
||||
6214:{
|
||||
uuid:6214,name:"全体生命",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Ally,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:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[1103],info:"全体最大生命值+50",
|
||||
},
|
||||
6215:{
|
||||
uuid:6215,name:"全体生命",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Ally,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:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[1104],info:"全体最大生命值+100",
|
||||
},
|
||||
6216:{
|
||||
uuid:6216,name:"全体生命",sp_name:"buff_wind",icon:"1255",TGroup:TGroup.Ally,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:9001,RType:RType.fixed,EType:EType.animationEnd,buffs:[1105],info:"全体最大生命值+200",
|
||||
},
|
||||
// ========== 怪物基础技能 ==========
|
||||
6501: {
|
||||
uuid:6501, name:"怪物近战", sp_name:"atk_s1", icon:"3036", TGroup:TGroup.Enemy, readyAnm:"",endAnm:"",act:"atk", DTType:DTType.single,
|
||||
@@ -295,17 +326,14 @@ export const CanSelectSkills: Record<number, number[]> = {
|
||||
// ==================== 预定义 Buff 列表 ====================
|
||||
// 使用 ID 作为 Key,方便在技能配置中引用或作为模板
|
||||
export const BuffsList: Record<number, BuffConf> = {
|
||||
// ========== 攻击类增益 ========== 10001 - 10099
|
||||
// 攻击力提升 (固定值)
|
||||
10001: { uuid: 10001, name: "攻击提升", icon: "10001", buff: Attrs.ap, value: 10, time: 5, chance: 1, info: "攻击力+10" },
|
||||
10002: { uuid: 10002, name: "攻击提升", icon: "10002", buff: Attrs.ap, value: 50, time: 5, chance: 1, info: "攻击力+50" },
|
||||
|
||||
10101: { uuid: 10101, name: "生命上限提升", icon: "10101", buff: Attrs.hp_max, value: 20, time: 10, chance: 1, info: "生命上限+20%" },
|
||||
|
||||
// 移动速度提升 (固定值)
|
||||
10111: { uuid: 10111, name: "移速提升", icon: "10111", buff: Attrs.speed, value: 50, time: 5, chance: 1, info: "移速+50" },
|
||||
10112: { uuid: 10112, name: "移速提升", icon: "10112", buff: Attrs.speed, value: 100, time: 5, chance: 1, info: "移速+100" },
|
||||
|
||||
|
||||
|
||||
1001: { uuid: 1001, name: "攻击提升", icon: "10001", buff: Attrs.ap, value: 1, info: "攻击力+1" },
|
||||
1002: { uuid: 1002, name: "攻击提升", icon: "10002", buff: Attrs.ap, value: 2, info: "攻击力+2" },
|
||||
1003: { uuid: 1003, name: "攻击提升", icon: "10002", buff: Attrs.ap, value: 5, info: "攻击力+5" },
|
||||
1004: { uuid: 1004, name: "攻击提升", icon: "10002", buff: Attrs.ap, value: 10, info: "攻击力+10" },
|
||||
1005: { uuid: 1005, name: "攻击提升", icon: "10002", buff: Attrs.ap, value: 20, info: "攻击力+20" },
|
||||
1101: { uuid: 1101, name: "生命上限提升", icon: "10101", buff: Attrs.hp_max, value: 10, info: "最大生命值+10" },
|
||||
1102: { uuid: 1102, name: "生命上限提升", icon: "10101", buff: Attrs.hp_max, value: 20, info: "最大生命值+20" },
|
||||
1103: { uuid: 1103, name: "生命上限提升", icon: "10101", buff: Attrs.hp_max, value: 50, info: "最大生命值+50" },
|
||||
1104: { uuid: 1104, name: "生命上限提升", icon: "10101", buff: Attrs.hp_max, value: 100, info: "最大生命值+100" },
|
||||
1105: { uuid: 1105, name: "生命上限提升", icon: "10101", buff: Attrs.hp_max, value: 200, info: "最大生命值+200" },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user