パッケージ mechanics.optimization
クラス ArtifactOptimizer
java.lang.Object
mechanics.optimization.ArtifactOptimizer
Generates a simulated artifact stat block following the KQM Standard (KQMS)
substat methodology.
The three-phase generation process in generate(mechanics.optimization.ArtifactOptimizer.OptimizationConfig, model.stats.StatsContainer, model.stats.StatsContainer, model.stats.StatsContainer) is:
- Main stats – Sands / Goblet / Circlet main-stat values for a max-level 5-star artifact are added, plus fixed Flower (HP) and Feather (ATK) mains.
- Fixed rolls – 2 rolls of every standard substat type are applied unconditionally (20 fixed rolls total across 10 substat types).
- Liquid rolls – 20 flexible rolls are distributed according to
one of three strategies, in priority order:
- ER pre-fill: enough rolls are assigned to
ENERGY_RECHARGEto reachconfig.minER, unless ER is already handled bymanualRolls. - Manual override: if
config.manualRollsis populated, rolls are distributed exactly as specified (sorted ascending by target count so smaller targets are filled first). - CR/CD heuristic: when no manual overrides are given and
config.useCritRatioistrue, rolls are distributed to maintain a 1:2 CR:CD ratio. - Dump: remaining rolls go to the highest-priority stat in
config.subStatPrioritythat still has cap space.
- ER pre-fill: enough rolls are assigned to
Per-stat liquid caps default to 10 rolls and are reduced by 2 for each main-stat piece that uses that stat type (KQMS rule).
-
ネストされたクラスの概要
ネストされたクラス修飾子とタイプクラス説明static classConfiguration passed togenerate(mechanics.optimization.ArtifactOptimizer.OptimizationConfig, model.stats.StatsContainer, model.stats.StatsContainer, model.stats.StatsContainer)to control which main stats and substat allocation strategy to use.static classContainer for the artifact stats and the liquid roll allocation produced bygenerate(mechanics.optimization.ArtifactOptimizer.OptimizationConfig, model.stats.StatsContainer, model.stats.StatsContainer, model.stats.StatsContainer). -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明generate(ArtifactOptimizer.OptimizationConfig config, StatsContainer charBaseStats, StatsContainer weaponStats, StatsContainer setBonusStats) Generates a complete KQMS artifact stat block for a single character.
-
コンストラクタの詳細
-
ArtifactOptimizer
public ArtifactOptimizer()
-
-
メソッドの詳細
-
generate
public static ArtifactOptimizer.OptimizationResult generate(ArtifactOptimizer.OptimizationConfig config, StatsContainer charBaseStats, StatsContainer weaponStats, StatsContainer setBonusStats) Generates a complete KQMS artifact stat block for a single character.See the class-level documentation for the full three-phase description.
- パラメータ:
config- optimization settings (main stats, ER target, roll priorities)charBaseStats- character base stats (ATK, HP, DEF from level/ascension)weaponStats- weapon main and sub-statssetBonusStats- artifact set bonus stats (2-piece / 4-piece effects)- 戻り値:
- an
ArtifactOptimizer.OptimizationResultcontaining the artifact stats and the liquid roll allocation map
-