✨ feat(稷下学宫): ff931afe4到7421822f6
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user