パッケージ model.entity

クラス ArtifactSet

java.lang.Object
model.entity.ArtifactSet
直系の既知のサブクラス:
AubadeOfMorningstarAndMoon, EmblemOfSeveredFate, NightOfTheSkysUnveiling, NoblesseOblige, SilkenMoonsSerenade, ViridescentVenerer

public class ArtifactSet extends Object
Represents an artifact set (e.g. "Emblem of Severed Fate 4pc") equipped on a Character.

An artifact set contributes fixed stats via getStats() and may modify stats dynamically through applyPassive(model.stats.StatsContainer). Event hooks allow set bonuses that trigger on burst use, reactions, character switches, or damage events.

All hook methods have no-op default implementations. Specific set bonuses should subclass ArtifactSet and override only the relevant hooks.

  • コンストラクタの詳細

    • ArtifactSet

      public ArtifactSet(String name, StatsContainer stats)
      Constructs an artifact set with the given name and flat stat container.
      パラメータ:
      name - display name of the set (e.g. "Emblem of Severed Fate (4pc)")
      stats - stats contributed by the set's fixed bonuses (main stats, 2pc bonus)
  • メソッドの詳細

    • getStats

      public StatsContainer getStats()
      Returns the artifact set's flat stat container.
      戻り値:
      stats container
    • getName

      public String getName()
      Returns the artifact set's display name.
      戻り値:
      artifact set name
    • applyPassive

      public void applyPassive(StatsContainer totalStats)
      Applies the artifact set's dynamic passive bonus to the provided stats container. Called during stat compilation after flat stats have been merged. Example: Emblem 4pc converts ER% into Burst DMG%. Default implementation is a no-op.
      パラメータ:
      totalStats - the aggregated stats container to mutate in-place
    • onBurst

      public void onBurst(CombatSimulator sim)
      Called by the simulator when the equipped character uses their elemental burst. Use this hook for set bonuses that proc on burst use. Default implementation is a no-op.
      パラメータ:
      sim - the active combat simulator
    • onReaction

      public void onReaction(CombatSimulator sim, ReactionResult result, Character triggerCh, Character owner)
      Called by the simulator when an elemental reaction is triggered on or by the equipped character. Use this hook for reaction-triggered set bonuses. Default implementation is a no-op.
      パラメータ:
      sim - the active combat simulator
      result - the reaction result describing the reaction type and data
      triggerCh - the character whose hit triggered the reaction
      owner - the character who has this artifact set equipped
    • onSwitchIn

      public void onSwitchIn(CombatSimulator sim, Character owner)
      Called by the simulator when the equipped character switches onto the field. Use this hook for on-switch-in set bonuses. Default implementation is a no-op.
      パラメータ:
      sim - the active combat simulator
      owner - the character who has this artifact set equipped
    • onSwitchOut

      public void onSwitchOut(CombatSimulator sim, Character owner)
      Called by the simulator when the equipped character switches off the field. Use this hook for on-switch-out set bonuses. Default implementation is a no-op.
      パラメータ:
      sim - the active combat simulator
      owner - the character who has this artifact set equipped
    • onDamage

      public void onDamage(CombatSimulator sim, AttackAction action, double damage, Character owner)
      Called by the simulator after the equipped character deals a damage instance. Use this hook for on-hit set bonuses (e.g. stacking mechanics). Default implementation is a no-op.
      パラメータ:
      sim - the active combat simulator
      action - the attack action that produced the damage
      damage - the final damage value dealt
      owner - the character who has this artifact set equipped