mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
面板更新:武器精炼字段fix
This commit is contained in:
parent
9b90010daa
commit
16728cc2ff
@ -111,7 +111,7 @@ let Data = {
|
|||||||
};
|
};
|
||||||
lodash.forEach(attrKey, (cfg, key) => {
|
lodash.forEach(attrKey, (cfg, key) => {
|
||||||
if (!lodash.isObject(cfg)) {
|
if (!lodash.isObject(cfg)) {
|
||||||
cfg = {src: cfg};
|
cfg = { src: cfg };
|
||||||
}
|
}
|
||||||
let val = data[cfg.src] || 0;
|
let val = data[cfg.src] || 0;
|
||||||
if (cfg.pct) {
|
if (cfg.pct) {
|
||||||
@ -156,8 +156,8 @@ let Data = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let setName = meta[flat.setNameTextMapHash] || "";
|
let setName = meta[flat.setNameTextMapHash] || "";
|
||||||
let setCfg = relisMap[setName] || {name: "", sets: {}},
|
let setCfg = relisMap[setName] || { name: "", sets: {} },
|
||||||
artiCfg = setCfg.sets[`arti${idx}`] || {name: ""};
|
artiCfg = setCfg.sets[`arti${idx}`] || { name: "" };
|
||||||
|
|
||||||
ret[`arti${idx}`] = {
|
ret[`arti${idx}`] = {
|
||||||
name: artiCfg.name,
|
name: artiCfg.name,
|
||||||
@ -182,20 +182,20 @@ let Data = {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
let {weapon, flat} = ds;
|
let { weapon, flat } = ds;
|
||||||
return {
|
return {
|
||||||
name: meta[flat.nameTextMapHash],
|
name: meta[flat.nameTextMapHash],
|
||||||
star: flat.rankLevel,
|
star: flat.rankLevel,
|
||||||
leve: weapon.level,
|
leve: weapon.level,
|
||||||
promote: weapon.promoteLevel,
|
promote: weapon.promoteLevel,
|
||||||
affix: lodash.values(weapon.affixMap)[0]
|
affix: (lodash.values(weapon.affixMap)[0] || 0) + 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getTalent(charid, ds = {}, ext = {}) {
|
getTalent(charid, ds = {}, ext = {}) {
|
||||||
let cm = cmeta[charid] || {};
|
let cm = cmeta[charid] || {};
|
||||||
let cn = cm.Skills || {}, ce = cm.ProudMap;
|
let cn = cm.Skills || {}, ce = cm.ProudMap;
|
||||||
let idx = 1;
|
let idx = 1;
|
||||||
let idxMap = {1: 'a', 2: 'e', 3: 'q', 'a': 'a', 's': 'e', 'e': 'q'};
|
let idxMap = { 1: 'a', 2: 'e', 3: 'q', 'a': 'a', 's': 'e', 'e': 'q' };
|
||||||
lodash.forEach(cn, (n, id) => {
|
lodash.forEach(cn, (n, id) => {
|
||||||
let nRet = /skill_(\w)/.exec(n.toLowerCase());
|
let nRet = /skill_(\w)/.exec(n.toLowerCase());
|
||||||
idxMap[id] = nRet && nRet[1] ? idxMap[nRet[1]] : idxMap[idx];
|
idxMap[id] = nRet && nRet[1] ? idxMap[nRet[1]] : idxMap[idx];
|
||||||
@ -223,7 +223,7 @@ let Data = {
|
|||||||
},
|
},
|
||||||
dataFix(ret) {
|
dataFix(ret) {
|
||||||
|
|
||||||
let {attr, id} = ret;
|
let { attr, id } = ret;
|
||||||
id = id * 1;
|
id = id * 1;
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case 10000052:
|
case 10000052:
|
||||||
|
Loading…
Reference in New Issue
Block a user