更新纳西妲、莱依菈的天赋数据

This commit is contained in:
yoimiya-kokomi 2022-10-13 01:24:34 +08:00
parent 9d0134f7bb
commit e5a3ccedb5
7 changed files with 237 additions and 243 deletions

View File

@ -5,11 +5,11 @@
"title": "白草净华", "title": "白草净华",
"star": 5, "star": 5,
"elem": "dendro", "elem": "dendro",
"allegiance": "", "allegiance": "须弥城",
"weapon": "catalyst", "weapon": "catalyst",
"birth": "1-1", "birth": "10-27",
"astro": "智慧主座", "astro": "智慧主座",
"desc": "测试角色", "desc": "深居净善宫的笼中之鸟,只能在梦中将世界尽收眼底。",
"cncv": "", "cncv": "",
"jpcv": "", "jpcv": "",
"costume": false, "costume": false,

View File

@ -258,21 +258,21 @@
"unit": "", "unit": "",
"isSame": false, "isSame": false,
"values": [ "values": [
"103.2%攻击 + 206.4%元素精通", "103.2%攻击 + 206.4%精通",
"110.94%攻击 + 221.88%元素精通", "110.94%攻击 + 221.88%精通",
"118.68%攻击 + 237.36%元素精通", "118.68%攻击 + 237.36%精通",
"129%攻击 + 258%元素精通", "129%攻击 + 258%精通",
"136.74%攻击 + 273.48%元素精通", "136.74%攻击 + 273.48%精通",
"144.48%攻击 + 288.96%元素精通", "144.48%攻击 + 288.96%精通",
"154.8%攻击 + 309.6%元素精通", "154.8%攻击 + 309.6%精通",
"165.12%攻击 + 330.24%元素精通", "165.12%攻击 + 330.24%精通",
"175.44%攻击 + 350.88%元素精通", "175.44%攻击 + 350.88%精通",
"185.76%攻击 + 371.52%元素精通", "185.76%攻击 + 371.52%精通",
"196.08%攻击 + 392.16%元素精通", "196.08%攻击 + 392.16%精通",
"206.4%攻击 + 412.8%元素精通", "206.4%攻击 + 412.8%精通",
"219.3%攻击 + 438.6%元素精通", "219.3%攻击 + 438.6%精通",
"232.2%攻击 + 464.4%元素精通", "232.2%攻击 + 464.4%精通",
"245.1%攻击 + 490.2%元素精通" "245.1%攻击 + 490.2%精通"
] ]
}, },
{ {
@ -280,21 +280,21 @@
"unit": "", "unit": "",
"isSame": true, "isSame": true,
"values": [ "values": [
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒", "2.5秒",
"1.9秒" "2.5秒"
] ]
}, },
{ {
@ -302,21 +302,21 @@
"unit": "", "unit": "",
"isSame": true, "isSame": true,
"values": [ "values": [
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒", "25秒",
"20秒" "25秒"
] ]
}, },
{ {
@ -384,21 +384,21 @@
"unit": "1名角色", "unit": "1名角色",
"isSame": false, "isSame": false,
"values": [ "values": [
"11.12%", "14.88%",
"11.95%", "16%",
"12.79%", "17.11%",
"13.9%", "18.6%",
"14.73%", "19.72%",
"15.57%", "20.83%",
"16.68%", "22.32%",
"17.79%", "23.81%",
"18.9%", "25.3%",
"20.02%", "26.78%",
"21.13%", "28.27%",
"22.24%", "29.76%",
"23.63%", "31.62%",
"25.02%", "33.48%",
"26.41%" "35.34%"
] ]
}, },
{ {
@ -406,49 +406,27 @@
"unit": "2名角色", "unit": "2名角色",
"isSame": false, "isSame": false,
"values": [ "values": [
"16.72%", "22.32%",
"17.97%", "23.99%",
"19.23%", "25.67%",
"20.9%", "27.9%",
"22.15%", "29.57%",
"23.41%", "31.25%",
"25.08%", "33.48%",
"26.75%", "35.71%",
"28.42%", "37.94%",
"30.1%", "40.18%",
"31.77%", "42.41%",
"33.44%", "44.64%",
"35.53%", "47.43%",
"37.62%", "50.22%",
"39.71%" "53.01%"
] ]
}, },
{ {
"name": "雷:间隔降低", "name": "雷:间隔降低",
"unit": "1名角色", "unit": "1名角色",
"isSame": false, "isSame": false,
"values": [
"0.17秒",
"0.18秒",
"0.19秒",
"0.21秒",
"0.22秒",
"0.23秒",
"0.25秒",
"0.27秒",
"0.28秒",
"0.3秒",
"0.32秒",
"0.33秒",
"0.35秒",
"0.38秒",
"0.4秒"
]
},
{
"name": "雷:间隔降低",
"unit": "2名角色",
"isSame": false,
"values": [ "values": [
"0.25秒", "0.25秒",
"0.27秒", "0.27秒",
@ -456,37 +434,59 @@
"0.31秒", "0.31秒",
"0.33秒", "0.33秒",
"0.35秒", "0.35秒",
"0.38秒", "0.37秒",
"0.4秒", "0.4秒",
"0.43秒", "0.42秒",
"0.45秒", "0.45秒",
"0.48秒", "0.47秒",
"0.5秒", "0.5秒",
"0.53秒", "0.53秒",
"0.56秒", "0.56秒",
"0.59秒" "0.59秒"
] ]
}, },
{
"name": "雷:间隔降低",
"unit": "2名角色",
"isSame": false,
"values": [
"0.37秒",
"0.4秒",
"0.43秒",
"0.47秒",
"0.49秒",
"0.52秒",
"0.56秒",
"0.6秒",
"0.63秒",
"0.67秒",
"0.71秒",
"0.74秒",
"0.79秒",
"0.84秒",
"0.88秒"
]
},
{ {
"name": "水:持续时间延长", "name": "水:持续时间延长",
"unit": "1名角色", "unit": "1名角色",
"isSame": false, "isSame": false,
"values": [ "values": [
"2.22秒",
"2.39秒",
"2.56秒",
"2.78秒",
"2.95秒",
"3.11秒",
"3.34秒", "3.34秒",
"3.56秒", "3.59秒",
"3.78秒", "3.85秒",
"4秒", "4.18秒",
"4.23秒", "4.43秒",
"4.45秒", "4.68秒",
"4.73秒", "5.02秒",
"5秒", "5.35秒",
"5.28秒" "5.68秒",
"6.02秒",
"6.35秒",
"6.69秒",
"7.11秒",
"7.52秒",
"7.94秒"
] ]
}, },
{ {
@ -494,21 +494,21 @@
"unit": "2名角色", "unit": "2名角色",
"isSame": false, "isSame": false,
"values": [ "values": [
"3.34秒", "5.02秒",
"3.59秒", "5.39秒",
"3.84秒", "5.77秒",
"4.17秒", "6.27秒",
"4.42秒", "6.65秒",
"4.67秒", "7.02秒",
"5.01秒", "7.52秒",
"5.34秒", "8.03秒",
"5.67秒", "8.53秒",
"6.01秒", "9.03秒",
"6.34秒", "9.53秒",
"6.67秒", "10.03秒",
"7.09秒", "10.66秒",
"7.51秒", "11.29秒",
"7.92秒" "11.91秒"
] ]
}, },
{ {
@ -636,8 +636,8 @@
"name": "净善摄受明论", "name": "净善摄受明论",
"desc": [ "desc": [
"施放心景幻成时,摩耶之殿将获得以下效果:", "施放心景幻成时,摩耶之殿将获得以下效果:",
"依据队伍中元素精通最高的角色的元素精通数值的20%,提高领域内当前场上角色的元素精通。", "依据队伍中元素精通最高的角色的元素精通数值的25%,提高领域内当前场上角色的元素精通。",
"通过这种方式至多提升200点元素精通。" "通过这种方式至多提升250点元素精通。"
] ]
}, },
{ {

View File

@ -4,12 +4,12 @@
"abbr": "莱依拉", "abbr": "莱依拉",
"title": "绮思晚星", "title": "绮思晚星",
"star": 4, "star": 4,
"elem": "hydro", "elem": "cryo",
"allegiance": "", "allegiance": "梨多梵谛学院",
"weapon": "sword", "weapon": "sword",
"birth": "1-1", "birth": "12-19",
"astro": "夜莺座", "astro": "夜莺座",
"desc": "测试角色", "desc": "专攻理论星相学的梨多梵谛学院学生。时常梦游,长期缺觉,饱受睡眠问题困扰。",
"cncv": "", "cncv": "",
"jpcv": "", "jpcv": "",
"costume": false, "costume": false,

View File

@ -189,21 +189,21 @@
"unit": "", "unit": "",
"isSame": false, "isSame": false,
"values": [ "values": [
"14.85%", "12.8%",
"15.96%", "13.76%",
"17.08%", "14.72%",
"18.56%", "16%",
"19.67%", "16.96%",
"20.79%", "17.92%",
"22.27%", "19.2%",
"23.76%", "20.48%",
"25.24%", "21.76%",
"26.73%", "23.04%",
"28.21%", "24.32%",
"29.7%", "25.6%",
"31.55%", "27.2%",
"33.41%", "28.8%",
"35.26%" "30.4%"
] ]
}, },
{ {
@ -211,21 +211,21 @@
"unit": "", "unit": "",
"isSame": false, "isSame": false,
"values": [ "values": [
"17.08%", "14.72%",
"18.36%", "15.82%",
"19.64%", "16.93%",
"21.34%", "18.4%",
"22.62%", "19.5%",
"23.91%", "20.61%",
"25.61%", "22.08%",
"27.32%", "23.55%",
"29.03%", "25.02%",
"30.74%", "26.5%",
"32.44%", "27.97%",
"34.15%", "29.44%",
"36.28%", "31.28%",
"38.42%", "33.12%",
"40.55%" "34.96%"
] ]
}, },
{ {
@ -277,21 +277,21 @@
"unit": "", "unit": "",
"isSame": true, "isSame": true,
"values": [ "values": [
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒" "12秒"
] ]
} }
] ]
@ -310,21 +310,21 @@
"unit": "生命值上限", "unit": "生命值上限",
"isSame": false, "isSame": false,
"values": [ "values": [
"7.05%", "4.65%",
"7.58%", "5%",
"8.11%", "5.35%",
"8.81%", "5.81%",
"9.34%", "6.16%",
"9.87%", "6.51%",
"10.57%", "6.97%",
"11.28%", "7.44%",
"11.98%", "7.9%",
"12.69%", "8.37%",
"13.39%", "8.83%",
"14.1%", "9.3%",
"14.98%", "9.88%",
"15.86%", "10.46%",
"16.74%" "11.04%"
] ]
}, },
{ {
@ -354,21 +354,21 @@
"unit": "", "unit": "",
"isSame": true, "isSame": true,
"values": [ "values": [
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒", "12秒",
"15秒" "12秒"
] ]
}, },
{ {
@ -376,21 +376,21 @@
"unit": "", "unit": "",
"isSame": true, "isSame": true,
"values": [ "values": [
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60", "40",
"60" "40"
] ]
} }
] ]

