19 lines
445 B
TypeScript
19 lines
445 B
TypeScript
// 强化消耗表
|
|
import {readJsonFile} from '../util'
|
|
import { FILENAME } from '../../consts'
|
|
|
|
export interface DicStrengthenCost {
|
|
// 等级
|
|
readonly level: number;
|
|
// 消耗铜钱
|
|
readonly costCoin: number;
|
|
}
|
|
|
|
const str = readJsonFile(FILENAME.DIC_STRENGTHEN_COST);
|
|
let arr = JSON.parse(str);
|
|
|
|
export const dicStrengthenCost = new Map<number, number>();
|
|
|
|
arr.forEach(o => {
|
|
dicStrengthenCost.set(o.level, o.costCoin);
|
|
}); |