mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
伤害计算及圣遗物评分增加提纳里、柯莱
伤害计算暂未包含3.0新元素反应,后续统一补充 草元素圣遗物识别及评分逻辑补充
This commit is contained in:
parent
1d59dc7685
commit
9206a8eab3
14
CHANGELOG.md
14
CHANGELOG.md
@ -1,11 +1,10 @@
|
|||||||
# 1.9.10
|
# 1.9.11
|
||||||
|
|
||||||
* 伤害计算增加丽莎、云堇、五郎、北斗、托马、早柚、砂糖、辛焱
|
* 伤害计算及圣遗物评分增加提纳里、柯莱
|
||||||
* `#雷神面板`展示数据API及更新时间
|
* 伤害计算暂未包含3.0新元素反应,后续统一补充
|
||||||
* 重构部分components、models逻辑,重构部分伤害计算逻辑
|
* 草元素圣遗物识别及评分逻辑补充
|
||||||
* `#雷神圣遗物`页面部分展示问题修复
|
|
||||||
|
|
||||||
# 1.9.1 ~ 1.9.9
|
# 1.9.1 ~ 1.9.10
|
||||||
|
|
||||||
* 新增`#面板练度统计`功能
|
* 新增`#面板练度统计`功能
|
||||||
* 可展示当前角色天赋及圣遗物练度信息
|
* 可展示当前角色天赋及圣遗物练度信息
|
||||||
@ -16,6 +15,7 @@
|
|||||||
* 可在`#喵喵设置`中启用`#喵喵深渊`作为默认`#深渊`,默认关闭
|
* 可在`#喵喵设置`中启用`#喵喵深渊`作为默认`#深渊`,默认关闭
|
||||||
* 启用后不会覆盖`#上期深渊`以及`#深渊12层`具体楼层的命令
|
* 启用后不会覆盖`#上期深渊`以及`#深渊12层`具体楼层的命令
|
||||||
* `#面板`、`#更新面板`命令使用图片渲染结果
|
* `#面板`、`#更新面板`命令使用图片渲染结果
|
||||||
|
* `#雷神面板`展示数据API及更新时间
|
||||||
* Enka面板服务支持配置代理 **@永恒的小黑屋**
|
* Enka面板服务支持配置代理 **@永恒的小黑屋**
|
||||||
* 如需配置可在**miao-plugin/config/profile.js**文件中配置
|
* 如需配置可在**miao-plugin/config/profile.js**文件中配置
|
||||||
* `#更新面板`支持配置更新API,适配Enka新校验逻辑
|
* `#更新面板`支持配置更新API,适配Enka新校验逻辑
|
||||||
@ -27,6 +27,8 @@
|
|||||||
* 修正部分V3Yunzai下的适配问题
|
* 修正部分V3Yunzai下的适配问题
|
||||||
* 对MiaoApi新版profile服务增加适配
|
* 对MiaoApi新版profile服务增加适配
|
||||||
* 部分角色的圣遗物评分增加充能的词条评分权重
|
* 部分角色的圣遗物评分增加充能的词条评分权重
|
||||||
|
* 伤害计算增加丽莎、云堇、五郎、北斗、托马、早柚、砂糖、辛焱
|
||||||
|
* 重构部分components、models逻辑,重构部分伤害计算逻辑
|
||||||
|
|
||||||
# 1.9.0
|
# 1.9.0
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ const attrMap = {
|
|||||||
WIND_ADD_HURT: '风元素伤害加成',
|
WIND_ADD_HURT: '风元素伤害加成',
|
||||||
WATER_ADD_HURT: '水元素伤害加成',
|
WATER_ADD_HURT: '水元素伤害加成',
|
||||||
PHYSICAL_ADD_HURT: '物理伤害加成',
|
PHYSICAL_ADD_HURT: '物理伤害加成',
|
||||||
|
GRASS_ADD_HURT: '草元素伤害加成',
|
||||||
HEAL_ADD: '治疗加成',
|
HEAL_ADD: '治疗加成',
|
||||||
ELEMENT_MASTERY: '元素精通',
|
ELEMENT_MASTERY: '元素精通',
|
||||||
CRITICAL: '暴击率',
|
CRITICAL: '暴击率',
|
||||||
|
@ -39,6 +39,7 @@ export const attrMap = {
|
|||||||
WIND_ADD_HURT: '风元素伤害加成',
|
WIND_ADD_HURT: '风元素伤害加成',
|
||||||
WATER_ADD_HURT: '水元素伤害加成',
|
WATER_ADD_HURT: '水元素伤害加成',
|
||||||
PHYSICAL_ADD_HURT: '物理伤害加成',
|
PHYSICAL_ADD_HURT: '物理伤害加成',
|
||||||
|
GRASS_ADD_HURT: '草元素伤害加成',
|
||||||
HEAL_ADD: '治疗加成',
|
HEAL_ADD: '治疗加成',
|
||||||
ELEMENT_MASTERY: '元素精通',
|
ELEMENT_MASTERY: '元素精通',
|
||||||
CRITICAL: '暴击率',
|
CRITICAL: '暴击率',
|
||||||
|
@ -98,7 +98,8 @@ export const eleMap = {
|
|||||||
electro: '雷',
|
electro: '雷',
|
||||||
geo: '岩',
|
geo: '岩',
|
||||||
hydro: '水',
|
hydro: '水',
|
||||||
pyro: '火'
|
pyro: '火',
|
||||||
|
dendro: '草'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 元素反应类型及基数
|
// 元素反应类型及基数
|
||||||
|
63
resources/meta/character/提纳里/calc.js
Normal file
63
resources/meta/character/提纳里/calc.js
Normal 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
|
||||||
|
}]
|
14
resources/meta/character/柯莱/calc.js
Normal file
14
resources/meta/character/柯莱/calc.js
Normal 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 = []
|
@ -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: 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: 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: 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: 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: 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: 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: 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: 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: 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 },
|
芭芭拉: { 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: 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: 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: 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 },
|
||||||
}
|
}
|
||||||
|
@ -437,8 +437,10 @@ let bow = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
猎人之径: {
|
猎人之径: {
|
||||||
title: '重击造成的伤害值提高[a2Plus]',
|
title: '元素伤害提高[dmg]%,重击造成的伤害值提高[a2Plus]',
|
||||||
|
sort: 5,
|
||||||
data: {
|
data: {
|
||||||
|
dmg: ({ refine }) => step(12)[refine],
|
||||||
a2Plus: ({ attr, calc, refine }) => calc(attr.mastery) * step(160)[refine] / 100
|
a2Plus: ({ attr, calc, refine }) => calc(attr.mastery) * step(160)[refine] / 100
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user