伤害计算及圣遗物评分增加提纳里、柯莱

伤害计算暂未包含3.0新元素反应,后续统一补充
草元素圣遗物识别及评分逻辑补充
This commit is contained in:
yoimiya-kokomi 2022-08-26 08:21:00 +08:00
parent 1d59dc7685
commit 9206a8eab3
8 changed files with 97 additions and 11 deletions

View File

@ -1,11 +1,10 @@
# 1.9.10
# 1.9.11
* 伤害计算增加丽莎、云堇、五郎、北斗、托马、早柚、砂糖、辛焱
* `#雷神面板`展示数据API及更新时间
* 重构部分components、models逻辑重构部分伤害计算逻辑
* `#雷神圣遗物`页面部分展示问题修复
* 伤害计算及圣遗物评分增加提纳里、柯莱
* 伤害计算暂未包含3.0新元素反应,后续统一补充
* 草元素圣遗物识别及评分逻辑补充
# 1.9.1 ~ 1.9.9
# 1.9.1 ~ 1.9.10
* 新增`#面板练度统计`功能
* 可展示当前角色天赋及圣遗物练度信息
@ -16,6 +15,7 @@
* 可在`#喵喵设置`中启用`#喵喵深渊`作为默认`#深渊`,默认关闭
* 启用后不会覆盖`#上期深渊`以及`#深渊12层`具体楼层的命令
* `#面板`、`#更新面板`命令使用图片渲染结果
* `#雷神面板`展示数据API及更新时间
* Enka面板服务支持配置代理 **@永恒的小黑屋**
* 如需配置可在**miao-plugin/config/profile.js**文件中配置
* `#更新面板`支持配置更新API适配Enka新校验逻辑
@ -27,6 +27,8 @@
* 修正部分V3Yunzai下的适配问题
* 对MiaoApi新版profile服务增加适配
* 部分角色的圣遗物评分增加充能的词条评分权重
* 伤害计算增加丽莎、云堇、五郎、北斗、托马、早柚、砂糖、辛焱
* 重构部分components、models逻辑重构部分伤害计算逻辑
# 1.9.0

View File

@ -25,6 +25,7 @@ const attrMap = {
WIND_ADD_HURT: '风元素伤害加成',
WATER_ADD_HURT: '水元素伤害加成',
PHYSICAL_ADD_HURT: '物理伤害加成',
GRASS_ADD_HURT: '草元素伤害加成',
HEAL_ADD: '治疗加成',
ELEMENT_MASTERY: '元素精通',
CRITICAL: '暴击率',

View File

@ -39,6 +39,7 @@ export const attrMap = {
WIND_ADD_HURT: '风元素伤害加成',
WATER_ADD_HURT: '水元素伤害加成',
PHYSICAL_ADD_HURT: '物理伤害加成',
GRASS_ADD_HURT: '草元素伤害加成',
HEAL_ADD: '治疗加成',
ELEMENT_MASTERY: '元素精通',
CRITICAL: '暴击率',

View File

@ -98,7 +98,8 @@ export const eleMap = {
electro: '雷',
geo: '岩',
hydro: '水',
pyro: '火'
pyro: '火',
dendro: '草'
}
// 元素反应类型及基数

View File

@ -0,0 +1,63 @@
export const details = [{
title: '花筥箭伤害',
dmg: ({ talent }, dmg) => dmg(talent.a['花筥箭伤害'], 'a2')
}, {
title: '单支藏蕴花矢伤害',
dmg: ({ talent, cons }, dmg) => dmg(talent.a['藏蕴花矢伤害'], 'a2')
}, {
title: '二段重击总伤害',
dmg: ({ talent, cons }, dmg) => {
let d1 = dmg(talent.a['花筥箭伤害'], 'a2')
let d2 = dmg(talent.a['藏蕴花矢伤害'], 'a2')
let count = cons * 1 === 6 ? 5 : 4
return {
dmg: d1.dmg + d2.dmg * count,
avg: d1.avg + d2.avg * count
}
}
}, {
title: 'Q总伤害',
params: { q: true },
dmg: ({ talent, cons }, dmg) => {
return dmg(talent.q['缠藤箭伤害'] * 6 + talent.q['次级缠藤箭伤害'] * 6, 'q')
}
}]
// 10144 6794&10596
export const mainAttr = 'atk,cpct,cdmg,mastery'
export const buffs = [{
title: '提纳里被动发射花筥箭后元素精通提升50点',
data: {
mastery: 50,
qMastery: 0
}
}, {
title: '提纳里被动基于元素精通提升重击及Q伤害[a2Dmg]%',
sort: 5,
data: {
a2Dmg: ({ calc, attr }) => Math.min(80, calc(attr.mastery) * 0.08),
qDmg: ({ calc, attr }) => Math.min(80, calc(attr.mastery) * 0.08)
}
}, {
title: '提纳里1命重击暴击率提高15%',
cons: 1,
data: {
a2Cpct: 15
}
}, {
title: '提纳里2命E范围中存在敌人时获得20%草伤加成',
cons: 2,
data: {
dmg: 20
}
}, {
title: '提纳里4命释放Q时提高元素精通60触发反应进一步提升60',
cons: 4,
data: {
mastery: ({ params }) => params.q ? 120 : 0
}
}, {
title: '提纳里6命花筥箭在命中后能产生1枚额外的藏蕴花矢',
cons: 6
}]

View File

@ -0,0 +1,14 @@
export const details = [{
title: 'E单次伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, {
title: 'Q爆发伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['爆发伤害'], 'q')
}, {
title: 'Q每跳伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['跃动伤害'], 'q')
}]
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = []

View File

@ -70,12 +70,12 @@ 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: 55, heal: 0 },
: { 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: 75, 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: 30, heal: 0 },
可莉: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 30, heal: 0 },
凝光: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 0, dmg: 100, phy: 0, recharge: 30, 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: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, 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: 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: 50, cd: 50, mastery: 0, dmg: 80, phy: 0, recharge: 55, heal: 100 },
@ -95,5 +95,7 @@ export const usefulAttr = {
雷泽: { 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: 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: 30, heal: 0 }
鹿野院平藏: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 30, heal: 0 },
提纳里: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 90, dmg: 100, phy: 0, recharge: 30, heal: 0 },
柯莱: { hp: 0, atk: 75, def: 0, cp: 100, cd: 100, mastery: 75, dmg: 100, phy: 0, recharge: 30, heal: 0 },
}

View File

@ -437,8 +437,10 @@ let bow = {
}
},
猎人之径: {
title: '重击造成的伤害值提高[a2Plus]',
title: '元素伤害提高[dmg]%,重击造成的伤害值提高[a2Plus]',
sort: 5,
data: {
dmg: ({ refine }) => step(12)[refine],
a2Plus: ({ attr, calc, refine }) => calc(attr.mastery) * step(160)[refine] / 100
}
},