原神4.3相关数据与资源更新

This commit is contained in:
Kokomi 2023-12-20 02:56:18 +08:00
parent 658e837b8c
commit 52ff7a5204
11 changed files with 199 additions and 170 deletions

View File

@ -94,7 +94,7 @@ async function saveImages (e, name, imageMessages) {
let path = resPath + pathSuffix let path = resPath + pathSuffix
if (!fs.existsSync(path)) { if (!fs.existsSync(path)) {
Data.createDir("resources/" + pathSuffix, 'miao') Data.createDir('resources/' + pathSuffix, 'miao')
} }
let senderName = lodash.truncate(e.sender.card, { length: 8 }) let senderName = lodash.truncate(e.sender.card, { length: 8 })
let imgCount = 0 let imgCount = 0
@ -113,8 +113,8 @@ async function saveImages (e, name, imageMessages) {
e.reply([segment.at(e.user_id, senderName), '添加失败:图片太大了。']) e.reply([segment.at(e.user_id, senderName), '添加失败:图片太大了。'])
return true return true
} }
let fileName = "" let fileName = ''
let fileType = "png" let fileType = 'png'
if (val.file) { if (val.file) {
fileName = val.file.substring(0, val.file.lastIndexOf('.')) fileName = val.file.substring(0, val.file.lastIndexOf('.'))
fileType = val.file.substring(val.file.lastIndexOf('.') + 1) fileType = val.file.substring(val.file.lastIndexOf('.') + 1)
@ -122,7 +122,15 @@ async function saveImages (e, name, imageMessages) {
if (response.headers.get('content-type') === 'image/gif') { if (response.headers.get('content-type') === 'image/gif') {
fileType = 'gif' fileType = 'gif'
} }
if (isProfile) fileType = 'webp'
if (isProfile) {
// 面板图默认webp
fileType = 'webp'
} else if (!'jpg,jpeg,png,webp'.split(',').includes(fileType)) {
// 角色图像默认jpg
fileType = 'jpg'
}
let imgPath = `${path}/${fileName}.${fileType}` let imgPath = `${path}/${fileName}.${fileType}`
const streamPipeline = promisify(pipeline) const streamPipeline = promisify(pipeline)
await streamPipeline(response.body, fs.createWriteStream(imgPath)) await streamPipeline(response.body, fs.createWriteStream(imgPath))

View File

@ -1346,7 +1346,11 @@
"star": 4, "star": 4,
"elem": "pyro", "elem": "pyro",
"weapon": "polearm", "weapon": "polearm",
"talentId": {}, "talentId": {
"10901": "a",
"10902": "e",
"10905": "q"
},
"talentCons": { "talentCons": {
"a": 0, "a": 0,
"e": 3, "e": 3,
@ -1361,7 +1365,11 @@
"star": 5, "star": 5,
"elem": "geo", "elem": "geo",
"weapon": "claymore", "weapon": "claymore",
"talentId": {}, "talentId": {
"10911": "a",
"10912": "e",
"10915": "q"
},
"talentCons": { "talentCons": {
"a": 0, "a": 0,
"e": 3, "e": 3,

View File

@ -2,16 +2,16 @@
"id": 10000090, "id": 10000090,
"name": "夏沃蕾", "name": "夏沃蕾",
"abbr": "夏沃蕾", "abbr": "夏沃蕾",
"title": "", "title": "明律决罚",
"star": 4, "star": 4,
"elem": "pyro", "elem": "pyro",
"allegiance": "", "allegiance": "特巡队",
"weapon": "polearm", "weapon": "polearm",
"birth": "1-1", "birth": "1-10",
"astro": "剑铳座", "astro": "剑铳座",
"desc": "测试角色", "desc": "时刻恪守着心中「正义」的特巡队队长,手中的铳枪只会指向负罪之人。",
"cncv": "", "cncv": "潘丹妮",
"jpcv": "", "jpcv": "下地紫野",
"costume": false, "costume": false,
"ver": 1, "ver": 1,
"baseAttr": { "baseAttr": {
@ -23,7 +23,11 @@
"key": "hpPct", "key": "hpPct",
"value": 24 "value": 24
}, },
"talentId": {}, "talentId": {
"10901": "a",
"10902": "e",
"10905": "q"
},
"talentCons": { "talentCons": {
"a": 0, "a": 0,
"e": 3, "e": 3,
@ -234,11 +238,11 @@
"name": "近迫式急促拦射", "name": "近迫式急促拦射",
"desc": [ "desc": [
"夏沃蕾将铳枪快速抵肩,射击敌人,造成火元素范围伤害。", "夏沃蕾将铳枪快速抵肩,射击敌人,造成火元素范围伤害。",
"夏沃蕾进行射击后的一段时间内,将持续为当前场上角色恢复生命值,回复量受益于夏沃蕾的生命值上限。",
"长按时将以不同的方式施放。", "长按时将以不同的方式施放。",
"<h3>长按</h3>", "<h3>长按</h3>",
"进入瞄准状态,锁定准星内的一名敌人,进行更为精确的拦截射击;若夏沃蕾拥有「超量装药弹头」,则转为发射「超量装药弹头」,造成范围更大、伤害更高的火元素伤害。", "进入瞄准状态,锁定准星内的一名敌人,进行更为精确的拦截射击;若夏沃蕾拥有「超量装药弹头」,则转为发射「超量装药弹头」,造成范围更大、伤害更高的火元素伤害。",
"夏沃蕾将在队伍中附近的角色触发超载反应时获得1枚「超量装药弹头」。至多同时持有1枚「超量装药弹头」。", "夏沃蕾将在队伍中附近的角色触发超载反应时获得1枚「超量装药弹头」。至多同时持有1枚「超量装药弹头」。",
"夏沃蕾进行射击后的一段时间内,将持续为当前场上角色恢复生命值,回复量受益于夏沃蕾的生命值上限。",
"<h3>始基力:荒性</h3>", "<h3>始基力:荒性</h3>",
"每隔一段时间,夏沃蕾的「近迫式急促拦射」命中时,将唤出流涌之刃,造成具有荒性的火元素伤害。", "每隔一段时间,夏沃蕾的「近迫式急促拦射」命中时,将唤出流涌之刃,造成具有荒性的火元素伤害。",
"<i>「其实训练条令里只有『拦射』这个术语,但有本小说的主角认为,包含专业词汇的招式名能让自己人更有干劲,让敌人输在气势的起跑线上…我觉得很有道理,就改了改条令!」</i>" "<i>「其实训练条令里只有『拦射』这个术语,但有本小说的主角认为,包含专业词汇的招式名能让自己人更有干劲,让敌人输在气势的起跑线上…我觉得很有道理,就改了改条令!」</i>"
@ -1003,7 +1007,7 @@
"1": { "1": {
"name": "稳固阵线的魄力", "name": "稳固阵线的魄力",
"desc": [ "desc": [
"处于「协同战法」状态下的角色不包括夏沃蕾自己触发超载反应时将恢复6点元素能量。此效果每10秒至多触发一次。", "当前场上处于「协同战法」状态下的角色不包括夏沃蕾自己触发超载反应时将恢复6点元素能量。此效果每10秒至多触发一次。",
"需要解锁固有天赋「尖兵协同战法」。" "需要解锁固有天赋「尖兵协同战法」。"
] ]
}, },
@ -1023,7 +1027,7 @@
"4": { "4": {
"name": "多重速射的秘诀", "name": "多重速射的秘诀",
"desc": [ "desc": [
"施放圆阵掷弹爆轰术后,夏沃蕾长按施放近迫式急促拦射的冷却时间降低100%该效果至多持续6秒将在长按施放近迫式急促拦射2次后移除。" "施放圆阵掷弹爆轰术后,夏沃蕾长按施放近迫式急促拦射不会进入冷却该效果至多持续6秒将在长按施放近迫式急促拦射2次后移除。"
] ]
}, },
"5": { "5": {
@ -1036,8 +1040,8 @@
"6": { "6": {
"name": "终结罪恶的追缉", "name": "终结罪恶的追缉",
"desc": [ "desc": [
"近迫式急促拦射的治疗效果持续12秒后将为队伍中附近的所有角色恢复生命值回复量相当于夏沃蕾生命值上限的10%。", "近迫式急促拦射的治疗效果持续12秒后将为队伍中附近的所有角色恢复一次生命值回复量相当于夏沃蕾生命值上限的10%。",
"队伍中的角色受到「近迫式急促拦射」的治疗后获得20%火元素伤害加成与雷元素伤害加成持续8秒此效果至多叠加3层。" "队伍中的角色受到「近迫式急促拦射」的治疗后获得20%火元素伤害加成与雷元素伤害加成持续8秒此效果至多叠加3层,每层独立计算持续时间。"
] ]
} }
}, },
@ -1053,7 +1057,8 @@
"name": "尖兵协同战法", "name": "尖兵协同战法",
"desc": [ "desc": [
"队伍中所有角色的元素类型均为火元素与雷元素,并且至少有一名火元素角色、一名雷元素角色时:", "队伍中所有角色的元素类型均为火元素与雷元素,并且至少有一名火元素角色、一名雷元素角色时:",
"夏沃蕾将为队伍中附近的角色施加「协同战法」角色触发超载反应后受本次反应影响的敌人的火元素与雷元素抗性降低40%持续6秒。" "夏沃蕾将为队伍中附近的角色施加「协同战法」角色触发超载反应后受本次反应影响的敌人的火元素与雷元素抗性降低40%持续6秒。",
"当队伍中角色的元素类型不满足本固有天赋的条件时,将移除已有的协同战法效果。"
] ]
}, },
{ {

View File

@ -2,16 +2,16 @@
"id": 10000091, "id": 10000091,
"name": "娜维娅", "name": "娜维娅",
"abbr": "娜维娅", "abbr": "娜维娅",
"title": "", "title": "明花蔓舵",
"star": 5, "star": 5,
"elem": "geo", "elem": "geo",
"allegiance": "", "allegiance": "刺玫会",
"weapon": "claymore", "weapon": "claymore",
"birth": "1-1", "birth": "8-16",
"astro": "野蔷薇座", "astro": "野蔷薇座",
"desc": "测试角色", "desc": "刺玫会现任会长,一位可爱、尽责的好老板。",
"cncv": "", "cncv": "小敢",
"jpcv": "", "jpcv": "丰崎爱生",
"costume": false, "costume": false,
"ver": 1, "ver": 1,
"baseAttr": { "baseAttr": {
@ -23,7 +23,11 @@
"key": "cdmg", "key": "cdmg",
"value": 38.4 "value": 38.4
}, },
"talentId": {}, "talentId": {
"10911": "a",
"10912": "e",
"10915": "q"
},
"talentCons": { "talentCons": {
"a": 0, "a": 0,
"e": 3, "e": 3,
@ -295,21 +299,21 @@
"unit": "", "unit": "",
"isSame": false, "isSame": false,
"values": [ "values": [
"307.2%", "394.8%",
"330.24%", "424.41%",
"353.28%", "454.02%",
"384%", "493.5%",
"407.04%", "523.11%",
"430.08%", "552.72%",
"460.8%", "592.2%",
"491.52%", "631.68%",
"522.24%", "671.16%",
"552.96%", "710.64%",
"583.68%", "750.12%",
"614.4%", "789.6%",
"652.8%", "838.95%",
"691.2%", "888.3%",
"729.6%" "937.65%"
] ]
}, },
{ {
@ -339,21 +343,21 @@
"unit": "", "unit": "",
"isSame": false, "isSame": false,
"values": [ "values": [
"33.6%", "36%",
"36.12%", "38.7%",
"38.64%", "41.4%",
"42%", "45%",
"44.52%", "47.7%",
"47.04%",
"50.4%", "50.4%",
"53.76%", "54%",
"57.12%", "57.6%",
"60.48%", "61.2%",
"63.84%", "64.8%",
"67.2%", "68.4%",
"71.4%", "72%",
"75.6%", "76.5%",
"79.8%" "81%",
"85.5%"
] ]
}, },
{ {
@ -406,8 +410,8 @@
"id": 9139, "id": 9139,
"name": "如霰澄天的鸣礼", "name": "如霰澄天的鸣礼",
"desc": [ "desc": [
"以刺玫会会长之令,召唤华丽的「金花礼炮」,猛烈击前方的敌人,造成岩元素范围伤害,并在接下来的一段时间内持续进行「支援炮击」,间歇性造成岩元素伤害。", "以刺玫会会长之令,召唤华丽的「金花礼炮」,猛烈击前方的敌人,造成岩元素范围伤害,并在接下来的一段时间内持续进行「支援炮击」,间歇性对附近的敌人造成岩元素伤害。",
"「金花礼炮」的炮击命中敌人时将为娜维娅积攒1枚「裂晶弹片」此效果每2.4秒至多触发一次。", "炮击命中敌人时将为娜维娅积攒1枚「裂晶弹片」此效果每2.4秒至多触发一次。",
"<i>「刺玫会的礼炮,会为了预先庆祝谈判成功而在谈判前稍稍开火,别误会,一点都没有威吓的意思哦。」</i>" "<i>「刺玫会的礼炮,会为了预先庆祝谈判成功而在谈判前稍稍开火,别误会,一点都没有威吓的意思哦。」</i>"
], ],
"tables": [ "tables": [
@ -416,21 +420,21 @@
"unit": "", "unit": "",
"isSame": false, "isSame": false,
"values": [ "values": [
"76%", "75.2%",
"81.7%", "80.84%",
"87.4%", "86.48%",
"95%", "94%",
"100.7%", "99.64%",
"106.4%", "105.28%",
"114%", "112.8%",
"121.6%", "120.32%",
"129.2%", "127.84%",
"136.8%", "135.36%",
"144.4%", "142.88%",
"152%", "150.4%",
"161.5%", "159.8%",
"171%", "169.2%",
"180.5%" "178.6%"
] ]
}, },
{ {
@ -438,21 +442,21 @@
"unit": "", "unit": "",
"isSame": false, "isSame": false,
"values": [ "values": [
"48.4%", "43.15%",
"52.03%", "46.39%",
"55.66%", "49.62%",
"60.5%", "53.94%",
"64.13%", "57.17%",
"67.76%", "60.41%",
"72.6%", "64.72%",
"77.44%", "69.04%",
"82.28%", "73.36%",
"87.12%", "77.67%",
"91.96%", "81.99%",
"96.8%", "86.3%",
"102.85%", "91.69%",
"108.9%", "97.09%",
"114.95%" "102.48%"
] ]
}, },
{ {
@ -834,74 +838,74 @@
}, },
"e": { "e": {
"玫瑰晶弹基础伤害": [ "玫瑰晶弹基础伤害": [
307.2, 394.8,
330.24, 424.41,
353.28, 454.02,
384, 493.5,
407.04, 523.11,
430.08, 552.72,
460.8, 592.2,
491.52, 631.68,
522.24, 671.16,
552.96, 710.64,
583.68, 750.12,
614.4, 789.6,
652.8, 838.95,
691.2, 888.3,
729.6 937.65
], ],
"流涌之刃伤害": [ "流涌之刃伤害": [
33.6, 36,
36.12, 38.7,
38.64, 41.4,
42, 45,
44.52, 47.7,
47.04,
50.4, 50.4,
53.76, 54,
57.12, 57.6,
60.48, 61.2,
63.84, 64.8,
67.2, 68.4,
71.4, 72,
75.6, 76.5,
79.8 81,
85.5
] ]
}, },
"q": { "q": {
"技能伤害": [ "技能伤害": [
76, 75.2,
81.7, 80.84,
87.4, 86.48,
95, 94,
100.7, 99.64,
106.4, 105.28,
114, 112.8,
121.6, 120.32,
129.2, 127.84,
136.8, 135.36,
144.4, 142.88,
152, 150.4,
161.5, 159.8,
171, 169.2,
180.5 178.6
], ],
"支援炮击伤害": [ "支援炮击伤害": [
48.4, 43.15,
52.03, 46.39,
55.66, 49.62,
60.5, 53.94,
64.13, 57.17,
67.76, 60.41,
72.6, 64.72,
77.44, 69.04,
82.28, 73.36,
87.12, 77.67,
91.96, 81.99,
96.8, 86.3,
102.85, 91.69,
108.9, 97.09,
114.95 102.48
] ]
} }
}, },
@ -909,13 +913,13 @@
"1": { "1": {
"name": "淑女的距离感守则", "name": "淑女的距离感守则",
"desc": [ "desc": [
"施放典仪式晶火时每消耗1枚「裂晶弹片」都将为娜维娅恢复2点元素能量并使如霰澄天的鸣礼的冷却时间减少1秒。至多通过这种方式恢复6点元素能量使「如霰澄天的鸣礼」的冷却时间减少3秒。" "施放典仪式晶火时每消耗1枚「裂晶弹片」都将为娜维娅恢复3点元素能量并使如霰澄天的鸣礼的冷却时间减少1秒。至多通过这种方式恢复9点元素能量使「如霰澄天的鸣礼」的冷却时间减少3秒。"
] ]
}, },
"2": { "2": {
"name": "总指挥的乘胜追击", "name": "总指挥的乘胜追击",
"desc": [ "desc": [
"施放典仪式晶火时每消耗1枚「裂晶弹片」都将使本次典仪式晶火的暴击率提升8%至多通过这种方式使其暴击率提高24%。", "施放典仪式晶火时每消耗1枚「裂晶弹片」都将使本次典仪式晶火的暴击率提升12%至多通过这种方式使其暴击率提高36%。",
"此外,典仪式晶火的射击命中敌人时,将在命中的敌人附近降下一次如霰澄天的鸣礼的「支援炮击」。每次施放典仪式晶火至多降下一次支援炮击,通过这种方式触发的支援炮击的伤害视为元素爆发伤害。" "此外,典仪式晶火的射击命中敌人时,将在命中的敌人附近降下一次如霰澄天的鸣礼的「支援炮击」。每次施放典仪式晶火至多降下一次支援炮击,通过这种方式触发的支援炮击的伤害视为元素爆发伤害。"
] ]
}, },
@ -942,7 +946,7 @@
"6": { "6": {
"name": "刺玫会长的灵活手腕", "name": "刺玫会长的灵活手腕",
"desc": [ "desc": [
"施放典仪式晶火时若消耗的「裂晶弹片」超过3枚超过3枚的每枚「裂晶弹片」都将使本次典仪式晶火的暴击伤害提升35%且消耗的超过3枚的部分将在施放后返还。" "施放典仪式晶火时若消耗的「裂晶弹片」超过3枚超过3枚的每枚「裂晶弹片」都将使本次典仪式晶火的暴击伤害提升45%且消耗的超过3枚的部分将在施放后返还。"
] ]
} }
}, },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 269 KiB

After

Width:  |  Height:  |  Size: 272 KiB

View File

@ -2126,25 +2126,25 @@
"star": 1 "star": 1
}, },
"奇械机芯齿轮": { "奇械机芯齿轮": {
"id": "n112085", "id": 112085,
"name": "奇械机芯齿轮", "name": "奇械机芯齿轮",
"type": "normal", "type": "normal",
"star": 3, "star": 3,
"items": { "items": {
"啮合齿轮": { "啮合齿轮": {
"id": "n112083", "id": 112083,
"name": "啮合齿轮", "name": "啮合齿轮",
"type": "normal", "type": "normal",
"star": 1 "star": 1
}, },
"机关正齿轮": { "机关正齿轮": {
"id": "n112084", "id": 112084,
"name": "机关正齿轮", "name": "机关正齿轮",
"type": "normal", "type": "normal",
"star": 2 "star": 2
}, },
"奇械机芯齿轮": { "奇械机芯齿轮": {
"id": "n112085", "id": 112085,
"name": "奇械机芯齿轮", "name": "奇械机芯齿轮",
"type": "normal", "type": "normal",
"star": 3 "star": 3

View File

@ -151,11 +151,16 @@ export default function (step, staticStep) {
mastery: step(48) mastery: step(48)
} }
}, },
苇海信标: [staticStep('hpPct', 32), { 苇海信标: [{
title: '元素战技命中敌人并受伤害后提升攻击力[atkPct]%', title: '元素战技命中敌人并受伤害后提升攻击力[atkPct]%',
refine: { refine: {
atkPct: step(40) atkPct: step(40)
} }
}, {
title: '不处于护盾情况下提升生命值[hpPct]%',
refine: {
hpPct: step(32)
}
}], }],
浪影阔剑: { 浪影阔剑: {
title: '受到治疗时,攻击力提升[atkPct]%', title: '受到治疗时,攻击力提升[atkPct]%',

View File

@ -136,10 +136,9 @@
"star": 4 "star": 4
}, },
"12426": { "12426": {
"id": "12426", "id": 12426,
"name": "「究极霸王超级魔剑」", "name": "「究极霸王超级魔剑」",
"star": 4, "star": 4
"wid": "n12426"
}, },
"12427": { "12427": {
"id": 12427, "id": 12427,
@ -177,9 +176,8 @@
"star": 5 "star": 5
}, },
"12512": { "12512": {
"id": "12512", "id": 12512,
"name": "裁断", "name": "裁断",
"star": 5, "star": 5
"wid": "n12512"
} }
} }

View File

@ -1,9 +1,9 @@
{ {
"id": "12426", "id": 12426,
"name": "「究极霸王超级魔剑」", "name": "「究极霸王超级魔剑」",
"affixTitle": "加油!", "affixTitle": "加油!",
"star": 4, "star": 4,
"desc": "攻击力提升12%。不仅如此海沫村中曾蒙你帮助的美露莘们的声援心意充满了力量依照她们的数目攻击力至多进一步提升12%。", "desc": "统治海原的究极霸王才能使用的超级魔剑。因为使用了特殊的防水材料,就算浸在水中也不会泡坏,几乎能称得上是无敌!",
"attr": { "attr": {
"atk": { "atk": {
"1": 43.73, "1": 43.73,

View File

@ -1,9 +1,9 @@
{ {
"id": "12512", "id": 12512,
"name": "裁断", "name": "裁断",
"affixTitle": "诸多朝与暮的誓约", "affixTitle": "诸多朝与暮的誓约",
"star": 5, "star": 5,
"desc": "攻击力提升20%队伍中的角色获取结晶反应产生的晶片时会为装备者赋予1枚「约印」使元素战技造成的伤害提升18%约印持续15秒至多同时持有2枚。所有约印将在装备者的元素战技造成伤害后的0.2秒后移除。", "desc": "曾经抛弃家名的贵族少女使用过的武器,过去沾染了敌人与挚爱的血液。",
"attr": { "attr": {
"atk": { "atk": {
"1": 47.54, "1": 47.54,

View File

@ -36,6 +36,7 @@ export const descFix = {
玛海菈的水色: '每10秒基于精通的$[0]提升攻击力并基于该提升的30%为其他角色提升攻击力持续12秒。处于后台时也能触发多件同名武器可叠加。', 玛海菈的水色: '每10秒基于精通的$[0]提升攻击力并基于该提升的30%为其他角色提升攻击力持续12秒。处于后台时也能触发多件同名武器可叠加。',
雪葬的星银: '普攻与重击命中敌人时,有$[0]概率造成$[1]攻击力的范围伤害。若敌人处于冰元素影响下,则造成$[2]攻击力的伤害。每10秒至多一次。', 雪葬的星银: '普攻与重击命中敌人时,有$[0]概率造成$[1]攻击力的范围伤害。若敌人处于冰元素影响下,则造成$[2]攻击力的伤害。每10秒至多一次。',
裁断: '攻击力提升$[0]获取结晶晶片时为装备者赋予1枚约印使下一个战技伤害提升$[1]约印持续15秒至多持有2枚。', 裁断: '攻击力提升$[0]获取结晶晶片时为装备者赋予1枚约印使下一个战技伤害提升$[1]约印持续15秒至多持有2枚。',
苇海信标:'战技命中敌人提升$[0]攻击力;受到伤害提升$[1]攻击力各持续8秒后台也能触发。无护盾时生命值上限提高$[2]。',
// 长柄武器 // 长柄武器
勘探钻机: '受到或进行治疗时获得标记最多3层处于后台也能获得。施放战技或爆发时消耗标记每枚标记提高$[0]攻击力与$[1]元素伤害加成。', 勘探钻机: '受到或进行治疗时获得标记最多3层处于后台也能获得。施放战技或爆发时消耗标记每枚标记提高$[0]攻击力与$[1]元素伤害加成。',