强化装备栏

This commit is contained in:
luying
2020-12-17 21:37:05 +08:00
parent b3ec0c85da
commit d2097a4264
9 changed files with 133 additions and 18 deletions

View File

@@ -0,0 +1,19 @@
// 强化消耗表
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);
});