mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
薇薇安伤害计算
This commit is contained in:
parent
297be2d481
commit
7ace8908ff
9 changed files with 240 additions and 53 deletions
106
model/damage/character/薇薇安/calc.js
Normal file
106
model/damage/character/薇薇安/calc.js
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
/** @type {import('../../BuffManager.ts').BuffManager['buffs']} */
|
||||
export const buffs = [
|
||||
{
|
||||
name: '1影',
|
||||
type: '异常增伤', // 异常易伤?
|
||||
value: 0.16,
|
||||
is: {
|
||||
team: true
|
||||
}
|
||||
},
|
||||
{
|
||||
name: '2影',
|
||||
type: '无视抗性',
|
||||
value: 0.15,
|
||||
range: ['侵蚀·异放']
|
||||
},
|
||||
{
|
||||
name: '4影',
|
||||
type: '暴击率',
|
||||
value: 1,
|
||||
range: ['AX', 'AH']
|
||||
},
|
||||
{
|
||||
name: '4影',
|
||||
type: '攻击力',
|
||||
value: 0.12
|
||||
},
|
||||
{
|
||||
name: '6影',
|
||||
type: '增伤',
|
||||
value: 0.4,
|
||||
element: 'Ether',
|
||||
isForever: true
|
||||
},
|
||||
{
|
||||
name: '额外能力:预言之泪',
|
||||
type: '异常增伤',
|
||||
value: 0.12,
|
||||
// 侵蚀、侵蚀结算的紊乱生效
|
||||
check: ({ calc }) => calc.skill.element === 'Ether',
|
||||
range: ['侵蚀', '紊乱']
|
||||
}
|
||||
]
|
||||
|
||||
/** @param {import('../../Calculator.ts').Calculator} vva */
|
||||
const generateBefore = (vva) => {
|
||||
/** @type {import('../../Calculator.ts').skill['before']} */
|
||||
const before = ({ avatar, calc, areas }) => {
|
||||
const AnomalyMultiplier = calc.get_AnomalyMultiplier(undefined, undefined, 1)
|
||||
const ATK = calc.get_ATK(calc.skill)
|
||||
const AnomalyProficiency = vva.get_AnomalyProficiency(calc.skill)
|
||||
const skillMultiplier = vva.get_SkillMultiplier(`TY${avatar.element_type}`)
|
||||
const n = AnomalyProficiency / 10 * skillMultiplier * (vva.avatar.rank >= 2 ? 1.3 : 1)
|
||||
areas.BasicArea = ATK * AnomalyMultiplier * n
|
||||
}
|
||||
return before
|
||||
}
|
||||
|
||||
/** @type {import('../../Calculator.ts').Calculator['skills']} */
|
||||
export const skills = [
|
||||
{ name: '侵蚀每段', type: '侵蚀' },
|
||||
{ name: '紊乱', type: '紊乱' },
|
||||
{
|
||||
name: '异放·结算薇薇安',
|
||||
type: '侵蚀·异放',
|
||||
isMain: true,
|
||||
banCache: true,
|
||||
before: (data) => generateBefore(data.calc)(data)
|
||||
},
|
||||
{
|
||||
name: '6影特殊异放·5护羽',
|
||||
type: '侵蚀·异放',
|
||||
check: 6,
|
||||
banCache: true,
|
||||
dmg: (calc) => {
|
||||
const dmg = calc.calc_skill({
|
||||
...calc.skills.find(skill => skill.type === '侵蚀·异放'),
|
||||
after: ({ damage }) => damage.x(5)
|
||||
})
|
||||
dmg.skill.name = '6影特殊异放·5护羽'
|
||||
return dmg
|
||||
}
|
||||
},
|
||||
{ name: '普攻:翎羽拂击四段', type: 'AP4' },
|
||||
{ name: '普攻:淑女礼仪·舞步', type: 'AT' },
|
||||
{ name: '普攻:裙裾浮游·悬落', type: 'AX' },
|
||||
{ name: '普攻:落羽生花', type: 'AH' },
|
||||
{
|
||||
name: '薇薇安的预言',
|
||||
type: 'TW',
|
||||
fixedMultiplier: 0.55
|
||||
},
|
||||
{ name: '闪避反击:羽刃反振', type: 'CF' },
|
||||
{ name: '强化特殊技:堇花悼亡', type: 'EQ' },
|
||||
{ name: '连携技:星羽和声', type: 'RL' },
|
||||
{ name: '终结技:飞鸟鸣颂', type: 'RZ' }
|
||||
]
|
||||
|
||||
/**
|
||||
* @param {import('../../BuffManager.ts').BuffManager} buffM
|
||||
* @param {import('../../Calculator.ts').Calculator} calc
|
||||
* @param {import('../../../avatar.js').ZZZAvatarInfo} avatar
|
||||
*/
|
||||
// export function calc(buffM, calc, avatar) {
|
||||
|
||||
// }
|
||||
43
model/damage/character/薇薇安/data.json
Normal file
43
model/damage/character/薇薇安/data.json
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"skill": {
|
||||
"AP4": [
|
||||
1.284,1.401,1.518,1.635,1.752,1.869,1.986,2.103,2.22,2.337,2.454,2.571,2.688,2.805,2.922,3.039
|
||||
],
|
||||
"AT": [
|
||||
0.478,0.522,0.566,0.61,0.654,0.698,0.742,0.786,0.83,0.874,0.918,0.962,1.006,1.05,1.094,1.138
|
||||
],
|
||||
"AX": [
|
||||
0.802,0.875,0.948,1.021,1.094,1.167,1.24,1.313,1.386,1.459,1.532,1.605,1.678,1.751,1.824,1.897
|
||||
],
|
||||
"AH": [
|
||||
2.2,2.4,2.6,2.8,3,3.2,3.4,3.6,3.8,4,4.2,4.4,4.6,4.8,5,5.2
|
||||
],
|
||||
"CF": [
|
||||
2.364,2.579,2.794,3.009,3.224,3.439,3.654,3.869,4.084,4.299,4.514,4.729,4.944,5.159,5.374,5.589
|
||||
],
|
||||
"EQ": [
|
||||
5.926,6.465,7.004,7.543,8.082,8.621,9.16,9.699,10.238,10.777,11.316,11.855,12.394,12.933,13.472,14.011
|
||||
],
|
||||
"RL": [
|
||||
6.589,7.188,7.787,8.386,8.985,9.584,10.183,10.782,11.381,11.98,12.579,13.178,13.777,14.376,14.975,15.574
|
||||
],
|
||||
"RZ": [
|
||||
16.868,18.402,19.936,21.47,23.004,24.538,26.072,27.606,29.14,30.674,32.208,33.742,35.276,36.81,38.344,39.878
|
||||
],
|
||||
"TY200": [
|
||||
0.0037,0.0044,0.0051,0.0058,0.0065,0.007,0.0075
|
||||
],
|
||||
"TY201": [
|
||||
0.04,0.0466,0.0532,0.0598,0.0664,0.073,0.08
|
||||
],
|
||||
"TY202": [
|
||||
0.0054,0.0063,0.0072,0.0081,0.009,0.0099,0.0108
|
||||
],
|
||||
"TY203": [
|
||||
0.016,0.0186,0.0212,0.0238,0.0264,0.029,0.032
|
||||
],
|
||||
"TY205": [
|
||||
0.0307,0.0359,0.0411,0.0463,0.0515,0.0565,0.0615
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue