✨ feat(稷下学宫): 修改每周学分进度奖励
This commit is contained in:
@@ -159,20 +159,19 @@ import { dicRougeChallenge, loadRougeChallenge } from "./dictionary/DicRougeChal
|
||||
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 { dicRougeScoreRewardByLv, loadRougeScoreReward } from "./dictionary/DicRougeScoreReward";
|
||||
import { dicRougeEffect, loadRougeEffect } from "./dictionary/DicRougeEffect";
|
||||
import { dicRougeEffectType, loadRougeEffectType } from "./dictionary/DicRougeEffectType";
|
||||
import { dicSpiritPlan, loadSpiritPlan } from "./dictionary/DicSpiritPlan";
|
||||
import { dicRougePassiveWeight, loadRougePassiveWeight } from "./dictionary/DicRougePassiveWeight";
|
||||
import { dicRougeCharaCardPlan, loadRougeCharaCardPlan } from "./dictionary/DicRougeCharaCardPlan";
|
||||
import { dicRougeHolyCardPlan, loadRougeHolyCardPlan } from "./dictionary/DicRougeHolyCardPlan";
|
||||
|
||||
export const gameData = {
|
||||
daily: dicDaily,
|
||||
@@ -423,8 +422,7 @@ export const gameData = {
|
||||
rougeEventOption: dicRougeEventOption,
|
||||
rougeOptionGroup: dicRougeOptionGroup,
|
||||
rougePassiceCollect: dicRougePassiveCollect,
|
||||
rougeScoreReward: dicRougeScoreReward,
|
||||
rougeScoreNum: dicRougeScoreNum,
|
||||
rougeScoreRewardByLv: dicRougeScoreRewardByLv,
|
||||
rougeEffect: dicRougeEffect,
|
||||
rougeEffectType: dicRougeEffectType,
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* 角色卡奖励卡池方案
|
||||
*/
|
||||
|
||||
import { FILENAME } from "../consts";
|
||||
import { readFileAndParse } from "./util";
|
||||
import { FILENAME } from "../../consts";
|
||||
import { readFileAndParse } from "../util";
|
||||
|
||||
export interface DicRougeCharaCardPlan {
|
||||
readonly id: number;
|
||||
@@ -2,8 +2,10 @@
|
||||
* 圣物卡奖励卡池方案
|
||||
*/
|
||||
|
||||
import { FILENAME } from "../consts";
|
||||
import { readFileAndParse } from "./util";
|
||||
import { FILENAME } from "../../consts";
|
||||
import { readFileAndParse } from "../util";
|
||||
|
||||
|
||||
|
||||
|
||||
export interface DicRougeHolyCardPlan {
|
||||
@@ -10,18 +10,19 @@ export interface DicRougeScoreReward {
|
||||
readonly index: number;
|
||||
readonly score: number; // 积分
|
||||
readonly reward: RewardInter[]; // 图鉴收集奖励(同Group只领取一次奖励)
|
||||
readonly level: number; // 难度等级
|
||||
}
|
||||
export const dicRougeScoreReward = new Map<number, DicRougeScoreReward>();
|
||||
export const dicRougeScoreNum = { num: 0 }
|
||||
export const dicRougeScoreRewardByLv = new Map<number, Map<number, DicRougeScoreReward>>();
|
||||
export function loadRougeScoreReward() {
|
||||
dicRougeScoreReward.clear();
|
||||
dicRougeScoreRewardByLv.clear();
|
||||
|
||||
let arr = readFileAndParse(FILENAME.DIC_ROUGE_SCORE_REWARD);
|
||||
|
||||
arr.forEach(o => {
|
||||
o.reward = parseGoodStr(o.reward);
|
||||
dicRougeScoreReward.set(o.index, o);
|
||||
dicRougeScoreNum.num++;
|
||||
|
||||
if (!dicRougeScoreRewardByLv.has(o.level)) dicRougeScoreRewardByLv.set(o.level, new Map);
|
||||
dicRougeScoreRewardByLv.get(o.level).set(o.index, o);
|
||||
});
|
||||
arr = undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user