パッケージ model.entity
クラス ArtifactSet
java.lang.Object
model.entity.ArtifactSet
- 直系の既知のサブクラス:
AubadeOfMorningstarAndMoon,EmblemOfSeveredFate,NightOfTheSkysUnveiling,NoblesseOblige,SilkenMoonsSerenade,ViridescentVenerer
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(String name, StatsContainer stats) Constructs an artifact set with the given name and flat stat container. -
メソッドの概要
修飾子とタイプメソッド説明voidapplyPassive(StatsContainer totalStats) Applies the artifact set's dynamic passive bonus to the provided stats container.getName()Returns the artifact set's display name.getStats()Returns the artifact set's flat stat container.voidonBurst(CombatSimulator sim) Called by the simulator when the equipped character uses their elemental burst.voidonDamage(CombatSimulator sim, AttackAction action, double damage, Character owner) Called by the simulator after the equipped character deals a damage instance.voidonReaction(CombatSimulator sim, ReactionResult result, Character triggerCh, Character owner) Called by the simulator when an elemental reaction is triggered on or by the equipped character.voidonSwitchIn(CombatSimulator sim, Character owner) Called by the simulator when the equipped character switches onto the field.voidonSwitchOut(CombatSimulator sim, Character owner) Called by the simulator when the equipped character switches off the field.
-
コンストラクタの詳細
-
ArtifactSet
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
Returns the artifact set's flat stat container.- 戻り値:
- stats container
-
getName
Returns the artifact set's display name.- 戻り値:
- artifact set name
-
applyPassive
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
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 simulatorresult- the reaction result describing the reaction type and datatriggerCh- the character whose hit triggered the reactionowner- the character who has this artifact set equipped
-
onSwitchIn
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 simulatorowner- the character who has this artifact set equipped
-
onSwitchOut
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 simulatorowner- the character who has this artifact set equipped
-
onDamage
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 simulatoraction- the attack action that produced the damagedamage- the final damage value dealtowner- the character who has this artifact set equipped
-