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

View File

@@ -0,0 +1,32 @@
/**
* 角色卡奖励卡池方案
*/
import { FILENAME } from "../consts";
import { readFileAndParse } from "./util";
export interface DicRougeCharaCardPlan {
readonly id: number;
readonly planId: number; // 方案编号
readonly cardId: number; // 角色卡id
readonly weight: number; // 权重
}
export const dicRougeCharaCardPlan = new Map<number, DicRougeCharaCardPlan[]>();
export function loadRougeCharaCardPlan() {
dicRougeCharaCardPlan.clear();
let arr = readFileAndParse(FILENAME.DIC_ROUGE_CHARA_CARD_PLAN);
arr.forEach(o => {
if (!dicRougeCharaCardPlan.has(o.planId)) {
dicRougeCharaCardPlan.set(o.planId, []);
}
dicRougeCharaCardPlan.get(o.planId).push(o);
});
arr = undefined;
}