装备精炼,洗炼,缺少消耗

This commit is contained in:
luying
2020-12-18 13:56:12 +08:00
parent 329d59b6cc
commit b39c9bdc8b
14 changed files with 490 additions and 51 deletions

View File

@@ -13,9 +13,9 @@ export interface DicRandomEffectPool {
// 随机值位置
readonly index: number;
// 随机最小值
readonly min: number;
readonly Min: number;
// 随机最大值
readonly max: number;
readonly Max: number;
}

View File

@@ -0,0 +1,30 @@
// 武将特技表
import { readJsonFile, parseReward } from '../util'
import { FILENAME } from '../../consts'
import { RewardInter } from '../interface';
export interface DicRefine {
// 精炼id
readonly id: number;
// 精炼等级
readonly level: number;
// 提高属性百分比
readonly upPercent: number;
// 材料
readonly material: Array<RewardInter>;
// 成功率
readonly successRate: number;
}
const str = readJsonFile(FILENAME.DIC_REFINE);
let arr = JSON.parse(str);
export const dicRefine = new Map<number, DicRefine>();
arr.forEach(o => {
o.material = parseReward(o.gainvalue)
dicRefine.set(o.id, o);
});