装备:精炼

This commit is contained in:
luying
2021-07-29 18:01:36 +08:00
parent 365f89acfa
commit 3c4f45bcd0
10 changed files with 71 additions and 79 deletions

View File

@@ -9,13 +9,14 @@ export interface DicRefine {
readonly id: number;
// 精炼等级
readonly level: number;
// 精炼次数
readonly count: number;
// 等级限制
readonly levelLimited: number;
// 提高属性百分比
readonly upPercent: number;
// 材料
readonly material: Array<RewardInter>;
// 成功率
readonly successRate: number;
readonly consume: Array<RewardInter>;
}
export const dicRefine = new Map<number, DicRefine>();
@@ -24,8 +25,8 @@ export function loadRefine() {
let arr = readFileAndParse(FILENAME.DIC_REFINE);
arr.forEach(o => {
o.material = parseGoodStr(o.material)
dicRefine.set(o.level, o);
o.consume = parseGoodStr(o.consume)
dicRefine.set(o.id, o);
});
arr = undefined;