// 军团诸侯混战城池表 import { readJsonFile, parseNumberList } from '../util' import { FILENAME } from '../../consts' export interface DicCityActivity { // 城池id readonly id: number; // 城池类型 readonly type: number; // 下一次自动宣战城池 readonly nextCity: number; // 难度系数 readonly difficult: number; // 相应的出兵表 readonly warid: number; // 城门血条 readonly hp: number; } const str = readJsonFile(FILENAME.DIC_CITY_ACTIVITY); let arr = JSON.parse(str); export const dicCityActivity = new Map(); arr.forEach(o => { dicCityActivity.set( o.id, o ); }); arr = undefined;