✨ feat(gvg): 占领城池对内政产量的加成

This commit is contained in:
luying
2023-02-17 10:58:06 +08:00
parent 7895c08f16
commit 72a25640aa
6 changed files with 139 additions and 0 deletions
@@ -0,0 +1,25 @@
// GVG城池
import { FILENAME } from '../../consts'
import { readFileAndParse } from '../util'
export interface DicGVGCityAdd {
// 城池类型 1-大城 2-中城 3-小城
cityType: number;
// dic_zyz_GVGResourceBase的type
resourceType: number;
// 联盟币的加成
coinAdd: number;
// 产量加成
outputAdd: number;
}
export const dicGVGCityAdd = new Map<string, DicGVGCityAdd>();
export function loadGVGCityAdd() {
dicGVGCityAdd.clear();
let arr = readFileAndParse(FILENAME.DIC_GVG_CITY_ADD);
arr.forEach(o => {
dicGVGCityAdd.set(`${o.cityType}_${o.resourceType}`, o);
});
arr = undefined;
}