// 藏宝图合成表 import { readJsonFile } from '../util' import { FILENAME } from '../../consts' export interface DicBlueprtCompose { // 品质 readonly quality: number; // 消耗的寻宝币数量 readonly coinNum: number; // 消耗的藏宝图的数量 readonly blueprtNum: number; // 目标品质 readonly targetQuality: number; } const str = readJsonFile(FILENAME.DIC_BLUEPRT_COMPOSE); let arr = JSON.parse(str); export const dicBlueprtCompose = new Map(); arr.forEach(o => { dicBlueprtCompose.set(o.quality, o); });