This commit is contained in:
mamengke01
2020-12-25 14:15:03 +08:00
parent 0c5cb1daac
commit 04fa4e79cf
14 changed files with 304 additions and 27 deletions

View File

@@ -125,7 +125,14 @@ export const JEWEL_ATTR = {
5: "agi",
6: "luk"
}
const BASE_ATTR = {
'hp' : 1 ,
'atk' : 2,
'def' : 3,
'mdef' : 4,
'agi' : 5,
'luk' : 6
}
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}],
@@ -140,10 +147,13 @@ export function getAtrrNameById(attrId: number):string {
};
export function getAttrCeRatio(attr: string):number {
return CE_RATIO[attr];
return ;
};
export function getAttrNameByJobStage(jobStage: number) {
return HEROTARIN[jobStage];
};
export function getTeraphAttr() {
return BASE_ATTR;
};

View File

@@ -26,6 +26,11 @@ export const CONSUME_TYPE = {
JEWEL: 9, //宝石
};
export enum ROLE_TERAPH {
START = 1,
END = 4
}
export enum EQUIP_TYPE {
START = 1,
WEAPON = 1, // 神兵(武器)

View File

@@ -88,7 +88,8 @@ export const FILENAME = {
DIC_REFINE: 'dic_zyz_jinglian',
DIC_HERO_EQUIP: 'dic_zyz_heroEquip',
DIC_SUIT: 'dic_zyz_suit',
DIC_TITLE: 'dic_zyz_title'
DIC_TITLE: 'dic_zyz_title',
DIC_TERAPH: 'dic_zyz_teraph',
}
export const WAR_RELATE_TABLES = [