✨ 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
@@ -0,0 +1,27 @@
/**
* 特性卡
*/
import { parseGoodStr, readFileAndParse } from '../util'
import { FILENAME } from '../../consts'
import { RewardInter } from '../interface';
export interface DicRougePassiveCollect {
readonly id: number;
readonly num: number; // 收集数量
readonly collectReward: RewardInter[]; // 奖励
}
export const dicRougePassiveCollect = new Map<number, DicRougePassiveCollect>();
export function loadRougePassiveCollect() {
dicRougePassiveCollect.clear();
let arr = readFileAndParse(FILENAME.DIC_ROUGE_PASSIVE_COLLECT);
arr.forEach(o => {
o.collectReward = parseGoodStr(o.reward);
dicRougePassiveCollect.set(o.id, o);
});
arr = undefined;
}