Files
ZYZ/shared/pubUtils/dictionary/DicFriendShipLevel.ts
2020-12-15 15:00:41 +08:00

23 lines
577 B
TypeScript

// 武将羁绊好感等级表
import { readJsonFile } from '../util';
import { FILENAME } from '../../consts/consts';
export interface DicFriendShipLevel {
// 等级
readonly level: number;
// 下一级经验
readonly exp: number;
// 加成百分比
readonly add: number;
}
const str = readJsonFile(FILENAME.DIC_FRIEND_SHIP);
let arr = JSON.parse(str);
export const dicFriendShipLevel = new Array<DicFriendShipLevel>();
arr.forEach(o => {
dicFriendShipLevel.push(o);
});
dicFriendShipLevel.sort(function(a, b) {
return a.level - b.level;
});