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

@@ -13,13 +13,13 @@ export enum GUILD_STRUCTURE {
// 建筑名
export const GUILD_STRUCTURE_NAME = new Map([
[ GUILD_STRUCTURE.ARMY_CENTER, '中军大帐'],
[ GUILD_STRUCTURE.EQUIP_PRODUCE, '炼器堂'],
[ GUILD_STRUCTURE.BOSS, '演武台'],
[ GUILD_STRUCTURE.TRAIN, '练兵场'],
[ GUILD_STRUCTURE.DONATE, '捐献所'],
[ GUILD_STRUCTURE.WISH_POOL, '许愿池'],
[ GUILD_STRUCTURE.STORE, '商店']
[GUILD_STRUCTURE.ARMY_CENTER, '中军大帐'],
[GUILD_STRUCTURE.EQUIP_PRODUCE, '炼器堂'],
[GUILD_STRUCTURE.BOSS, '演武台'],
[GUILD_STRUCTURE.TRAIN, '练兵场'],
[GUILD_STRUCTURE.DONATE, '捐献所'],
[GUILD_STRUCTURE.WISH_POOL, '许愿池'],
[GUILD_STRUCTURE.STORE, '商店']
])
// 权限
@@ -169,11 +169,11 @@ export const GUILD_ROUTE_OPERATE = [
];
export const GUILD_ROUTE_TO_OPERATE = new Map<string, { operate: GUILD_OPERATE, type: number }[]>();
for(let {route, operate, type} of GUILD_ROUTE_OPERATE) {
if(!GUILD_ROUTE_TO_OPERATE.has(route)) {
for (let { route, operate, type } of GUILD_ROUTE_OPERATE) {
if (!GUILD_ROUTE_TO_OPERATE.has(route)) {
GUILD_ROUTE_TO_OPERATE.set(route, []);
}
GUILD_ROUTE_TO_OPERATE.get(route).push({ operate, type});
GUILD_ROUTE_TO_OPERATE.get(route).push({ operate, type });
}
// 军团状态
@@ -235,6 +235,8 @@ export enum GUILD_POINT_WAYS {
TRAIN = 3, // 训练场
BOSS_WAR = 4, // 演武台
ACTIVITY = 5, // 军团活动
BOSS_WAR_EXTEND = 6, //演舞台额外
}
// 军团活动id

View File

@@ -653,6 +653,7 @@ export const FILENAME = {
DIC_AUTHORS_BOOK_POINT: 'dic_zyz_authorsBookPoint',
DIC_AUTHORS_BOOK_SUB: 'dic_zyz_authorsBookSub',
DIC_AUTHORS_GOODID: 'dic_zyz_authorsGoodId',
DIC_BOSS_RANK_ACTIVE_POINT:'dic_zyz_bossRank_activePoint',
}
export const WAR_RELATE_TABLES = [

View File

@@ -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');
}

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;
}