View File

@ -2,8 +2,8 @@ export const details = [{
title: '风轮两立', title: '风轮两立',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e') dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, { }, {
title: '被动E', title: '开Q满被动E',
params: { e: 1 }, params: { e: 1, layer: 5 },
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e') dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, { }, {
title: '靖妖傩舞·首插', title: '靖妖傩舞·首插',

View File

@ -2,10 +2,9 @@ import fs from 'fs'
import cheerio from 'cheerio' import cheerio from 'cheerio'
import fetch from 'node-fetch' import fetch from 'node-fetch'
import { Data } from '../components/index.js' import { Data } from '../components/index.js'
import lodash from "lodash"; import lodash from 'lodash'
import request from "request"; import request from 'request'
const _path = process.cwd()
const artiIdx = { const artiIdx = {
Flower: 1, Flower: 1,
@ -15,14 +14,6 @@ const artiIdx = {
Circlet: 5 Circlet: 5
} }
function getEffect (txt) {
let regRet = /(\d) Piece:/.exec(txt)
if (regRet) {
return [regRet[1], txt.replace(regRet[0], '').trim().replace(/。$/, '')]
}
return []
}
async function getSets (id) { async function getSets (id) {
const url = `https://genshin.honeyhunterworld.com/i_${id}/?lang=CHS` const url = `https://genshin.honeyhunterworld.com/i_${id}/?lang=CHS`
let req = await fetch(url) let req = await fetch(url)
@ -31,6 +22,7 @@ async function getSets (id) {
let ret = {} let ret = {}
if (sTxt && sTxt[1]) { if (sTxt && sTxt[1]) {
// eslint-disable-next-line no-eval
let arrs = eval(sTxt[1]) let arrs = eval(sTxt[1])
lodash.forEach(arrs, (ds) => { lodash.forEach(arrs, (ds) => {
let $ = cheerio.load(ds.join('')) let $ = cheerio.load(ds.join(''))
@ -54,10 +46,10 @@ async function down () {
let txt = await req.text() let txt = await req.text()
let ret = {} let ret = {}
let tmp = {}
let sTxt = /sortable_data.push\((.*)\)/.exec(txt) let sTxt = /sortable_data.push\((.*)\)/.exec(txt)
if (sTxt && sTxt[1]) { if (sTxt && sTxt[1]) {
// eslint-disable-next-line no-eval
let tmp = eval(sTxt[1]) let tmp = eval(sTxt[1])
lodash.forEach(tmp, (ds) => { lodash.forEach(tmp, (ds) => {
let na = cheerio.load(ds[0])('a:last') let na = cheerio.load(ds[0])('a:last')

View File

@ -184,6 +184,8 @@ const CharData = {
let val = lodash.trim($(this).text()) let val = lodash.trim($(this).text())
let v = val.replace(/(生命值上限|最大生命值)/, 'HP') let v = val.replace(/(生命值上限|最大生命值)/, 'HP')
v = v.replace(/(防御力)/, '防御') v = v.replace(/(防御力)/, '防御')
v = v.replace('元素精通', '精通')
v = v.replace('攻击力', '攻击')
values.push(v) values.push(v)
if (i > 0 && values[0] !== val) { if (i > 0 && values[0] !== val) {
isSame = false isSame = false
@ -198,7 +200,7 @@ const CharData = {
values2.push(ur[2]) values2.push(ur[2])
unit = ur[1] unit = ur[1]
} else { } else {
ur = /^(每层)(.*)(攻击力)$/.exec(val) ur = /^(每层)(.*)(攻击力?)$/.exec(val)
if (ur && ur[1] && ur[2] && ur[3]) { if (ur && ur[1] && ur[2] && ur[3]) {
values2.push(ur[2]) values2.push(ur[2])
unit = ur[1] + ' ' + ur[3] unit = ur[1] + ' ' + ur[3]