Skip to content

Commit

Permalink
generate permutation comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rorschach7552 committed Sep 19, 2024
1 parent 2a53b46 commit 9062ad4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/features/armor-optimization/generate-permutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import {
ExoticClassCombo,
FragmentStatModifications,
} from '../../types/d2l-types';

/**
* This function generates all possible permutations of armor based on class, selected exotic item (if any),
* and fragment modifications. It tracks and stores the top 30,000 permutations in a max heap based on the total stats.
* The function returns a sorted array of permutations of type DestinyArmor[].
*/
export function generatePermutations(
armorClass: ArmorBySlot,
selectedExoticItem: { itemHash: number | null; slot: armor | null } = {
Expand Down

0 comments on commit 9062ad4

Please sign in to comment.