新增露西伤害计算等

This commit is contained in:
UCPr 2025-01-15 23:05:54 +08:00
parent 208cb0ae05
commit cecc33b24d
7 changed files with 265 additions and 133 deletions

View file

@ -77,14 +77,14 @@ export const skills = [
name: '强化E极性紊乱',
type: '紊乱',
banCache: true,
before: ({ calc, detail }) => {
before: ({ calc, areas }) => {
const skill = { type: '紊乱' }
const DiscoverMultiplier = calc.get_DiscoverMultiplier(skill)
const n = calc.get('倍率', 0.15, { type: '强化E极性紊乱' })
const ATK = calc.get_ATK(skill)
const AnomalyProficiency = calc.get_AnomalyProficiency(skill)
const skillMultiplier = calc.get_Multiplier('E极性紊乱')
detail.BasicArea = DiscoverMultiplier * ATK * n + AnomalyProficiency * skillMultiplier
const skillMultiplier = calc.get_SkillMultiplier('E极性紊乱')
areas.BasicArea = DiscoverMultiplier * ATK * n + AnomalyProficiency * skillMultiplier
}
},
{ name: '连携技:星月相随', type: 'RL' },
@ -93,14 +93,14 @@ export const skills = [
name: '终结技极性紊乱',
type: '紊乱',
banCache: true,
before: ({ calc, detail }) => {
before: ({ calc, areas }) => {
const skill = { type: '紊乱' }
const DiscoverMultiplier = calc.get_DiscoverMultiplier(skill)
const n = calc.get('倍率', 0.15, { type: '终结技极性紊乱' })
const ATK = calc.get_ATK(skill)
const AnomalyProficiency = calc.get_AnomalyProficiency(skill)
const skillMultiplier = calc.get_Multiplier('R极性紊乱')
detail.BasicArea = DiscoverMultiplier * ATK * n + AnomalyProficiency * skillMultiplier
const skillMultiplier = calc.get_SkillMultiplier('R极性紊乱')
areas.BasicArea = DiscoverMultiplier * ATK * n + AnomalyProficiency * skillMultiplier
}
}
]

View file

@ -0,0 +1,76 @@
/** @type {import('../../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
name: '4影',
type: '暴击伤害',
value: 0.1
},
{
name: '技能:加油!',
type: '攻击力',
value: ({ calc }) => {
const ratio = calc.calc_value('E1')
const fixed = calc.calc_value('E2')
return Math.min(600, calc.initial_properties.ATK * ratio + fixed)
}
}
]
/** @type {import('../../Calculator.ts').skill['before']} */
const before = ({ calc, usefulBuffs, props }) => {
const jiayou = usefulBuffs.find(buff => buff.name === '技能:加油!')
const delta = calc.calc_value(jiayou?.value)
const ratio = calc.calc_value('T')
props.攻击力 = calc.get_ATK() + delta * (ratio - 1)
usefulBuffs.splice(0, usefulBuffs.length)
}
/** @type {import('../../Calculator.ts').Calculator['skills']} */
export const skills = [
{ name: '灼烧', type: '灼烧' },
{ name: '普攻:淑女的球棍四段', type: 'AP4' },
{
name: '亲卫队小猪:抄家伙!(弹弓)',
type: 'AZCD',
element: 'Physical',
props: {
穿透值: 0,
穿透率: 0
},
before
},
{
name: '亲卫队小猪:回旋挥击!',
type: 'AZH',
element: 'Physical',
props: {
穿透值: 0,
穿透率: 0
},
before
},
{
name: '6影小猪空中落地爆炸',
type: 'Y',
check: ({ avatar }) => avatar.rank >= 6,
fixedMultiplier: 3,
props: {
穿透值: 0,
穿透率: 0
},
before
},
{ name: '闪避反击:獠牙折转!', type: 'CF' },
{ name: '强化特殊技:全垒打短按', type: 'EQP' },
{ name: '强化特殊技:全垒打长按', type: 'EQX' },
{
name: '连携技:大满贯!',
type: 'RL',
after: ({ damage }) => damage.x(3)
},
{
name: '终结技:再见全垒打!',
type: 'RZ',
after: ({ damage }) => damage.x(3)
}
]

View file

@ -0,0 +1,39 @@
{
"skill": {
"AP4": [
2.726,2.974,3.222,3.47,3.718,3.966,4.214,4.462,4.71,4.958,5.206,5.454,5.702,5.95,6.198,6.446
],
"AZCD": [
1.75,1.91,2.07,2.23,2.39,2.55,2.71,2.87,3.03,3.19,3.35,3.51,3.67,3.83,3.99,4.15
],
"AZH": [
2.5,2.728,2.956,3.184,3.412,3.64,3.868,4.096,4.324,4.552,4.78,5.008,5.236,5.464,5.692,5.92
],
"CF": [
3.08,3.36,3.64,3.92,4.2,4.48,4.76,5.04,5.32,5.6,5.88,6.16,6.44,6.72,7,7.28
],
"EQP": [
5.084,5.547,6.01,6.473,6.936,7.399,7.862,8.325,8.788,9.251,9.714,10.177,10.64,11.103,11.566,12.029
],
"EQX": [
5.364,5.852,6.34,6.828,7.316,7.804,8.292,8.78,9.268,9.756,10.244,10.732,11.22,11.708,12.196,12.684
],
"RL": [
1.641,1.79,1.94,2.089,2.238,2.388,2.537,2.686,2.836,2.985,3.134,3.284,3.433,3.582,3.732,3.881
],
"RZ": [
5.728,6.249,6.77,7.291,7.812,8.333,8.854,9.375,9.896,10.417,10.938,11.459,11.98,12.501,13.022,13.543
]
},
"buff": {
"T": [
1.4,1.5,1.6,1.7,1.8,1.9,2
],
"E1": [
0.138,0.146,0.154,0.162,0.17,0.178,0.186,0.194,0.202,0.21,0.218,0.226,0.234,0.242,0.25,0.258
],
"E2": [
44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104
]
}
}