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