✨ feat(诸子列传): 添加功能
This commit is contained in:
@@ -136,6 +136,10 @@ import { DicGVGVestigePlayerRank, dicGVGVestigePlayerRank, loadGVGVestigePlayerR
|
||||
import { dicGVGAreaPoint, loadGVGAreaPoint, dicGVGPointsByAreaId } from "./dictionary/DicGVGAreaPoint";
|
||||
import { DicGVGBattleRankReward, dicGVGBattleRankReward, loadGVGBattleRankReward } from './dictionary/DicGVGBattleRankReward';
|
||||
import { dicPushMessage, loadPushMessage } from './dictionary/DicPushMessage';
|
||||
import { dicAuthorsBookGoodId, loadAuthorsBookGoodId } from "./dictionary/DicAuthorsBookGoodId";
|
||||
import { dicAuthorsBookMaxProgress, dicAuthorsBookSubs, dicAuthorsBookSubStar, loadAuthorsBookSub } from "./dictionary/DicAuthorsBookSub";
|
||||
import { dicAuthorsBookPoint, loadAuthorsBookPoint } from "./dictionary/DicAuthorsBookPoint";
|
||||
import { dicAuthorsBook, loadAuthorsBook } from './dictionary/DicAuthorsBook';
|
||||
|
||||
export const gameData = {
|
||||
daily: dicDaily,
|
||||
@@ -346,7 +350,13 @@ export const gameData = {
|
||||
gvgReviveGold: new Map<number|'max', number>(),
|
||||
dicPushMessage: dicPushMessage,
|
||||
guildQuitCd: new Array<{day: number, minute: number}>(),
|
||||
trainIdByIndex: dicTrainIdByIndex
|
||||
trainIdByIndex: dicTrainIdByIndex,
|
||||
spirit: dicAuthorsBookGoodId,
|
||||
authorBook: dicAuthorsBook,
|
||||
authorBookSubStar: dicAuthorsBookSubStar,
|
||||
authorBookSubs: dicAuthorsBookSubs,
|
||||
authorBookPoint: dicAuthorsBookPoint,
|
||||
authorBookMaxProgress: dicAuthorsBookMaxProgress
|
||||
};
|
||||
|
||||
// 在此提供一些原先在gamedata中提供的方法,以便更方便获取gameData数据
|
||||
@@ -786,6 +796,10 @@ export function getRaceEventItems() {
|
||||
return items;
|
||||
}
|
||||
|
||||
export function getDicAuthorBookSub(bookId: number, subId: number, star: number) {
|
||||
return gameData.authorBookSubStar.get(`${bookId}_${subId}_${star}`);
|
||||
}
|
||||
|
||||
// export function getRaceEventItems(members: WoodenHorseMember[], items: { id: number, total: number, max: number }[]) {
|
||||
// let result = new Array<RewardInter>();
|
||||
// for (let { id, min, max } of items) {
|
||||
@@ -1645,6 +1659,14 @@ function loadDatas(type?: string) {
|
||||
loadGVGBattleRankReward();
|
||||
if(type == undefined || type == 'loadPushMessage')
|
||||
loadPushMessage();
|
||||
if(type == undefined || type == 'loadAuthorsBookGoodId')
|
||||
loadAuthorsBookGoodId();
|
||||
if(type == undefined || type == 'loadAuthorsBookSub')
|
||||
loadAuthorsBookSub();
|
||||
if(type == undefined || type == 'loadAuthorsBookPoint')
|
||||
loadAuthorsBookPoint();
|
||||
if(type == undefined || type == 'loadAuthorsBook')
|
||||
loadAuthorsBook();
|
||||
|
||||
console.log('loadDatas type: ', type||'all');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user