1. 删除已废弃的TalentSet天赋配置文件 2. 重构英雄属性计算逻辑,改为使用驻场技能加成 3. 更新卡牌购买、刷新费用和出售收益的加成逻辑 4. 统一技能配置格式,修复代码格式问题 5. 新增驻场技能类型与配置,兼容原有天赋效果
408 lines
22 KiB
TypeScript
408 lines
22 KiB
TypeScript
// ========== 从 HeroAttrs.ts 导入属性相关定义 ==========
|
||
import { Attrs } from "./HeroAttrs";
|
||
|
||
export enum HSSet {
|
||
atk = 0, // 普通攻击
|
||
skill = 1, // 一般技能
|
||
max = 2, // 必杀技
|
||
}
|
||
|
||
export enum TGroup {
|
||
Self = 0, // 自身
|
||
Ally = 1, // 所有友方,包括自己
|
||
Team = 2, // 所有友方
|
||
Enemy = 3, // 敌方单位
|
||
All = 4 // 所有单位
|
||
}
|
||
|
||
export enum DTType {
|
||
single = 0,
|
||
range = 1,
|
||
}
|
||
|
||
export enum SkillKind {
|
||
Damage = 0,
|
||
Heal = 1,
|
||
Shield = 2,
|
||
Support = 3,
|
||
Gold = 4
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
//受伤动画名称
|
||
export enum AtkedName {
|
||
atked = "atked",
|
||
ice = "atked_ice",
|
||
fire = "atked_fire",
|
||
wind = "atked_wind",
|
||
crit = "atked_crit",
|
||
}
|
||
|
||
|
||
export enum RType {
|
||
linear = 0, //直线
|
||
bezier = 1, //贝塞尔
|
||
fixed = 2, //固定起点
|
||
fixedEnd = 3, //固定终点
|
||
}
|
||
//EType 只负责动画什么时候结束,碰撞体什么时候消失不管,但是消失前一定要关闭碰撞体
|
||
export enum EType {
|
||
animationEnd = 0, //碰撞够也不消失,动画结束才消失
|
||
timeEnd = 1, //碰撞够也不消失,时间到才消失
|
||
collision = 2, //碰撞次数够就消失
|
||
}
|
||
//debuff类型
|
||
|
||
|
||
/*
|
||
=== 技能配置系统使用说明 ===
|
||
|
||
1. 基础属性:
|
||
- uuid: 技能唯一ID
|
||
- name: 技能名称
|
||
- sp_name: 特效名称
|
||
- AtkedName: 攻击类型
|
||
- path: 图片资源路径
|
||
|
||
2. 目标和效果:
|
||
- TGroup: 目标群体 (敌方、友方等)
|
||
- SType: 技能类型 (伤害、治疗、护盾等)
|
||
|
||
3. 执行参数:
|
||
- act: 角色执行的动画
|
||
- DTType: 伤害类型 (单体、范围)
|
||
- EType: 结束条件
|
||
- fname: 特效文件名
|
||
- with: 暂时无用
|
||
|
||
4. 数值参数:
|
||
- ap: 攻击力百分比
|
||
- cd: 冷却时间
|
||
- hit_count: 可命中次数
|
||
- t_num: 目标数量
|
||
- hitcd: 持续伤害的伤害间隔
|
||
- speed: 移动速度
|
||
- cost: 消耗值
|
||
*/
|
||
export enum DType {
|
||
ATK = 0, // 物理
|
||
ICE = 1, // 冰元素
|
||
FIRE = 2, // 火元素
|
||
WIND = 3, // 风元素
|
||
}
|
||
|
||
export enum IType {
|
||
Melee = 0, // 近战
|
||
remote = 1, // 远程
|
||
support = 2, // 辅助
|
||
}
|
||
export const HeroSkillList = [6001, 6001, 6001, 6001, 6001, 6001]
|
||
|
||
// Debuff配置接口
|
||
// (已被废弃,采用平铺字段 buff_type 和 buff_value 代替)
|
||
|
||
interface IReady {
|
||
uuid: number,
|
||
loop: boolean,
|
||
SkillTime: number,// 技能控制存续时间时间
|
||
ReadyTime: number,// 技能前摇时间
|
||
RType: number, //技能运行类型 0-线性 1-贝塞尔 2-开始位置固定 3-目标位置固定
|
||
ready_y: number,
|
||
path: string,
|
||
}
|
||
|
||
interface IEndAnm {
|
||
uuid: number,
|
||
path: string,
|
||
loop: boolean,
|
||
time: number,
|
||
}
|
||
// 技能配置接口 - 按照6001格式排列
|
||
export interface SkillConfig {
|
||
uuid: number, // 技能唯一ID
|
||
name: string, // 技能名称
|
||
sp_name: string, // 特效名称
|
||
icon: string, // 图标ID
|
||
TGroup: TGroup, // 目标群体(敌方/友方/自身等)
|
||
act: string, // 角色执行的动画
|
||
DTType: DTType, // 伤害类型(单体/范围)
|
||
ap: number, // 伤害/治疗技能为攻击百分比,护盾技能为免疫次数
|
||
gold?: number, // 获取金币技能的金币值
|
||
hit_count: number, // 可命中次数
|
||
hitcd: number, // 持续伤害的伤害间隔(秒)
|
||
speed: number, // 移动速度
|
||
with: number, // 宽度(暂时无用)
|
||
ready: number, // 前摇时间
|
||
readyAnm: string, // 前摇动画名称
|
||
endAnm: string, // 结束动画名称
|
||
EAnm: number, // 结束动画ID
|
||
DAnm: string, // 命中后动画ID
|
||
IType: IType, // 技能类型(近战/远程/辅助)
|
||
RType: RType, // 技能运行类型(直线/贝塞尔/固定起点/固定终点)
|
||
EType: EType, // 结束条件(动画结束/时间结束/距离结束/碰撞/次数结束)
|
||
bezier_start_y?: number, // 贝塞尔起始抬升高度
|
||
bezier_mid_y?: number, // 贝塞尔中间高度增量
|
||
bezier_arc?: number, // 贝塞尔弧度系数
|
||
time?: number, // timeEnd 持续时间(秒)
|
||
kind?: SkillKind, // 主效果类型
|
||
crt?: number, // 额外暴击率
|
||
frz?: number, // 额外冰冻概率
|
||
bck?: number, // 额外击退概率
|
||
buff_type?: Attrs, // Buff 类型 (单一职责)
|
||
call_hero?: number, // 召唤技能召唤英雄id(可选)
|
||
info: string, // 技能描述
|
||
}
|
||
|
||
export interface SkillOverrides {
|
||
TGroup?: TGroup;
|
||
ap?: number;
|
||
gold?: number;
|
||
hit_count?: number;
|
||
hitcd?: number;
|
||
crt?: number;
|
||
frz?: number;
|
||
bck?: number;
|
||
buff_type?: Attrs;
|
||
}
|
||
|
||
/**
|
||
* 将覆盖参数合并到基础技能配置中
|
||
* @param config 基础技能配置
|
||
* @param overrides 技能覆盖参数
|
||
* @returns 合并后的新技能配置
|
||
*/
|
||
export function mergeSkillParams(config: SkillConfig, overrides?: SkillOverrides): SkillConfig {
|
||
if (!overrides) return config;
|
||
return {
|
||
...config,
|
||
...overrides
|
||
};
|
||
}
|
||
|
||
export const SkillUpList = {
|
||
1001: { ap: 0, hit_count: 0, buff_ap: 0, buff_hp: 0, bck: 0, frz: 0, crt: 0, num: 0 }
|
||
}
|
||
|
||
/******
|
||
*
|
||
* 射箭类技能 带暴击属性
|
||
* 火法技能 带击退属性
|
||
* 冰法技能 带冰冻属性
|
||
*
|
||
*/
|
||
export const SkillSet: Record<number, SkillConfig> = {
|
||
// ========== 基础技能 ==========
|
||
6001: {
|
||
uuid: 6001, name: "普通攻击", sp_name: "atk", icon: "1026", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.Melee,
|
||
RType: RType.linear, EType: EType.collision, info: "造成攻击力100%的伤害",
|
||
},
|
||
6002: {
|
||
uuid: 6002, name: "光箭蓝", sp_name: "atk_c1", icon: "1126", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.bezier, EType: EType.collision, info: "近战普通攻击技能",
|
||
},
|
||
6003: {
|
||
uuid: 6003, name: "光箭红", sp_name: "atk_c2", icon: "1126", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.bezier, EType: EType.collision, info: "一定几率暴击",
|
||
},
|
||
6004: {
|
||
uuid: 6004, name: "光箭绿", sp_name: "atk_c3", icon: "1126", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.bezier, EType: EType.collision, info: "一定几率击退目标",
|
||
},
|
||
//怪物战士类型统一使用 6005
|
||
6005: {
|
||
uuid: 6005, name: "光箭深红", sp_name: "atk_c4", icon: "1126", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.bezier, EType: EType.collision, info: "一定几率击退目标",
|
||
},
|
||
6006: {
|
||
uuid: 6006, name: "光箭灰白", sp_name: "atk_c5", icon: "1126", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.bezier, EType: EType.collision, info: "一定几率击退目标",
|
||
},
|
||
6007: {
|
||
uuid: 6007, name: "水球", sp_name: "ball_water", icon: "1126", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.bezier, EType: EType.collision, info: "一定几率冰冻目标",
|
||
},
|
||
6008: {
|
||
uuid: 6008, name: "箭矢", sp_name: "arrow", icon: "1135", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.bezier, EType: EType.collision, bezier_start_y: 20, bezier_mid_y: 140, bezier_arc: 1.05, info: "造成攻击力100%的伤害",
|
||
},
|
||
6009: {
|
||
uuid: 6009, name: "箭矢蓝", sp_name: "arrow_blue", icon: "1135", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.bezier, EType: EType.collision, bezier_start_y: 20, bezier_mid_y: 140, bezier_arc: 1.05, info: "造成攻击力100%的伤害",
|
||
},
|
||
6010: {
|
||
uuid: 6010, name: "箭矢红", sp_name: "arrow_red", icon: "1135", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.bezier, EType: EType.collision, bezier_start_y: 20, bezier_mid_y: 140, bezier_arc: 1.05, info: "造成攻击力100%的伤害",
|
||
},
|
||
|
||
6101: {
|
||
uuid: 6101, name: "火球", sp_name: "ball_fire", icon: "1126", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, frz: 0, ap: 100, hit_count: 1, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.linear, EType: EType.collision, info: "造成攻击力100%的伤害,一定几率暴击,高阶技能",
|
||
},
|
||
6102: {
|
||
uuid: 6102, name: "龙卷风", sp_name: "ball_winds", icon: "1126", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.linear, EType: EType.collision, info: "造成攻击力100%的伤害,一定几率击退目标,高阶技能",
|
||
},
|
||
//怪物法师统一使用 暗影球
|
||
6103: {
|
||
uuid: 6103, name: "暗影球", sp_name: "ball_zi", icon: "1126", TGroup: TGroup.Enemy, readyAnm: "", endAnm: "", act: "atk",
|
||
DTType: DTType.single, ap: 100, hit_count: 1, hitcd: 0.3, speed: 720, with: 90, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.linear, EType: EType.collision, info: "造成攻击力100%的伤害,一定几率上毒(后期加入),高阶技能 ",
|
||
},
|
||
6104: {
|
||
uuid: 6104, name: "穿云箭", sp_name: "arrow_big_yellow", icon: "1135", TGroup: TGroup.Enemy, readyAnm: "yellow", endAnm: "", act: "max",
|
||
DTType: DTType.single, crt: 20, ap: 100, hit_count: 6, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.linear, EType: EType.collision, info: "射出强力箭矢,最多穿透6个敌人,附带20%额外暴击率",
|
||
},
|
||
6105: {
|
||
uuid: 6105, name: "冰刺", sp_name: "ice_up", icon: "1173", TGroup: TGroup.Enemy, readyAnm: "blues", endAnm: "", act: "max",
|
||
DTType: DTType.range, frz: 0, ap: 150, hit_count: 6, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.fixedEnd, EType: EType.animationEnd, info: "召唤冰刺攻击一排的敌人,有概率冰冻",
|
||
},
|
||
6106: {
|
||
uuid: 6106, name: "冰推", sp_name: "ice_t", icon: "1173", TGroup: TGroup.Enemy, readyAnm: "blues", endAnm: "", act: "max",
|
||
DTType: DTType.range, frz: 0, ap: 150, hit_count: 6, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.fixed, EType: EType.animationEnd, info: "召唤冰墙阻挡敌人,有概率冰冻,100%击退",
|
||
},
|
||
6107: {
|
||
uuid: 6107, name: "陨石", sp_name: "fire_yuns", icon: "1173", TGroup: TGroup.Enemy, readyAnm: "reds", endAnm: "", act: "max",
|
||
DTType: DTType.range, crt: 20, ap: 150, hit_count: 6, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.remote,
|
||
RType: RType.fixedEnd, EType: EType.animationEnd, info: "召唤攻击敌人,造成攻击力150%的范围伤害,附带20%额外暴击率",
|
||
},
|
||
|
||
//============================= ====== 辅助技能 ====== ==========================
|
||
6301: {
|
||
uuid: 6301, name: "护盾", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Self, readyAnm: "up_blue", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Shield, ap: 3, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, info: "为伙伴/自己添加护盾,可抵挡3次伤害",
|
||
},
|
||
6302: {
|
||
uuid: 6302, name: "治疗", sp_name: "buff_wind", icon: "1292", TGroup: TGroup.Team, readyAnm: "up_green", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Heal, ap: 300, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, info: "治疗伙伴/自己",
|
||
},
|
||
6303: {
|
||
uuid: 6303, name: "获取金币", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Self, readyAnm: "up_blue", endAnm: "gold", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Gold, ap: 0, gold: 10, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, info: "增加一定数量的金币",
|
||
},
|
||
//==========================buff 技能=====================
|
||
6401: {
|
||
uuid: 6401, name: "攻击强化", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Team, readyAnm: "up_ap", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Support, ap: 5, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, buff_type: Attrs.ap, info: "全体友方攻击力提升5点,持续1次",
|
||
},
|
||
6402: {
|
||
uuid: 6402, name: "生命强化", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Team, readyAnm: "up_hp", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Support, ap: 20, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, buff_type: Attrs.hp_max, info: "全体友方最大生命值提升20点,持续1次",
|
||
},
|
||
6403: {
|
||
uuid: 6403, name: "暴击强化", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Team, readyAnm: "up_ap", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Support, ap: 1, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, buff_type: Attrs.critical, info: "全体友方暴击率提升10%,持续1次",
|
||
},
|
||
6404: {
|
||
uuid: 6404, name: "暴伤强化", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Team, readyAnm: "up_ap", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Support, ap: 1, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, buff_type: Attrs.critical_damage, info: "全体友方暴击伤害提升20%,持续1次",
|
||
},
|
||
6405: {
|
||
uuid: 6405, name: "冰冻强化", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Team, readyAnm: "up_blue", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Support, ap: 1, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, buff_type: Attrs.freeze_chance, info: "全体友方冰冻概率提升10%,持续1次",
|
||
},
|
||
6406: {
|
||
uuid: 6406, name: "击退强化", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Team, readyAnm: "up_blue", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Support, ap: 1, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, buff_type: Attrs.knockback_chance, info: "全体友方击退概率提升10%,持续1次",
|
||
},
|
||
6407: {
|
||
uuid: 6407, name: "距推强化", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Team, readyAnm: "up_blue", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Support, ap: 1, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, buff_type: Attrs.knockback_distance, info: "全体友方击退距离提升20点,持续1次",
|
||
},
|
||
6408: {
|
||
uuid: 6408, name: "穿刺强化", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Team, readyAnm: "up_ap", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Support, ap: 20, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, buff_type: Attrs.puncture_chance, info: "全体友方穿透概率提升20%,持续1次",
|
||
},
|
||
6409: {
|
||
uuid: 6409, name: "风怒强化", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Team, readyAnm: "up_ap", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Support, ap: 1, hit_count: 1, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, buff_type: Attrs.wfuny, info: "全体友方风怒次数提升1次,持续1次",
|
||
},
|
||
6501: {
|
||
uuid: 6501, name: "复活", sp_name: "buff_wind", icon: "1255", TGroup: TGroup.Self, readyAnm: "up_ap", endAnm: "", act: "atk",
|
||
DTType: DTType.single, kind: SkillKind.Support, ap: 50, hit_count: 3, hitcd: 0.2, speed: 720, with: 0, ready: 0.2, EAnm: 0, DAnm: "", IType: IType.support,
|
||
RType: RType.fixed, EType: EType.animationEnd, info: "ap 代表复活的生命值百分比",
|
||
}
|
||
|
||
};
|
||
//***************驻场技能配置***************
|
||
export enum FieldSkillType {
|
||
SummonCount = 1, // 召唤触发技能次数提升
|
||
DeadCount = 2, // 死亡触发技能次数提升
|
||
StartCount = 3, // 战斗开始触发技能次数提升
|
||
EndCount = 4, // 战斗结束触发技能次数提升
|
||
WaveGold = 5, // 每回合金币收益提升
|
||
SellGold = 6, // 卖出英雄金币提升
|
||
WaveHeal = 7, // 战斗结束生命回复量提升
|
||
HeroAtk = 8, // 英雄攻击力加成
|
||
HeroFrost = 9, // 英雄冰冻加成
|
||
HeroCrit = 10, // 英雄暴击加成
|
||
HeroCritDamage = 11, // 英雄暴击伤害加成
|
||
HeroSpeed = 12, // 英雄攻击速度加成
|
||
// ---- 13~18 由 TalentSet 迁移而来,统一为驻场口径 ----
|
||
BuyDiscount = 13, // 购买卡牌费用减免(金币)
|
||
RefreshDiscount = 14, // 刷新卡牌费用减免(金币)
|
||
SellBonus = 15, // 出售英雄额外返还(金币)
|
||
HeroHp = 16, // 英雄最大生命加成
|
||
HeroWindFury = 17, // 英雄风怒概率加成
|
||
HeroPuncture = 18, // 英雄穿刺概率加成
|
||
}
|
||
|
||
export interface FieldSkillConfig {
|
||
uuid: number;
|
||
name: string;
|
||
type: FieldSkillType;
|
||
value: number; // 提升的数值
|
||
info: string;
|
||
}
|
||
|
||
export const FieldSkillSet: Record<number, FieldSkillConfig> = {
|
||
7001: { uuid: 7001, name: "召唤强化", type: FieldSkillType.SummonCount, value: 1, info: "召唤触发技能次数+1" },
|
||
7002: { uuid: 7002, name: "死亡强化", type: FieldSkillType.DeadCount, value: 1, info: "死亡触发技能次数+1" },
|
||
7003: { uuid: 7003, name: "开场强化", type: FieldSkillType.StartCount, value: 1, info: "战斗开始触发技能次数+1" },
|
||
7004: { uuid: 7004, name: "结束强化", type: FieldSkillType.EndCount, value: 1, info: "战斗结束触发技能次数+1" },
|
||
7005: { uuid: 7005, name: "金币收益", type: FieldSkillType.WaveGold, value: 10, info: "每回合金币收益+10" },
|
||
7006: { uuid: 7006, name: "出售强化", type: FieldSkillType.SellGold, value: 5, info: "卖出英雄金币+5" },
|
||
7007: { uuid: 7007, name: "战后恢复", type: FieldSkillType.WaveHeal, value: 0.3, info: "战斗结束生命回复量+30%" },
|
||
7008: { uuid: 7008, name: "攻击加成", type: FieldSkillType.HeroAtk, value: 0.2, info: "英雄攻击力+20%" },
|
||
7009: { uuid: 7009, name: "冰冻加成", type: FieldSkillType.HeroFrost, value: 0.1, info: "英雄冰冻概率+10%" },
|
||
7010: { uuid: 7010, name: "暴击加成", type: FieldSkillType.HeroCrit, value: 0.1, info: "英雄暴击率+10%" },
|
||
7011: { uuid: 7011, name: "暴伤加成", type: FieldSkillType.HeroCritDamage, value: 0.5, info: "英雄暴击伤害+50%" },
|
||
7012: { uuid: 7012, name: "攻速加成", type: FieldSkillType.HeroSpeed, value: 0.2, info: "英雄攻击速度+20%" },
|
||
// ---- 13~18 来自原 TalentSet,统一为驻场百分比 / 绝对值口径 ----
|
||
7013: { uuid: 7013, name: "购买优惠", type: FieldSkillType.BuyDiscount, value: 1, info: "购买卡牌费用-1金币" },
|
||
7014: { uuid: 7014, name: "刷新优惠", type: FieldSkillType.RefreshDiscount, value: 1, info: "刷新卡牌费用-1金币" },
|
||
7015: { uuid: 7015, name: "出售返还", type: FieldSkillType.SellBonus, value: 1, info: "出售英雄额外+1金币" },
|
||
7016: { uuid: 7016, name: "生命加成", type: FieldSkillType.HeroHp, value: 0.1, info: "英雄最大生命+10%" },
|
||
7017: { uuid: 7017, name: "风怒加成", type: FieldSkillType.HeroWindFury, value: 0.1, info: "英雄风怒概率+10%" },
|
||
7018: { uuid: 7018, name: "穿刺加成", type: FieldSkillType.HeroPuncture, value: 0.1, info: "英雄穿刺概率+10%" },
|
||
};
|