- 为英雄配置添加 SkillSet 导入,使技能配置模块化 - 重新分配英雄技能,将原有技能ID替换为新技能体系 - 重构技能配置,建立低阶单体、高阶单体、低阶群体、高阶群体和辅助技能分类 - 扩展技能ID范围,新增多个技能变体以支持更丰富的游戏玩法 - 增加 Buff 配置的数量和梯度,提供更多属性提升选项
129 lines
5.6 KiB
TypeScript
129 lines
5.6 KiB
TypeScript
import { v3 } from "cc"
|
||
import { BoxSet, FacSet } from "./GameSet"
|
||
import { SkillSet } from "./SkillSet";
|
||
|
||
export enum HType {
|
||
Melee = 0,
|
||
Mid = 1,
|
||
Long = 2,
|
||
}
|
||
|
||
export const HTypeName ={
|
||
0:"近战",
|
||
1:"中程",
|
||
2:"远程",
|
||
}
|
||
|
||
|
||
export const HeroPos={
|
||
0:{pos:v3(-320,BoxSet.GAME_LINE,0)},
|
||
1:{pos:v3(0,BoxSet.GAME_LINE,0)},
|
||
2:{pos:v3(0,BoxSet.GAME_LINE,0)},
|
||
}
|
||
|
||
export const FormationPointX = {
|
||
[HType.Melee]: 0,
|
||
[HType.Mid]: 100,
|
||
[HType.Long]: 180,
|
||
} as const;
|
||
|
||
export const HeroDisVal: Record<HType.Melee | HType.Mid | HType.Long, number> = {
|
||
[HType.Melee]: 150,
|
||
[HType.Mid]: 400,
|
||
[HType.Long]: 720,
|
||
}
|
||
|
||
export const resolveFormationTargetX = (fac: FacSet, type: HType): number => {
|
||
const resolvedRangeType = type as HType.Melee | HType.Mid | HType.Long;
|
||
const side = fac === FacSet.MON ? 1 : -1;
|
||
return FormationPointX[resolvedRangeType] * side;
|
||
}
|
||
|
||
|
||
export enum MonStart {
|
||
SLINE_1=140, //上线y
|
||
SLINE_2=100, //下线y
|
||
SLINE_3=180, //下线y
|
||
SLINE_4=60, //y起始点
|
||
START_X=320, //x起始点
|
||
START_I=90, //x轴间隔
|
||
}
|
||
|
||
|
||
/**
|
||
* 英雄/怪物基础信息接口
|
||
*/
|
||
export interface heroInfo {
|
||
uuid: number; // 唯一标识(英雄5000段,怪物5200段)
|
||
name: string; // 显示名称
|
||
icon?: string; // 图标名称(对应美术资源名)
|
||
path: string; // 资源路径(对应美术资源名)
|
||
fac: FacSet; // 阵营(FacSet.HERO 或 FacSet.MON)
|
||
kind?: number; // 未使用
|
||
as: number; // 攻击间隔(越小越快)
|
||
ss:number; // 技能间隔
|
||
type: HType; // 攻击定位(近战/中程/远程)
|
||
hp: number; // 生命值上限
|
||
ap: number; // 攻击力
|
||
// dis: number; // 攻击距离(像素)
|
||
speed: number; // 移动速度(像素/秒)
|
||
skills: number[]; // 携带技能ID列表
|
||
info: string; // 描述文案
|
||
}
|
||
|
||
|
||
|
||
export const HeroInfo: Record<number, heroInfo> = {
|
||
// ========== 英雄角色 ==========
|
||
|
||
5001:{uuid:5001,name:"盾战士",path:"hk1", fac:FacSet.HERO, as:1,ss:5,type:HType.Melee,hp:300,ap:25,speed:120,skills:[6001,6201],info:""},
|
||
5008:{uuid:5008,name:"圣骑士",path:"", fac:FacSet.HERO, as:1,ss:5,type:HType.Melee,hp:340,ap:22,speed:115,skills:[6001,6202],info:""},
|
||
5014:{uuid:5014,name:"风行剑士",path:"", fac:FacSet.HERO, as:1,ss:5,type:HType.Melee,hp:210,ap:38,speed:170,skills:[6001,6104],info:""},
|
||
5007:{uuid:5007,name:"刺客",path:"hc1", fac:FacSet.HERO, as:1,ss:5,type:HType.Melee,hp:140,ap:50,speed:180,skills:[6001,6102],info:""},
|
||
|
||
|
||
5002:{uuid:5002,name:"奥术法师",path:"hm2", fac:FacSet.HERO, as:1,ss:5,type:HType.Long,hp:150,ap:40,speed:95,skills:[6008,6105],info:""},
|
||
5004:{uuid:5004,name:"火焰法师",path:"hm1", fac:FacSet.HERO, as:1,ss:5,type:HType.Long,hp:150,ap:45,speed:90,skills:[6006,6007],info:""},
|
||
5006:{uuid:5006,name:"冰法法师",path:"hz1", fac:FacSet.HERO, as:1,ss:5,type:HType.Long,hp:200,ap:20,speed:105,skills:[6004,6005],info:""},
|
||
5010:{uuid:5010,name:"寒霜术士",path:"", fac:FacSet.HERO, as:1,ss:5,type:HType.Long,hp:160,ap:36,speed:105,skills:[6005,6107],info:""},
|
||
5011:{uuid:5011,name:"炎爆法师",path:"", fac:FacSet.HERO, as:1,ss:5,type:HType.Long,hp:155,ap:42,speed:95,skills:[6007,6108],info:""},
|
||
|
||
|
||
5003:{uuid:5003,name:"射手",path:"ha1", fac:FacSet.HERO, as:1,ss:5,type:HType.Long,hp:180,ap:30,speed:140,skills:[6002,6003],info:""},
|
||
5009:{uuid:5009,name:"游侠",path:"", fac:FacSet.HERO, as:1,ss:5,type:HType.Long,hp:170,ap:32,speed:145,skills:[6002,6101],info:""},
|
||
|
||
|
||
5005:{uuid:5005,name:"牧师",path:"hh1", fac:FacSet.HERO, as:1,ss:5,type:HType.Long,hp:160,ap:25,speed:100,skills:[6003,6100],info:""},
|
||
5012:{uuid:5012,name:"战地医师",path:"", fac:FacSet.HERO, as:1,ss:5,type:HType.Mid,hp:220,ap:24,speed:120,skills:[6004,6204],info:""},
|
||
5013:{uuid:5013,name:"守护祭司",path:"", fac:FacSet.HERO, as:1,ss:5,type:HType.Mid,hp:240,ap:20,speed:110,skills:[6006,6203],info:""},
|
||
5015:{uuid:5015,name:"秘法贤者",path:"", fac:FacSet.HERO, as:1,ss:5,type:HType.Long,hp:175,ap:34,speed:100,skills:[6003,6207],info:""},
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
// 1. 基础近战型
|
||
5201:{uuid:5201,name:"兽人战士",path:"mo1", fac:FacSet.MON, as:3.0,ss:10,type:HType.Melee,hp:60,ap:8,speed:180,skills:[6001,6003],info:""},
|
||
// 2. 快速突击型
|
||
5301:{uuid:5301,name:"兽人斥候",path:"mo1", fac:FacSet.MON, as:1.2,ss:10,type:HType.Melee,hp:40,ap:12,speed:400,skills:[6001,6003],info:""},
|
||
// 3. 重型坦克型
|
||
5401:{uuid:5401,name:"兽人卫士",path:"mo3", fac:FacSet.MON, as:5.0,ss:10,type:HType.Melee,hp:200,ap:15,speed:60,skills:[6001,6003],info:""},
|
||
|
||
// 4. 远程骚扰型
|
||
5501:{uuid:5501,name:"兽人射手",path:"mo1", fac:FacSet.MON, as:3.0,ss:10,type:HType.Long,hp:50,ap:10,speed:90,skills:[6001,6003],info:""},
|
||
|
||
// 5. 特殊机制型
|
||
5601:{uuid:5601,name:"兽人自爆兵",path:"mo1", fac:FacSet.MON, as:3.0,ss:10,type:HType.Melee,hp:80,ap:200,speed:220,skills:[6001,6003],info:""},
|
||
5602:{uuid:5602,name:"兽人召唤师",path:"mo1", fac:FacSet.MON, as:3.0,ss:10,type:HType.Melee,hp:150,ap:10,speed:100,skills:[6001,6003],info:""},
|
||
5603:{uuid:5603,name:"兽人祭司",path:"mo1", fac:FacSet.MON, as:3.0,ss:10,type:HType.Melee,hp:150,ap:10,speed:105,skills:[6001,6003],info:""},
|
||
5604:{uuid:5604,name:"兽人图腾师",path:"mo1", fac:FacSet.MON, as:3.0,ss:10,type:HType.Melee,hp:150,ap:10,speed:110,skills:[6001,6003],info:""},
|
||
// 6. 精英/BOSS型
|
||
5701:{uuid:5701,name:"兽人首领(BOSS)",path:"mo4", fac:FacSet.MON, as:2.5,ss:10,type:HType.Melee,hp:2000,ap:60,speed:120,skills:[6002,6004],info:""},
|
||
};
|