feat(每周结算): 新增对演武台boss的伤害排名获得活跃值

This commit is contained in:
zhangxk
2023-07-21 11:23:39 +08:00
committed by luying
parent 0060343504
commit 667a429dc9
6 changed files with 105 additions and 43 deletions

View File

@@ -0,0 +1,31 @@
import { readFileAndParse } from '../util'
import { FILENAME } from '../../consts'
export interface DicBossRankActivePoint {
readonly id: number;
readonly bossRankMin: number;
readonly bossRankMax: number;
readonly activePoint: number;
}
// const DicBossRankActivePointKeys: KeysEnum<DicBossRankActivePoint> = {
// id: true,
// bossRankMin: true,
// bossRankMax: true,
// activePoint: true,
// };
export const dicBossRankActivePoint = new Array<DicBossRankActivePoint>();
export function loadBossRankActivePoint() {
dicBossRankActivePoint.splice(0, dicBossRankActivePoint.length);
let arr = readFileAndParse(FILENAME.DIC_BOSS_RANK_ACTIVE_POINT);
arr.forEach(o => {
dicBossRankActivePoint.push(o);
});
arr = undefined;
}