パッケージ mechanics.reaction

クラス ReactionCalculator

java.lang.Object
mechanics.reaction.ReactionCalculator

public class ReactionCalculator extends Object
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).

  • コンストラクタの詳細

    • ReactionCalculator

      public ReactionCalculator()
  • メソッドの詳細

    • calculate

      public static ReactionResult calculate(Element trigger, Element aura, double em, int level)
      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 element
      aura - the existing element on the enemy
      em - the attacker's Elemental Mastery
      level - the attacker's level (used for transformative base damage)
      戻り値:
      a ReactionResult representing 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 element
      aura - the existing element on the enemy
      em - the attacker's Elemental Mastery
      level - the attacker's level
      reactionBonus - additional damage bonus for this specific reaction (e.g. from 4pc Crimson Witch)
      戻り値:
      a ReactionResult representing the reaction type and damage/multiplier
    • getMultiplier

      public static double getMultiplier(Element trigger, Element aura, double em)
      Legacy support method to retrieve just the amplifying reaction multiplier. To be removed or redirected in future updates.
      パラメータ:
      trigger - the newly applied element
      aura - the existing element on the enemy
      em - the attacker's Elemental Mastery
      戻り値:
      the amplifying multiplier, or 1.0 if no amplifying reaction occurred