字典:后台重载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
@@ -15,7 +15,8 @@ export interface DicGachaContent {
export const dicGachaContent = new Map<number, DicGachaContent>(); // id => dic
export const dicGachaContentHero = new Map<number, number>(); // quality => dic
export function loadGachaContent() {
dicGachaContent.clear();
dicGachaContentHero.clear();
let arr = readFileAndParse(FILENAME.DIC_GACHA_CONTENT);
arr.forEach(o => {