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
4353e615c3
commit
e626991f16
@ -84,7 +84,8 @@ const ArtisMarkCfg = {
|
||||
}
|
||||
|
||||
let charRule = char.getArtisCfg() || function ({ def }) {
|
||||
return def(usefulAttr[char.name] || { atk: 75, cpct: 100, cdmg: 100, dmg: 100, phy: 100 })
|
||||
let defaultAttrWeight = isGs ? { atk: 75, cpct: 100, cdmg: 100, dmg: 100, phy: 100 } : { atk: 75, cpct: 100, cdmg: 100, dmg: 100, speed: 100 }
|
||||
return def(usefulAttr[char.name] || defaultAttrWeight)
|
||||
}
|
||||
|
||||
if (charRule) {
|
||||
|
@ -63,9 +63,8 @@ let DmgCalc = {
|
||||
|
||||
let plusNum = 0
|
||||
|
||||
if (talent && attr[talent]) {
|
||||
pctNum = pctNum / 100
|
||||
|
||||
if (talent && attr[talent]) {
|
||||
let ds = attr[talent]
|
||||
|
||||
pctNum += ds.pct / 100
|
||||
@ -130,7 +129,6 @@ let DmgCalc = {
|
||||
if (game === 'sr') {
|
||||
switch (ele) {
|
||||
case 'skillDot': {
|
||||
pctNum = pctNum / 100
|
||||
dmgNum += attr.dot.dmg / 100
|
||||
enemyDmgNum += attr.dot.enemydmg / 100
|
||||
break
|
||||
|
@ -83,9 +83,8 @@ export const alias = {
|
||||
那维莱特: 'Neuvillette,那维,水龙王,水龙,审判官,海獭,龙王,最高审判官,水之龙王',
|
||||
夏洛蒂: 'Charlotte,夏洛,夏洛帝,记者,小记者,佳能400D,400D',
|
||||
芙宁娜: 'Furina,Focalors,水神,芙芙,芙卡洛斯,傻芙芙',
|
||||
娜维娅: 'navia,大小姐,刺玫会,黄豆,流汗黄豆,黄豆姐',
|
||||
娜维娅: 'navia,大小姐,刺玫会,黄豆,流汗黄豆,黄豆姐,娜薇娅,娜薇雅,娜维雅',
|
||||
夏沃蕾: 'chevreuse,夏沃雷',
|
||||
嘉明: 'jiaming,gaming,佳明,嘉铭,家明,镖师,舞狮少年,舞狮',
|
||||
闲云: '流云,刘云,留云,野鹤,那个女人,留云借风,留云借风真君,很会聊天,很会聊天真君'
|
||||
}
|
||||
|
||||
|
@ -1,19 +1,19 @@
|
||||
export const abbr = {
|
||||
// 周本
|
||||
恒常机关之心: '恒常之心',
|
||||
'武炼之魂·孤影': '公子·孤影',
|
||||
'吞天之鲸·只角': '公子·只角',
|
||||
'魔王之刃·残片': '公子·残片',
|
||||
'亘古树海之一瞬': '树海之一瞬',
|
||||
'原初绿洲之初绽': '绿洲之初绽',
|
||||
'生长天地之蕨草': '天地之蕨草',
|
||||
武炼之魂·孤影: '公子·孤影',
|
||||
吞天之鲸·只角: '公子·只角',
|
||||
魔王之刃·残片: '公子·残片',
|
||||
亘古树海之一瞬: '树海之一瞬',
|
||||
原初绿洲之初绽: '绿洲之初绽',
|
||||
生长天地之蕨草: '天地之蕨草',
|
||||
'「图比昂装置」': '图比昂装置',
|
||||
'未能达成超越之水': '未超越之水',
|
||||
未能达成超越之水: '未超越之水',
|
||||
|
||||
// 材料
|
||||
'奇械机芯齿轮': '机芯齿轮',
|
||||
'奇械发条备件·歌裴莉娅': '歌裴莉娅',
|
||||
'奇械发条备件·科培琉司': '科培琉司',
|
||||
奇械机芯齿轮: '机芯齿轮',
|
||||
奇械发条备件·歌裴莉娅: '歌裴莉娅',
|
||||
奇械发条备件·科培琉司: '科培琉司',
|
||||
|
||||
//
|
||||
// 蒙德武器
|
||||
@ -35,5 +35,5 @@ export const abbr = {
|
||||
// 枫丹武器
|
||||
无垢之海的金杯: '无垢之海',
|
||||
悠古弦音的回响: '悠古弦音',
|
||||
纯圣露滴的真粹: '纯圣露滴',
|
||||
纯圣露滴的真粹: '纯圣露滴'
|
||||
}
|
||||
|
@ -1,13 +1,12 @@
|
||||
export default {
|
||||
talent: {
|
||||
|
||||
1: ['自由', '繁荣', '浮世', '诤言', '公平'],
|
||||
2: ['抗争', '勤劳', '风雅', '巧思', '正义'],
|
||||
3: ['诗文', '黄金', '天光', '笃行', '秩序'],
|
||||
3: ['诗文', '黄金', '天光', '笃行', '秩序']
|
||||
},
|
||||
weapon: {
|
||||
1: ['高塔孤王', '孤云寒林', '远海夷地', '谧林涓露', '悠古弦音'],
|
||||
2: ['凛风奔狼', '雾海云间', '鸣神御灵', '绿洲花园', '纯圣露滴'],
|
||||
3: ['狮牙斗士', '漆黑陨铁', '今昔剧画', '烈日威权', '无垢之海'],
|
||||
3: ['狮牙斗士', '漆黑陨铁', '今昔剧画', '烈日威权', '无垢之海']
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
* 如character/${name}/artis.js下有角色自定义规则优先使用自定义
|
||||
*/
|
||||
export const usefulAttr = {
|
||||
真理医生: { hp: 0, atk: 75, def: 0, speed: 100, cpct: 100, cdmg: 100, stance: 0, heal: 0, recharge: 50, effPct: 0, effDef: 0, dmg: 100 },
|
||||
'阮•梅': { hp: 75, atk: 0, def: 75, speed: 100, cpct: 0, cdmg: 0, stance: 100, heal: 0, recharge: 100, effPct: 0, effDef: 50, dmg: 0 },
|
||||
雪衣: { hp: 0, atk: 75, def: 0, speed: 100, cpct: 100, cdmg: 100, stance: 100, heal: 0, recharge: 50, effPct: 0, effDef: 0, dmg: 100 },
|
||||
寒鸦: { hp: 75, atk: 0, def: 75, speed: 100, cpct: 0, cdmg: 0, stance: 0, heal: 0, recharge: 100, effPct: 0, effDef: 50, dmg: 0 },
|
||||
|
@ -31,14 +31,16 @@ export const alias = {
|
||||
'丹恒•饮月': '丹恒·饮月,饮月君,饮月,丹恒饮月,龙尊',
|
||||
'托帕&账账': '托帕,账账,总监,胀胀,帐帐',
|
||||
桂乃芬: '小桂子,桂师傅,网红,格尼薇儿,格妮薇儿,桂奶粉,奶粉',
|
||||
'藿藿': '尾巴,藿香,藿去病,霍去病,尾巴小跟班,小怂包,霍霍,嚯嚯',
|
||||
'银枝': '纯美骑士',
|
||||
藿藿: '尾巴,藿香,藿去病,霍去病,尾巴小跟班,小怂包,霍霍,嚯嚯',
|
||||
银枝: '纯美骑士',
|
||||
'阮•梅': '阮梅,软妹,软梅,软媒,朊梅',
|
||||
雪衣: '下雪大衣',
|
||||
真理医生: '义父,拉帝奥,教授'
|
||||
真理医生: '义父,拉帝奥,教授,真理'
|
||||
}
|
||||
|
||||
export const abbr = {
|
||||
'丹恒•饮月': '饮月君',
|
||||
'托帕&账账': '托帕'
|
||||
'托帕&账账': '托帕',
|
||||
'阮•梅': '阮梅',
|
||||
真理医生: '真理'
|
||||
}
|
||||
|
64
resources/meta-sr/character/真理医生/calc.js
Normal file
64
resources/meta-sr/character/真理医生/calc.js
Normal file
@ -0,0 +1,64 @@
|
||||
export const details = [{
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: '战技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
|
||||
}, {
|
||||
title: '终结技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
|
||||
}, {
|
||||
title: '追加攻击伤害(3负面)',
|
||||
dmg: ({ talent, cons }, dmg) => {
|
||||
const extraPct = cons >= 2 ? 60 : 0
|
||||
return {
|
||||
dmg: dmg(talent.t['追加攻击伤害'], 't').dmg + dmg(extraPct / 100).dmg,
|
||||
avg: dmg(talent.t['追加攻击伤害'], 't').avg + dmg(extraPct / 100).avg
|
||||
}
|
||||
}
|
||||
}, {
|
||||
title: '追加攻击伤害(5负面)',
|
||||
params: { debuffCount: 5 },
|
||||
dmg: ({ talent, cons }, dmg) => {
|
||||
const extraPct = cons >= 2 ? 80 : 0
|
||||
return {
|
||||
dmg: dmg(talent.t['追加攻击伤害'], 't').dmg + dmg(extraPct / 100).dmg,
|
||||
avg: dmg(talent.t['追加攻击伤害'], 't').avg + dmg(extraPct / 100).avg
|
||||
}
|
||||
}
|
||||
}]
|
||||
|
||||
export const defParams = { debuffCount: 3 }
|
||||
export const defDmgIdx = 4
|
||||
export const mainAttr = 'atk,cpct,cdmg'
|
||||
|
||||
export const buffs = [{
|
||||
title: '天赋-归纳:叠满[_count]层时,真理医生暴击率提高[cpct]%,暴击伤害提高[cdmg]%',
|
||||
tree: 2,
|
||||
data: {
|
||||
_count: ({ cons }) => cons < 1 ? 6 : 10,
|
||||
cpct: ({ cons }) => cons < 1 ? 15 : 25,
|
||||
cdmg: ({ cons }) => cons < 1 ? 30 : 50
|
||||
}
|
||||
}, {
|
||||
title: '天赋-推理:目标持有[_count]个负面状态,真理医生造成伤害提高[dmg]%',
|
||||
tree: 3,
|
||||
data: {
|
||||
_count: ({ params }) => params.debuffCount,
|
||||
dmg: ({ params }) => params.debuffCount * 10
|
||||
}
|
||||
}, {
|
||||
title: '真理2命:天赋的追加攻击额外造成[_atkPct]%的附加伤害',
|
||||
cons: 2,
|
||||
data: {
|
||||
_atkPct: ({ params }) => Math.min(params.debuffCount * 20, 80)
|
||||
}
|
||||
}, {
|
||||
title: '真理6命:天赋的追加攻击造成伤害提高[dmg]%',
|
||||
cons: 6,
|
||||
data: {
|
||||
dmg: 50
|
||||
}
|
||||
}]
|
||||
|
||||
export const createdBy = 'Aluxes'
|
Loading…
Reference in New Issue
Block a user