装备:精炼
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { readFileAndParse, parseGoodStr } from '../util'
|
||||
import { readFileAndParse } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicQuenchQuality {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { ItemModel } from '../db/Item';
|
||||
import { EquipModel, RandSe, Holes, RandMain } from './../db/Equip';
|
||||
import { BagInter, EquipInter } from './interface';
|
||||
import { gameData, getQuenchByQualityAndGrade, getQuenchGradeByValue } from './data';
|
||||
import { RANDOM_SE_COUNT, FIX_ATTRIBUTES_RAN, ITID, CURRENCY_BY_TYPE, CURRENCY_TYPE, ROLE_SELECT, FIGURE_UNLOCK_CONDITION, CONSUME_TYPE, HERO_SYSTEM_TYPE, TASK_TYPE } from '../consts';
|
||||
import { RANDOM_SE_COUNT, ITID, CURRENCY_BY_TYPE, CURRENCY_TYPE, ROLE_SELECT, FIGURE_UNLOCK_CONDITION, CONSUME_TYPE, HERO_SYSTEM_TYPE, TASK_TYPE } from '../consts';
|
||||
import { getRandValueByMinMax, getRandEelm } from './util';
|
||||
|
||||
import { findWhere } from 'underscore';
|
||||
|
||||
Reference in New Issue
Block a user