mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 14:38:30 +00:00
fix #753 , 旅行者评分规则错误
This commit is contained in:
parent
02ead93775
commit
07ca630736
@ -64,7 +64,8 @@ let CharCfg = {
|
||||
},
|
||||
getArtisCfg (char) {
|
||||
if (char.game !== 'sr') {
|
||||
let charName = char.isTraveler ? `旅行者/${char.elem}` : char.name
|
||||
// 评分规则在 旅行者 下而非 旅行者/elem 下
|
||||
let charName = char.isTraveler ? `旅行者` : char.name
|
||||
return cfgMapGs.char[charName]?.artis || false
|
||||
} else {
|
||||
return cfgMapSr.char[char.name]?.artis || false
|
||||
|
@ -9,6 +9,15 @@ let meta = Meta.create('gs', 'char')
|
||||
meta.addData(data)
|
||||
meta.addAlias(alias)
|
||||
|
||||
// 导入主角天赋对应元素,以据此判断主角元素
|
||||
let travelers = ["荧", "空", "旅行者"]
|
||||
travelers.forEach(name => {
|
||||
meta.addDataItem(
|
||||
meta.getId(name),
|
||||
Data.readJSON(`resources/meta-gs/character/${name}/data.json`, 'miao')
|
||||
)
|
||||
})
|
||||
|
||||
// 添加自定义角色
|
||||
lodash.forEach(extraChars, (alias, char) => {
|
||||
meta.addDataItem(char, {
|
||||
|
Loading…
Reference in New Issue
Block a user