装备:分解

This commit is contained in:
luying
2022-02-17 14:26:07 +08:00
parent 2bfc27356f
commit ee32f1cdee
5 changed files with 76 additions and 75 deletions

View File

@@ -1,5 +1,5 @@
// 武将特技表
import { readFileAndParse, decodeArrayListStr } from '../util'
import { readFileAndParse, decodeArrayListStr, parseNumberList } from '../util'
import { FILENAME } from '../../consts'
export interface DicRandomEffectPool {
@@ -30,7 +30,8 @@ export function loadRandomEffectPool() {
let arr = readFileAndParse(FILENAME.DIC_RANDOM_EFFECT_POOL);
arr.forEach(o => {
o.rate = parseRate(o.count)
o.rate = parseRate(o.count);
o.gainValueArr = parseNumberList(o.gainvalue);
dicRandomEffectPool.set(o.id, o);
});
arr = undefined;