完全重构伤害计算;支持异常伤害计算;支持所有武器、套装计算;新增悠真计算等

This commit is contained in:
UCPr 2025-01-14 02:18:42 +08:00
parent f7e1066773
commit 3f8e64af66
99 changed files with 4243 additions and 1615 deletions

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '防御力',
value: [0.2, 0.23, 0.26, 0.29, 0.32]
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.15, 0.175, 0.2, 0.225, 0.25]
}
]

View file

@ -0,0 +1,9 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.12, 0.14, 0.16, 0.18, 0.2],
isForever: true,
range: ['A', 'CC', 'CF']
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '冲击力',
value: [0.08, 0.09, 0.1, 0.11, 0.12]
}
]

View file

@ -0,0 +1,11 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '异常掌控',
value: [10, 12, 13, 15, 16]
},
{
type: '异常精通',
value: [10, 12, 13, 15, 16]
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.08, 0.09, 0.1, 0.11, 0.12]
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '冲击力',
value: [0.09, 0.1, 0.11, 0.12, 0.13]
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '异常掌控',
value: [25, 28, 32, 36, 40]
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '异常精通',
value: [25, 28, 32, 36, 40]
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '冲击力',
value: [0.02, 0.023, 0.026, 0.029, 0.032].map(v => v * 8)
}
]

View file

@ -0,0 +1,8 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.36, 0.41, 0.465, 0.52, 0.575],
element: 'Physical'
}
]

View file

@ -0,0 +1,12 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '生命值',
value: [0.08, 0.092, 0.104, 0.116, 0.128],
isForever: true
},
{
type: '攻击力',
value: [0.1, 0.115, 0.13, 0.145, 0.16]
}
]

View file

@ -0,0 +1,8 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.075, 0.086, 0.097, 0.108, 0.12],
isForever: true
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '异常精通',
value: [30, 34, 38, 42, 48].map(v => v * 4)
}
]

View file

@ -0,0 +1,13 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.15, 0.175, 0.2, 0.22, 0.24],
element: 'Ice',
isForever: true
},
{
type: '攻击力',
value: [0.02, 0.023, 0.026, 0.029, 0.032].map(v => v * 4)
}
]

View file

@ -0,0 +1,11 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.1, 0.125, 0.15, 0.175, 0.2]
},
{
type: '增伤',
value: [0.017, 0.02, 0.025, 0.03, 0.033].map(v => v * 6)
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.18, 0.225, 0.27, 0.315, 0.36]
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.025, 0.028, 0.032, 0.036, 0.04].map(v => v * 4),
}
]

View file

@ -0,0 +1,9 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.03, 0.035, 0.04, 0.044, 0.048].map(v => v * 15),
element: 'Physical',
range: ['EQ'] // 只持续1s
}
]

View file

@ -0,0 +1,12 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.12, 0.15, 0.18, 0.21, 0.24],
isForever: true
},
{
type: '异常精通',
value: [25, 31, 37, 43, 50].map(v => v * 3)
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.06, 0.069, 0.078, 0.087, 0.096].map(v => v * 2)
}
]

View file

@ -0,0 +1,9 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.15, 0.175, 0.2, 0.22, 0.24],
element: 'Electric',
isForever: true
}
]

View file

@ -0,0 +1,8 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.06, 0.075, 0.09, 0.105, 0.12].map(v => v * 5),
range: ['A']
}
]

View file

@ -0,0 +1,9 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.5, 0.575, 0.65, 0.725, 0.8],
element: 'Electric',
range: ['A', 'CC']
}
]

View file

@ -0,0 +1,13 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '异常精通',
value: [75, 85, 95, 105, 115]
},
{
type: '异常增伤',
value: [0.25, 0.275, 0.3, 0.325, 0.35],
check: ({ calc }) => calc.get_AnomalyProficiency() >= 375,
range: ['紊乱']
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.12, 0.138, 0.156, 0.174, 0.192]
}
]

View file

@ -0,0 +1,28 @@
/**
* @param {import('../BuffManager.ts').BuffManager} buffM
* @param {number} star 进阶星数
*/
export function calc(buffM, star) {
buffM.new({
type: ,
value: [][star - 1],
element: ,
range: []
})
}
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: ,
value: [],
element: ,
range: []
},
{
type: ,
value: [],
element: ,
range: []
}
]

View file

@ -0,0 +1,12 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '生命值',
value: [0.08, 0.09, 0.1, 0.11, 0.125],
isForever: true
},
{
type: '冲击力',
value: [0.1, 0.115, 0.13, 0.145, 0.16]
}
]

View file

