The raw damage dealt.
The target's current HP
The HP in each segment (total HP / number of segments)
The minimum segment index that can be cleared; default 0
(all segments). Used for the final boss
Optional
currentSegmentIndex: numberThe current segment index of the target; if not provided, it will be calculated from currentHp
and segmentHp
.
A tuple consisting of the adjusted damage and index of the boss segment the target is in after damage is applied.
Calculate the adjusted damage and number of boss segments bypassed for a damage interaction