✨ feat(通用丹): 增加通用丹功能
https://bantugame.feishu.cn/wiki/wikcnlWkklK1jkQZRHgbQ0nrVNc
This commit is contained in:
14
shared/pubUtils/dictionary/DicGeneralGoods.ts
Normal file
14
shared/pubUtils/dictionary/DicGeneralGoods.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// 礼包奖励表
|
||||
import { readFileAndParse } from '../util';
|
||||
import { FILENAME } from '../../consts';
|
||||
|
||||
export const dicGeneralGoods = new Map<number, number>();
|
||||
export function loadGeneralGoods() {
|
||||
dicGeneralGoods.clear();
|
||||
let arr = readFileAndParse(FILENAME.DIC_GENERAL_GOODS);
|
||||
|
||||
arr.forEach(o => {
|
||||
dicGeneralGoods.set(o.goodId, o.relationGoodId);
|
||||
});
|
||||
arr = undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user