How to use the @ffxiv-teamcraft/simulator.Tables.LEVEL_TABLE function in @ffxiv-teamcraft/simulator

To help you get started, we’ve selected a few @ffxiv-teamcraft/simulator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ffxiv-teamcraft / ffxiv-teamcraft / apps / client / src / app / core / data-reporting / quicksynth-result-reporter.ts View on Github external
map(([crafterStatsPacket, classInfo, soulCrystal]) => {
        return {
          craftsmanship: crafterStatsPacket.craftsmanship,
          control: crafterStatsPacket.control,
          cp: crafterStatsPacket.cp,
          clvl: Tables.LEVEL_TABLE[classInfo.level] || classInfo.level,
          specialist: soulCrystal.catalogId === classInfo.classId + 10329
        };
      })
    );
github ffxiv-teamcraft / ffxiv-teamcraft / apps / client / src / app / pages / simulator / rotation-tips / tips / use-ingenuity-before-byregot.ts View on Github external
matches(simulationResult: SimulationResult): boolean {
    const simulation = simulationResult.simulation.clone();
    const clvl = Tables.LEVEL_TABLE[simulation.crafterStats.level] || simulation.crafterStats.level;
    const byregotsIndex = simulation.actions.findIndex(a => a.is(ByregotsBlessing) || a.is(ByregotsMiracle));
    return !simulation.actions
        .slice(byregotsIndex - 5, byregotsIndex)
        .some(a => a.is(Ingenuity) || a.is(Ingenuity))
      && simulation.actions
        .slice(byregotsIndex)
        .some(a => a.is(Ingenuity) || a.is(Ingenuity))
      && simulationResult.hqPercent < 100
      && clvl < simulation.recipe.rlvl;
  }