✨ 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
+32
View File
@@ -0,0 +1,32 @@
/**
* 圣物卡奖励卡池方案
*/
import { FILENAME } from "../consts";
import { readFileAndParse } from "./util";
export interface DicRougeHolyCardPlan {
readonly id: number;
readonly planId: number; // 方案编号
readonly cardId: number; // 角色卡id
readonly weight: number; // 权重
}
export const dicRougeHolyCardPlan = new Map<number, DicRougeHolyCardPlan[]>();
export function loadRougeHolyCardPlan() {
dicRougeHolyCardPlan.clear();
let arr = readFileAndParse(FILENAME.DIC_ROUGE_HOLY_CARD_PLAN);
arr.forEach(o => {
if (!dicRougeHolyCardPlan.has(o.planId)) {
dicRougeHolyCardPlan.set(o.planId, []);
}
dicRougeHolyCardPlan.get(o.planId).push(o);
});
arr = undefined;
}