@ -0,0 +1,19 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '暴击率',
value: [0.1, 0.115, 0.13, 0.145, 0.16],
isForever: true
},
{
type: '增伤',
value: [0.4, 0.46, 0.52, 0.58, 0.64],
element: 'Electric',
isForever: true,
range: ['CC']
},
{
type: '暴击率',
value: [0.1, 0.115, 0.13, 0.145, 0.16]
}
]

View file

@ -0,0 +1,8 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.12, 0.15, 0.18, 0.21, 0.24].map(v => v * 3),
element: 'Physical'
}
]

View file

@ -0,0 +1,13 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.25, 0.315, 0.38, 0.445, 0.5],
element: 'Ice',
isForever: true
},
{
type: '暴击率',
value: [0.1, 0.125, 0.15, 0.175, 0.2].map(v => v * 2)
}
]

View file

@ -0,0 +1,11 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.035, 0.044, 0.052, 0.061, 0.07].map(v => v * 10)
},
{
type: '异常精通',
value: [50, 62, 75, 87, 100]
}
]

View file

@ -0,0 +1,12 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '冲击力',
value: [0.25, 0.2875, 0.325, 0.3625, 0.4]
},
{
type: '暴击伤害',
value: [0.015, 0.0172, 0.0195, 0.0217, 0.024].map(v => v * 20),
element: ['Ice', 'Fire']
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '冲击力',
value: [0.1, 0.125, 0.15, 0.175, 0.2].map(v => v * 2)
}
]

View file

@ -0,0 +1,11 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '冲击力',
value: [0.007, 0.0088, 0.0105, 0.0122, 0.014].map(v => v * 30)
},
{
type: '增伤',
value: [0.2, 0.23, 0.26, 0.29, 0.32]
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.035, 0.044, 0.052, 0.06, 0.07].map(v => v * 8)
}
]

View file

@ -0,0 +1,8 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.15, 0.175, 0.2, 0.22, 0.24],
check: ({ avatar }) => avatar.element_type === 205
}
]

View file

@ -0,0 +1,8 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.15, 0.172, 0.195, 0.217, 0.24].map(v => v * 3),
range: ['RZ']
}
]

View file

@ -0,0 +1,11 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.1, 0.115, 0.13, 0.145, 0.16]
},
{
type: '增伤',
value: [0.15, 0.175, 0.2, 0.225, 0.25]
}
]

View file

@ -0,0 +1,11 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.08, 0.092, 0.104, 0.116, 0.128]
},
{
type: '异常精通',
value: [40, 46, 52, 58, 64]
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '暴击率',
value: [0.12, 0.135, 0.155, 0.175, 0.2]
}
]

View file

@ -0,0 +1,13 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.06, 0.069, 0.078, 0.087, 0.096],
isForever: true
},
{
type: '增伤',
value: [0.15, 0.172, 0.195, 0.218, 0.24],
range: ['EQ']
}
]

View file

@ -0,0 +1,13 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '增伤',
value: [0.2, 0.25, 0.3, 0.35, 0.4],
element: 'Physical',
isForever: true
},
{
type: '增伤',
value: [0.25, 0.315, 0.38, 0.44, 0.5]
}
]

View file

@ -0,0 +1,14 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '暴击率',
value: [0.15, 0.188, 0.226, 0.264, 0.3],
isForever: true
},
{
type: '增伤',
value: [0.35, 0.435, 0.52, 0.605, 0.7],
element: 'Ether',
range: ['A']
}
]

View file

@ -0,0 +1,7 @@
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '攻击力',
value: [0.025, 0.028, 0.032, 0.036, 0.04].map(v => v * 10)
}
]

View file

@ -0,0 +1,34 @@
// 函数导出:
/**
* @param {import('../BuffManager.ts').BuffManager} buffM
* @param {number} star 进阶星数
*/
// export function calc(buffM, star) {
// buffM.new({
// type: '暴击伤害',
// value: [0.5, 0.57, 0.65, 0.72, 0.8][star - 1],
// isForever: true
// })
// buffM.new({
// type: '增伤',
// value: [0.2, 0.23, 0.26, 0.29, 0.32][star - 1] * 2,
// element: 'Ice'
// })
// }
// 直接导出:
/** @type {import('../BuffManager.ts').BuffManager['buffs']} */
export const buffs = [
{
type: '暴击伤害',
value: [0.5, 0.57, 0.65, 0.72, 0.8],
isForever: true
},
{
type: '增伤',
value: [0.2, 0.23, 0.26, 0.29, 0.32].map(v => v * 2),
element: 'Ice'
}
]