パッケージ mechanics.optimization

クラス ArtifactOptimizer

java.lang.Object
mechanics.optimization.ArtifactOptimizer

public class ArtifactOptimizer extends Object
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:

  1. 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.
  2. Fixed rolls – 2 rolls of every standard substat type are applied unconditionally (20 fixed rolls total across 10 substat types).
  3. Liquid rolls – 20 flexible rolls are distributed according to one of three strategies, in priority order:
    1. ER pre-fill: enough rolls are assigned to ENERGY_RECHARGE to reach config.minER, unless ER is already handled by manualRolls.
    2. Manual override: if config.manualRolls is populated, rolls are distributed exactly as specified (sorted ascending by target count so smaller targets are filled first).
    3. CR/CD heuristic: when no manual overrides are given and config.useCritRatio is true, rolls are distributed to maintain a 1:2 CR:CD ratio.
    4. Dump: remaining rolls go to the highest-priority stat in config.subStatPriority that still has cap space.

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).

  • コンストラクタの詳細

    • ArtifactOptimizer

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