// 亲密度等级表 import { readJsonFile } from '../util' import { FILENAME } from '../../consts' export interface DicRoleFriendLv { // id readonly id: number; // 亲密度等级 readonly lv: number; // 亲密度值 readonly value: number; // 寻宝加成 readonly comBattleAdd: number; } const str = readJsonFile(FILENAME.DIC_ROLE_FRIEND_LEVEL); let arr = JSON.parse(str); export const dicRoleFriendLv = new Map(); arr.forEach(o => { dicRoleFriendLv.set(o.lv, o); }); arr = undefined;