✨ feat(每周结算): 新增对演武台boss的伤害排名获得活跃值
This commit is contained in:
@@ -140,6 +140,7 @@ import { dicAuthorsBookGoodId, loadAuthorsBookGoodId } from "./dictionary/DicAut
|
||||
import { dicAuthorsBookMaxProgress, dicAuthorsBookSubs, dicAuthorsBookSubStar, loadAuthorsBookSub } from "./dictionary/DicAuthorsBookSub";
|
||||
import { dicAuthorsBookPoint, loadAuthorsBookPoint } from "./dictionary/DicAuthorsBookPoint";
|
||||
import { dicAuthorsBook, loadAuthorsBook } from './dictionary/DicAuthorsBook';
|
||||
import { dicBossRankActivePoint, loadBossRankActivePoint } from "./dictionary/DicBossRankActivePoint";
|
||||
|
||||
export const gameData = {
|
||||
daily: dicDaily,
|
||||
@@ -358,7 +359,8 @@ export const gameData = {
|
||||
authorBookSubStar: dicAuthorsBookSubStar,
|
||||
authorBookSubs: dicAuthorsBookSubs,
|
||||
authorBookPoint: dicAuthorsBookPoint,
|
||||
authorBookMaxProgress: dicAuthorsBookMaxProgress
|
||||
authorBookMaxProgress: dicAuthorsBookMaxProgress,
|
||||
bossRankActivePoint: dicBossRankActivePoint,
|
||||
};
|
||||
|
||||
// 在此提供一些原先在gamedata中提供的方法,以便更方便获取gameData数据
|
||||
@@ -1670,6 +1672,8 @@ function loadDatas(type?: string) {
|
||||
if (type == undefined || type == 'loadAuthorsBook')
|
||||
loadAuthorsBook();
|
||||
|
||||
if (type == undefined || type == 'loadBossRankActivePoint')
|
||||
loadBossRankActivePoint();
|
||||
console.log('loadDatas type: ', type || 'all');
|
||||
}
|
||||
|
||||
|
||||
31
shared/pubUtils/dictionary/DicBossRankActivePoint.ts
Normal file
31
shared/pubUtils/dictionary/DicBossRankActivePoint.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user