支持贯穿伤害计算等;新增仪玄伤害计算

This commit is contained in:
UCPr 2025-08-15 23:51:01 +08:00
parent 2c6e20d846
commit a1a3b2b171
21 changed files with 524 additions and 184 deletions

View file

@ -25,11 +25,13 @@ export type buffSource = '音擎' | '套装' | '技能' | '影画' | '核心被
export enum buffTypeEnum {
// 通用乘区
, , , , , , 穿, 穿,
, , , , , , 穿, 穿, ,
// 直伤乘区
, ,
// 异常乘区
, , , , ,
// 贯穿乘区
穿, 穿,
// 其他属性一般不直接影响伤害但可能用于buff是否生效判断/转模
, , ,
}
@ -52,7 +54,7 @@ export interface buff {
* -
* - buff增益类型为**/////** **<1**则将此值理解为**初始属性****百分比提高**
* @string
* buff提高值可能随技能/data.json的"buff"value即为键名
* buff提高值可能随技能/data.json的"buff"value即为键名
* @array
* buff.source自动选择对应等级/source
* -
@ -74,7 +76,7 @@ export interface buff {
range?: string[] | anomaly[] | "追加攻击"[]
/**
* Buff增益技能类型****
* - **range**
* - **range**type时该值生
* - **range****include**buff对**exclude**
* - **range****include**buff生效
* - **redirect****range****include****include****redirect**
@ -82,7 +84,7 @@ export interface buff {
include?: string[]
/**
* Buff增益技能类型****
* - **include**
* - **include**type时该值生
* - **range****include**
*/
exclude?: string[]
@ -142,7 +144,7 @@ export class BuffManager {
const oriBuff = buff
buff = _.merge({
status: true,
is: {},
// is: {},
...this.defaultBuff
}, buff)
if (buff.range && !Array.isArray(buff.range))