feat(稷下学宫): ff931afe4到7421822f6

This commit is contained in:
luying
2023-08-30 11:02:52 +08:00
parent 59a334d673
commit 05cbe318e9
102 changed files with 147876 additions and 715 deletions
+114 -1
View File
@@ -141,6 +141,37 @@ import { dicAuthorsBookMaxProgress, dicAuthorsBookSubs, dicAuthorsBookSubStar, l
import { dicAuthorsBookPoint, loadAuthorsBookPoint } from "./dictionary/DicAuthorsBookPoint";
import { dicAuthorsBook, loadAuthorsBook } from './dictionary/DicAuthorsBook';
import { dicBossRankActivePoint, loadBossRankActivePoint } from "./dictionary/DicBossRankActivePoint";
// import { dicRougeType, loadRougeType } from "./dictionary/DicRougeType";
import { dicRougeChara, dicRougeCharaByInitial, loadRougeChara } from "./dictionary/DicRougeChara";
import { dicRougePassiveCardPlan, loadRougePassiveCardPlan } from "./dictionary/DicRougePassiveCardPlan";
import { dicRougePassiveCard, dicRougePassiveCardByGroup, loadRougePassiveCard } from "./dictionary/DicRougePassiveCard";
import { dicRougeSkillCard, loadRougeSkillCard } from "./dictionary/DicRougeSkillCard";
import { dicRougeHolyCard, loadRougeHolyCard } from "./dictionary/DicRougeHolyCard";
import { dicRougeLayerRewardPlan, loadRougeLayerRewardPlan } from "./dictionary/DicRougeLayerReward";
import { dicRougeNode, loadRougeNode } from "./dictionary/DicRougeNode";
import { dicRougeShopPlan, loadRougeShopPlan } from "./dictionary/DicRougeShopPlan";
import { dicRougeTypeGrade, dicRougeTypeGradeById, loadRougeTypeGrade } from "./dictionary/DicRougeTypeGrade";
import { dicRougeLayerPlan, dicRougeLayerPlanByPlanId, loadRougeLayerPlan } from "./dictionary/DicRougeLayerPlan";
import { dicRougeLayerNodeNumPlan, loadRougeLayerNodeNumPlan } from "./dictionary/DicRougeLayerNodeNumPlan";
import { dicRougeLayerNodePlan, loadRougeLayerNodePlan } from "./dictionary/DicRougeLayerNodePlan";
import { dicRougeAuthorType, loadRougeAuthorType } from "./dictionary/DicRougeAuthorType";
import { dicRougeChallenge, loadRougeChallenge } from "./dictionary/DicRougeChallenge";
import { dicRougeChallengePlan, loadRougeChallengePlan } from "./dictionary/DicRougeChallengePlan";
import { dicRougeQuestionMarkPlan, loadRougeQuestionMarkPlan } from "./dictionary/DicRougeQuestionMarkPlan";
import { dicRougeRandomEventPlan, loadRougeRandomEventPlan } from "./dictionary/DicRougeRandomEventPlan";
import { dicRougeCharaCardPlan, loadRougeCharaCardPlan } from "./DicRougeCharaCardPlan";
import { dicRougeHolyCardPlan, loadRougeHolyCardPlan } from "./DicRougeHolyCardPlan";
import { dicRougeEventOption, loadRougeEventOption } from "./dictionary/DicRougeEventOption";
import { dicRougeTech, loadRougeTech, dicRougeTechIdByRow } from "./dictionary/DicRougeTech";
import { dicRougeTechCircle, dicRougeTechCircleByTechId, loadRougeTechCircle } from "./dictionary/DicRougeTechCircle";
import { dicRougeTechLevel, loadRougeTechLevel } from "./dictionary/DicRougeTechLevel";
import { dicRougeOptionGroup, loadRougeOptionGroup } from "./dictionary/DicRougeOptionGroup";
import { dicRougePassiveCollect, loadRougePassiveCollect } from "./dictionary/DicRougePassiveCollect";
import { dicRougeScoreNum, dicRougeScoreReward, loadRougeScoreReward } from "./dictionary/DicRougeScoreReward";
import { dicRougeEffect, loadRougeEffect } from "./dictionary/DicRougeEffect";
import { dicRougeEffectType, loadRougeEffectType } from "./dictionary/DicRougeEffectType";
import { dicSpiritPlan, loadSpiritPlan } from "./dictionary/DicSpiritPlan";
export const gameData = {
daily: dicDaily,
@@ -361,6 +392,46 @@ export const gameData = {
authorBookPoint: dicAuthorsBookPoint,
authorBookMaxProgress: dicAuthorsBookMaxProgress,
bossRankActivePoint: dicBossRankActivePoint,
// rougeType: dicRougeType, //暂时用不到
rougeAuthorType: dicRougeAuthorType,
rougeTypeGrade: dicRougeTypeGrade,
rougeTypeGradeById: dicRougeTypeGradeById,
rougeLayerPlan: dicRougeLayerPlan,
spiritPlan: dicSpiritPlan,
rougeLayerPlanByPlanId: dicRougeLayerPlanByPlanId,
rougeLayerNodeNumPlan: dicRougeLayerNodeNumPlan,
rougeLayerNodePlan: dicRougeLayerNodePlan,
rougeNode: dicRougeNode,
rougeLayerRewardPlan: dicRougeLayerRewardPlan,
rougeShopPlan: dicRougeShopPlan,
rougeChara: dicRougeChara,
rougeCharaByInitial: dicRougeCharaByInitial,
rougePassiveCard: dicRougePassiveCard,
rougePassiveCardByGroup: dicRougePassiveCardByGroup,
rougeSkillCard: dicRougeSkillCard,
rougeHolyCard: dicRougeHolyCard,
rougeCharaCardPlan: dicRougeCharaCardPlan,
rougePassiveCardPlan: dicRougePassiveCardPlan,
rougeHolyCardPlan: dicRougeHolyCardPlan,
rougeChallenge: dicRougeChallenge,
rougeChallengePlan: dicRougeChallengePlan,
rougeQuestionMarkPlan: dicRougeQuestionMarkPlan,
rougeRandomEventPlan: dicRougeRandomEventPlan,
rougeEventOption: dicRougeEventOption,
rougeOptionGroup: dicRougeOptionGroup,
rougePassiceCollect: dicRougePassiveCollect,
rougeScoreReward: dicRougeScoreReward,
rougeScoreNum: dicRougeScoreNum,
rougeEffect: dicRougeEffect,
rougeEffectType: dicRougeEffectType,
rougeTech: dicRougeTech,
rougeTechCircle: dicRougeTechCircle,
rougeCircleByTech: dicRougeTechCircleByTechId,
rougeTechByRow: dicRougeTechIdByRow,
rougeTechLevel: dicRougeTechLevel,
};
// 在此提供一些原先在gamedata中提供的方法,以便更方便获取gameData数据
@@ -1298,6 +1369,16 @@ export function getDicServerName(env: string, serverId: number) {
return dic.get(serverId);
}
export function getRougeEffectTypeKind(effectTypes: number[]) {
let kinds: number[] = [];
for (let effectType of effectTypes) {
let dicEffectType = gameData.rougeEffectType.get(effectType);
if (!dicEffectType) continue;
if (!kinds.includes(dicEffectType.kind)) kinds.push(dicEffectType.kind);
}
return kinds;
}
// 初始加载
function initDatas() {
parseDicParam();
@@ -1675,9 +1756,41 @@ function loadDatas(type?: string) {
loadAuthorsBookPoint();
if (type == undefined || type == 'loadAuthorsBook')
loadAuthorsBook();
if (type == undefined || type == 'loadBossRankActivePoint')
loadBossRankActivePoint();
// if (type == undefined || type == 'loadRougeType') loadRougeType();//暂时用不到
if (type == undefined || type == 'loadRougeAuthorType') loadRougeAuthorType();
if (type == undefined || type == 'loadRougeTypeGrade') loadRougeTypeGrade();
if (type == undefined || type == 'loadRougeLayerPlan') loadRougeLayerPlan();
if (type == undefined || type == 'loadSpiritPlan') loadSpiritPlan();
if (type == undefined || type == 'loadRougeLayerNodeNumPlan') loadRougeLayerNodeNumPlan();
if (type == undefined || type == 'loadRougeLayerNodePlan') loadRougeLayerNodePlan();
if (type == undefined || type == 'loadRougeNode') loadRougeNode();
if (type == undefined || type == 'loadRougeLayerRewardPlan') loadRougeLayerRewardPlan();
if (type == undefined || type == 'loadRougeShopPlan') loadRougeShopPlan();
if (type == undefined || type == 'loadRougeChara') loadRougeChara();
if (type == undefined || type == 'loadRougePassiveCard') loadRougePassiveCard();
if (type == undefined || type == 'loadRougeSkillCard') loadRougeSkillCard();
if (type == undefined || type == 'loadRougeHolyCard') loadRougeHolyCard();
if (type == undefined || type == 'loadRougeCharaCardPlan') loadRougeCharaCardPlan();
if (type == undefined || type == 'loadRougePassiveCardPlan') loadRougePassiveCardPlan();
if (type == undefined || type == 'loadRougeHolyCardPlan') loadRougeHolyCardPlan();
if (type == undefined || type === 'loadRougeChallenge') loadRougeChallenge();
if (type == undefined || type == 'loadRougeChallengePlan') loadRougeChallengePlan();
if (type == undefined || type == 'loadRougeQuestionMarkPlan') loadRougeQuestionMarkPlan();
if (type == undefined || type == 'loadRougeRandomEventPlan') loadRougeRandomEventPlan();
if (type == undefined || type == 'loadRougeEventOption') loadRougeEventOption();
if (type == undefined || type == 'loadRougeOptionGroup') loadRougeOptionGroup();
if (type == undefined || type == 'loadRougePassiveCollect') loadRougePassiveCollect();
if (type == undefined || type == 'loadRougeScoreReward') loadRougeScoreReward();
if (type == undefined || type == 'loadRougeEffect') loadRougeEffect();
if (type == undefined || type == 'loadRougeEffectType') loadRougeEffectType();
if (type == undefined || type == 'loadRougeTech') loadRougeTech();
if (type == undefined || type == 'loadRougeTechCircle') loadRougeTechCircle();
if (type == undefined || type == 'loadRougeTechLevel') loadRougeTechLevel();
console.log('loadDatas type: ', type || 'all');
}