强化装备栏
This commit is contained in:
19
shared/pubUtils/dictionary/DicStrengthenCost.ts
Normal file
19
shared/pubUtils/dictionary/DicStrengthenCost.ts
Normal 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);
|
||||
});
|
||||
Reference in New Issue
Block a user