新增简伤害计算;fix:暴击期望

This commit is contained in:
UCPr 2025-01-18 23:26:17 +08:00
parent 85d368619f
commit 2d1ed8e528
7 changed files with 162 additions and 18 deletions

View file

@ -236,12 +236,12 @@ export class Calculator {
areas.AnomalyProficiencyArea ??= this.get_AnomalyProficiencyArea(skill, usefulBuffs)
areas.AnomalyBoostArea ??= this.get_AnomalyBoostArea(skill, usefulBuffs)
areas.LevelArea ??= this.get_LevelArea()
this.get_AnomalyCRITRate(skill, usefulBuffs)
this.get_AnomalyCRITDMG(skill, usefulBuffs)
props. = this.get_AnomalyCRITRate(skill, usefulBuffs)
props. = this.get_AnomalyCRITDMG(skill, usefulBuffs)
areas.CriticalArea ??= 1 + props.! * (props.! - 1)
} else {
this.get_CRITRate(skill, usefulBuffs)
this.get_CRITDMG(skill, usefulBuffs)
props. = this.get_CRITRate(skill, usefulBuffs)
props. = this.get_CRITDMG(skill, usefulBuffs)
areas.CriticalArea ??= 1 + props.! * (props.! - 1)
}
logger.debug(`暴击期望:${areas.CriticalArea}`)
@ -373,7 +373,7 @@ export class Calculator {
const times = Math.floor((AnomalyDuration * 10) / (anomalyData.interval * 10))
const discover = anomalyData.discover!
const Multiplier = discover.fixed_multiplier + times * discover.multiplier
logger.debug(`${anomalyData.name}紊乱 倍率:${Multiplier}`)
logger.debug(`${anomalyData.name}紊乱倍率:${Multiplier}`)
return Multiplier
}