2022-07-30 20:20:10 +00:00
|
|
|
import _Data from '../Data.js'
|
|
|
|
import lodash from 'lodash'
|
2022-06-14 22:07:24 +00:00
|
|
|
|
2022-07-30 20:20:10 +00:00
|
|
|
const _path = process.cwd()
|
2022-06-14 22:07:24 +00:00
|
|
|
|
|
|
|
export const artiIdx = {
|
2022-07-30 20:20:10 +00:00
|
|
|
生之花: 1,
|
|
|
|
死之羽: 2,
|
|
|
|
时之沙: 3,
|
|
|
|
空之杯: 4,
|
|
|
|
理之冠: 5
|
2022-06-14 22:07:24 +00:00
|
|
|
}
|
|
|
|
|
2022-07-30 20:20:10 +00:00
|
|
|
let relis = _Data.readJSON(`${_path}/plugins/miao-plugin/resources/meta/reliquaries/`, 'data.json') || {}
|
|
|
|
let setMap = {}
|
2022-06-14 22:07:24 +00:00
|
|
|
|
|
|
|
lodash.forEach(relis, (ds) => {
|
|
|
|
if (ds.sets) {
|
|
|
|
lodash.forEach(ds.sets, (tmp) => {
|
|
|
|
if (tmp.name) {
|
2022-07-30 20:20:10 +00:00
|
|
|
setMap[tmp.name] = ds.name
|
2022-06-14 22:07:24 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
2022-07-30 20:20:10 +00:00
|
|
|
export const artiSetMap = setMap
|
2022-06-14 22:07:24 +00:00
|
|
|
|
|
|
|
export const attrMap = {
|
2022-07-30 20:20:10 +00:00
|
|
|
HP: '小生命',
|
|
|
|
HP_PERCENT: '大生命',
|
|
|
|
ATTACK: '小攻击',
|
|
|
|
ATTACK_PERCENT: '大攻击',
|
|
|
|
DEFENSE: '小防御',
|
|
|
|
DEFENSE_PERCENT: '大防御',
|
|
|
|
FIRE_ADD_HURT: '火元素伤害加成',
|
|
|
|
ICE_ADD_HURT: '冰元素伤害加成',
|
|
|
|
ROCK_ADD_HURT: '岩元素伤害加成',
|
|
|
|
ELEC_ADD_HURT: '雷元素伤害加成',
|
|
|
|
WIND_ADD_HURT: '风元素伤害加成',
|
|
|
|
WATER_ADD_HURT: '水元素伤害加成',
|
|
|
|
PHYSICAL_ADD_HURT: '物理伤害加成',
|
|
|
|
HEAL_ADD: '治疗加成',
|
|
|
|
ELEMENT_MASTERY: '元素精通',
|
|
|
|
CRITICAL: '暴击率',
|
|
|
|
CRITICAL_HURT: '暴击伤害',
|
|
|
|
CHARGE_EFFICIENCY: '充能效率'
|
|
|
|
}
|