パッケージ mechanics.reaction
クラス ReactionCalculator
java.lang.Object
mechanics.reaction.ReactionCalculator
Computes elemental reactions triggered when a new element interacts with an
existing elemental aura on an enemy.
Supports calculating both Amplifying reactions (Vaporize, Melt) and Transformative reactions (Swirl, Overload, Electro-Charged).
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明static ReactionResultCalculates the reaction result given a trigger element, an aura element, the attacker's Elemental Mastery, and the attacker's level.static ReactionResultCalculates the reaction result including any specific reaction damage bonuses.static doublegetMultiplier(Element trigger, Element aura, double em) Legacy support method to retrieve just the amplifying reaction multiplier.
-
コンストラクタの詳細
-
ReactionCalculator
public ReactionCalculator()
-
-
メソッドの詳細
-
calculate
Calculates the reaction result given a trigger element, an aura element, the attacker's Elemental Mastery, and the attacker's level. Assumes no external reaction bonus percentage.- パラメータ:
trigger- the newly applied elementaura- the existing element on the enemyem- the attacker's Elemental Masterylevel- the attacker's level (used for transformative base damage)- 戻り値:
- a
ReactionResultrepresenting the reaction type and damage/multiplier
-
calculate
public static ReactionResult calculate(Element trigger, Element aura, double em, int level, double reactionBonus) Calculates the reaction result including any specific reaction damage bonuses.- パラメータ:
trigger- the newly applied elementaura- the existing element on the enemyem- the attacker's Elemental Masterylevel- the attacker's levelreactionBonus- additional damage bonus for this specific reaction (e.g. from 4pc Crimson Witch)- 戻り値:
- a
ReactionResultrepresenting the reaction type and damage/multiplier
-
getMultiplier
Legacy support method to retrieve just the amplifying reaction multiplier. To be removed or redirected in future updates.- パラメータ:
trigger- the newly applied elementaura- the existing element on the enemyem- the attacker's Elemental Mastery- 戻り値:
- the amplifying multiplier, or
1.0if no amplifying reaction occurred
-