import { UNIQUE_ITEMS } from "../../../game-data" ; import { groupUniquesBySection } from "./groupUniques" ; import { canBeEthereal } from "./canBeEthereal" ; export function listGrailUniques ( eth = false ) { let collectible = UNIQUE_ITEMS . filter ( ( item ) => item . enabled && item . qlevel > 0 ) ; if ( eth ) { collectible = collectible . filter ( canBeEthereal ) ; } const uniques = groupUniquesBySection ( collectible , true ) ; for ( const tiers of uniques . values ( ) ) { for ( const tier of tiers ) { tier . sort ( ( a , b ) => a . qlevel - b . qlevel ) ; } } return uniques ; }