字典:后台重载bug

This commit is contained in:
luying
2021-10-15 18:16:05 +08:00
parent 70a3d719b0
commit abce31b539
73 changed files with 138 additions and 57 deletions
+2
View File
@@ -12,6 +12,8 @@ export interface DicApBuy {
export const dicApMaxBuyTimes = { max: 0 };
export const dicApBuy = new Map<number, RewardInter[]>();
export function loadApBuy() {
dicApMaxBuyTimes.max = 0;
dicApBuy.clear();
let arr = readFileAndParse(FILENAME.DIC_AP_BUY_COST);
arr.forEach(o => {
o.cost = parseGoodStr(o.cost);