fix #753 , 旅行者评分规则错误

This commit is contained in:
1umine 2024-07-04 18:50:36 +08:00
parent 02ead93775
commit 07ca630736
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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, {