mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
角色伤害计算增加 鹿野院平藏、烟绯
圣遗物评分部分角色词条权重调整 其他面板更新、日历等已知问题修复
This commit is contained in:
parent
3c6a1d12d0
commit
7ad6003d76
12
CHANGELOG.md
12
CHANGELOG.md
@ -1,14 +1,16 @@
|
||||
# 1.8.7
|
||||
# 1.8.8
|
||||
|
||||
* 增加`#深渊使用率`命令,数据源自SG团队胡桃API
|
||||
* `#上传深渊数据`命令会展示角色排名及总记录排名
|
||||
* 角色伤害计算增加 鹿野院平藏、烟绯
|
||||
* 圣遗物评分部分角色词条权重调整
|
||||
* 其他面板更新、日历等已知问题修复
|
||||
|
||||
# 1.8.1~1.8.6
|
||||
# 1.8.1~1.8.7
|
||||
|
||||
* 新增`#上传深渊数据`命令
|
||||
* 可上传自己角色的深渊挑战数据及角色列表,不会上传其他信息
|
||||
* 上传自己角色的深渊挑战数据及角色列表,并展示在本期深渊中伤害与承伤排名
|
||||
* 上传数据用于`#角色持有率 #深渊出场率`等统计,可使统计更加及时准确
|
||||
* 数据统计及服务来自SG团队胡桃API
|
||||
* 增加`#深渊使用率`命令,数据源自SG团队胡桃API
|
||||
* `#刻晴` 角色卡片功能升级
|
||||
* `#老婆设置刻晴,心海`不再检查是否具有角色或展示在米游社展柜
|
||||
* `#刻晴` 角色卡片优先使用面板数据进行展示,无面板数据时使用米游社数据
|
||||
|
@ -96,7 +96,11 @@ export async function character(e, { render, User }) {
|
||||
return renderAvatar(e, char.name, render);
|
||||
}
|
||||
|
||||
e.uid = await getTargetUid(e);
|
||||
let uid = await getTargetUid(e);
|
||||
if (!uid) {
|
||||
return true;
|
||||
}
|
||||
e.uid = uid;
|
||||
e.avatar = char.id;
|
||||
|
||||
if (char.isCustom) {
|
||||
|
@ -31,6 +31,7 @@ export async function renderProfile(e, char, render, mode = "profile", params =
|
||||
}
|
||||
|
||||
let profile = await Profile.get(uid, char.id);
|
||||
|
||||
if (!profile) {
|
||||
if (await refresh()) {
|
||||
return true;
|
||||
@ -38,6 +39,11 @@ export async function renderProfile(e, char, render, mode = "profile", params =
|
||||
e.reply(`请确认${char.name}已展示在【游戏内】的角色展柜中,并打开了“显示角色详情”。然后请使用 #更新面板\n命令来获取${char.name}的面板详情`);
|
||||
}
|
||||
return true;
|
||||
} else if (!profile.attr) {
|
||||
if (!await refresh()) {
|
||||
e.reply(`由于数据Api变更,请重新获取面板信息后查看`);
|
||||
}
|
||||
return true;
|
||||
} else if (!['enka', 'input2', 'miao', 'miao-pre'].includes(profile.dataSource)) {
|
||||
if (!await refresh()) {
|
||||
e.reply(`由于数据格式升级,请重新获取面板信息后查看`);
|
||||
|
34
resources/meta/character/烟绯/calc.js
Normal file
34
resources/meta/character/烟绯/calc.js
Normal file
@ -0,0 +1,34 @@
|
||||
export const details = [{
|
||||
title: "开Q满丹火印重击",
|
||||
params: { dhy: 15 },
|
||||
dmg: ({ talent, cons }, dmg) => dmg(talent.a['重击伤害2'][cons * 1 === 6 ? 4 : 3], 'a2')
|
||||
}, {
|
||||
title: "开Q满丹火印重击蒸发",
|
||||
params: { dhy: 15 },
|
||||
dmg: ({ talent, cons }, dmg) => dmg(talent.a['重击伤害2'][cons * 1 === 6 ? 4 : 3], 'a2', 'zf')
|
||||
}, {
|
||||
title: "E伤害",
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
|
||||
}];
|
||||
|
||||
export const buffs = [{
|
||||
title: "烟绯被动:重击消耗4枚丹火印增加20%火伤",
|
||||
cons: 6,
|
||||
data: {
|
||||
a2Dmg: ({ params }) => params.dhy ? 20 : 0
|
||||
}
|
||||
}, {
|
||||
title: "烟绯被动:重击消耗3枚丹火印增加15%火伤",
|
||||
check: ({ cons }) => cons < 6,
|
||||
data: {
|
||||
a2Dmg: ({ params }) => params.dhy ? 15 : 0
|
||||
}
|
||||
}, {
|
||||
title: "烟绯被动:开Q后提高重击伤害[a2Dmg]%",
|
||||
data: {
|
||||
a2Dmg: ({ talent }) => talent.q['重击伤害额外加成']
|
||||
}
|
||||
}, {
|
||||
title: "元素精通:蒸发融化伤害提高[zf]%",
|
||||
mastery: "zf,rh"
|
||||
}]
|
24
resources/meta/character/鹿野院平藏/calc.js
Normal file
24
resources/meta/character/鹿野院平藏/calc.js
Normal file
@ -0,0 +1,24 @@
|
||||
export const details = [{
|
||||
title: "勠心拳伤害",
|
||||
params: { e: 0 },
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e["技能伤害"], "e")
|
||||
}, {
|
||||
title: "满层勠心拳伤害",
|
||||
params: { e: 4 },
|
||||
dmg: ({ talent }, dmg) => {
|
||||
console.log(talent.e["技能伤害"], talent.e["变格伤害提升"][0], talent.e["正论伤害提升"])
|
||||
return dmg(talent.e["技能伤害"] * 1 + talent.e["变格伤害提升"][0] * 4 + talent.e["正论伤害提升"] * 1, "e")
|
||||
}
|
||||
}, {
|
||||
title: "Q真空弹伤害",
|
||||
dmg: ({ talent }, dmg) => dmg(talent.q["不动流·真空弹伤害"], "q")
|
||||
}];
|
||||
|
||||
export const buffs = [{
|
||||
title: "平藏6命:每层「变格」提高E 4%暴击率,「正论」提高E 32%暴击伤害",
|
||||
cons: 6,
|
||||
data: {
|
||||
eCpct: ({ params }) => params.e === 4 ? 24 : 0,
|
||||
eCdmg: ({ params }) => params.e === 4 ? 32 : 0
|
||||
}
|
||||
}];
|
@ -9,8 +9,8 @@
|
||||
"weapon": "Catalyst",
|
||||
"britydah": "24 July",
|
||||
"astro": "幼鹿座",
|
||||
"cncv": "???",
|
||||
"jpcv": "???",
|
||||
"cncv": "林景",
|
||||
"jpcv": "井口祐一",
|
||||
"desc": "天领奉行的天才少年侦探,直觉敏锐,心思玲珑。",
|
||||
"lvStat": {
|
||||
"lvs": [
|
||||
@ -676,8 +676,11 @@
|
||||
},
|
||||
"imgs": {
|
||||
"face": "/img/char/heizo_face.png",
|
||||
"side": "/img/char/heizo_gacha_card.png",
|
||||
"gacha_card": "/img/char/heizo_gacha_splash.png",
|
||||
"gacha_splash": "/img/scr/char/10000059/face.png"
|
||||
"side": "/img/char/heizo_side.png",
|
||||
"gacha_card": "/img/char/heizo_gacha_card.png",
|
||||
"gacha_splash": "/img/char/heizo_gacha_splash.png",
|
||||
"profile": "/img/cardicon/i_7118_profile.png",
|
||||
"party": "/img/cardicon/i_7118_party.png",
|
||||
"char": "/img/char/heizo.png"
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 802 KiB After Width: | Height: | Size: 552 KiB |
Binary file not shown.
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 802 KiB |
@ -45,47 +45,47 @@ export const subAttr = "atk,def,hp,mastery,recharge,cp,cd".split(",")
|
||||
|
||||
export const usefulAttr = {
|
||||
'神里绫人': { hp: 50, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'八重神子': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 75, heal: 0 },
|
||||
'申鹤': { hp: 0, atk: 100, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 70, heal: 0 },
|
||||
'八重神子': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'申鹤': { hp: 0, atk: 100, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'云堇': { hp: 0, atk: 0, def: 100, cp: 50, cd: 50, mastery: 0, dmg: 25, phy: 0, recharge: 90, heal: 0 },
|
||||
'荒泷一斗': { hp: 0, atk: 50, def: 100, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'荒泷一斗': { hp: 0, atk: 50, def: 100, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 30, heal: 0 },
|
||||
'五郎': { hp: 0, atk: 50, def: 100, cp: 50, cd: 50, mastery: 0, dmg: 25, phy: 0, recharge: 90, heal: 0 },
|
||||
'班尼特': { hp: 90, atk: 50, def: 0, cp: 50, cd: 50, mastery: 0, dmg: 70, phy: 0, recharge: 80, heal: 100 },
|
||||
'班尼特': { hp: 100, atk: 50, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 70, phy: 0, recharge: 55, heal: 100 },
|
||||
'枫原万叶': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 100, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'雷电将军': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 75, phy: 0, recharge: 90, heal: 0 },
|
||||
'行秋': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 65, heal: 0 },
|
||||
'钟离': { hp: 80, atk: 70, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 50, recharge: 55, heal: 0 },
|
||||
'行秋': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 75, heal: 0 },
|
||||
'钟离': { hp: 80, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 50, recharge: 55, heal: 0 },
|
||||
'钟离-血牛': { hp: 100, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 75, phy: 0, recharge: 55, heal: 0 },
|
||||
'神里绫华': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'香菱': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'胡桃': { hp: 80, atk: 50, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'甘雨': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'甘雨-永冻': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'温迪': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 65, heal: 0 },
|
||||
'温迪': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'珊瑚宫心海': { hp: 100, atk: 50, def: 0, cp: 0, cd: 0, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 100 },
|
||||
'莫娜': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 75, heal: 0 },
|
||||
'阿贝多': { hp: 0, atk: 0, def: 100, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'迪奥娜': { hp: 100, atk: 50, def: 0, cp: 50, cd: 50, mastery: 0, dmg: 100, phy: 0, recharge: 75, heal: 100 },
|
||||
'优菈': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 40, phy: 100, recharge: 40, heal: 0 },
|
||||
'迪奥娜': { hp: 100, atk: 50, def: 0, cp: 50, cd: 50, mastery: 0, dmg: 100, phy: 0, recharge: 90, heal: 100 },
|
||||
'优菈': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 40, phy: 100, recharge: 55, heal: 0 },
|
||||
'达达利亚': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'魈': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'魈': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'宵宫': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'九条裟罗': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'琴': { hp: 0, atk: 90, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 100, recharge: 55, heal: 100 },
|
||||
'琴': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 100, recharge: 55, heal: 100 },
|
||||
'菲谢尔': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 60, recharge: 0, heal: 0 },
|
||||
'罗莎莉亚': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 70, phy: 80, recharge: 0, heal: 0 },
|
||||
'可莉': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'凝光': { hp: 0, atk: 80, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'凝光': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'北斗': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'刻晴': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 100, recharge: 0, heal: 0 },
|
||||
'托马': { hp: 100, atk: 50, def: 0, cp: 50, cd: 50, mastery: 0, dmg: 75, phy: 0, recharge: 55, heal: 0 },
|
||||
'托马': { hp: 100, atk: 50, def: 0, cp: 50, cd: 50, mastery: 0, dmg: 75, phy: 0, recharge: 90, heal: 0 },
|
||||
'迪卢克': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'芭芭拉': { hp: 100, atk: 50, def: 0, cp: 75, cd: 75, mastery: 0, dmg: 80, phy: 0, recharge: 55, heal: 100 },
|
||||
'芭芭拉': { hp: 100, atk: 50, def: 0, cp: 50, cd: 50, mastery: 0, dmg: 80, phy: 0, recharge: 55, heal: 100 },
|
||||
'芭芭拉-暴力': { hp: 50, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 50 },
|
||||
'诺艾尔': { hp: 0, atk: 75, def: 100, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 70, heal: 0 },
|
||||
'诺艾尔': { hp: 0, atk: 50, def: 90, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 70, heal: 0 },
|
||||
'旅行者': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'重云': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 70, heal: 0 },
|
||||
'七七': { hp: 0, atk: 100, def: 0, cp: 75, cd: 75, mastery: 0, dmg: 60, phy: 70, recharge: 55, heal: 100 },
|
||||
'重云': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'七七': { hp: 0, atk: 100, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 60, phy: 70, recharge: 55, heal: 100 },
|
||||
'凯亚': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 100, recharge: 0, heal: 0 },
|
||||
'烟绯': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'早柚': { hp: 0, atk: 50, def: 0, cp: 50, cd: 50, mastery: 100, dmg: 80, phy: 0, recharge: 55, heal: 100 },
|
||||
@ -93,8 +93,9 @@ export const usefulAttr = {
|
||||
'丽莎': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'埃洛伊': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
'辛焱': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 50, phy: 100, recharge: 0, heal: 0 },
|
||||
'砂糖': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 100, dmg: 40, phy: 0, recharge: 70, heal: 0 },
|
||||
'砂糖': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 100, dmg: 40, phy: 0, recharge: 55, heal: 0 },
|
||||
'雷泽': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 50, phy: 100, recharge: 0, heal: 0 },
|
||||
'夜兰': { hp: 80, atk: 0, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 75, heal: 0 },
|
||||
'久岐忍': { hp: 100, atk: 50, def: 0, cp: 80, cd: 80, mastery: 80, dmg: 100, phy: 0, recharge: 75, heal: 100 },
|
||||
'夜兰': { hp: 80, atk: 0, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 55, heal: 0 },
|
||||
'久岐忍': { hp: 100, atk: 50, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 55, heal: 100 },
|
||||
'鹿野院平藏': { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 0, heal: 0 },
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user