This commit is contained in:
mamengke01
2020-12-22 17:25:16 +08:00
parent eec53b688f
commit 9a377e94d8
18 changed files with 218 additions and 115 deletions

View File

@@ -117,6 +117,15 @@ export const HERO_ATTR = {
17: "ap" // 怒气
};
export const JEWEL_ATTR = {
1: "hp",
2: "atk",
3: "def",
4: "mdef",
5: "agi",
6: "luk"
}
export const ABI_TYPE_TO_STAGE = new Map<number, number | ((jobType: number) => number)>([
[ABI_STAGE.HP, ABI_TYPE.ABI_HP],
[ABI_STAGE.ATK, (jobType:number) => { return jobType == JOB_TYPE.PHYSIC?ABI_TYPE.ABI_ATK: ABI_TYPE.ABI_MATK}],
@@ -136,4 +145,5 @@ export function getAttrCeRatio(attr: string):number {
export function getAttrNameByJobStage(jobStage: number) {
return HEROTARIN[jobStage];
};
};