🐞 fix(gvg): 修复gvg显示问题

This commit is contained in:
luying
2023-02-22 21:04:21 +08:00
parent 1190d64d24
commit c9e9184567
6 changed files with 21 additions and 11 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
// GVG城池
import { FILENAME } from '../../consts'
import { RewardInter } from '../interface';
import { readFileAndParse } from '../util'
import { parseGoodStr, readFileAndParse } from '../util'
export interface DicGVGCityAdd {
// 城池类型 1-大城 2-中城 3-小城
@@ -22,6 +22,7 @@ export function loadGVGCityAdd() {
let arr = readFileAndParse(FILENAME.DIC_GVG_CITY_ADD);
arr.forEach(o => {
o.occupyReward = parseGoodStr(o.occupyReward);
dicGVGCityAdd.set(o.cityType, o);
});
arr = undefined;