• Choose a shadow rift to suit your needs

    Parameters

    • options: {
          canAdventure?: boolean;
          drops?: Item[];
          monsters?: Monster[];
          otherFilter?: ((l: Location) => boolean);
          sortBy?: ((l: Location) => number);
      }

      An object of various requirements you might have for the rift you want

      • OptionalcanAdventure?: boolean

        Set to true if you want to only select a rift that you can currently access

      • Optionaldrops?: Item[]

        Set to an array of item drops you want to come from monsters in the rift

      • Optionalmonsters?: Monster[]

        Set to an array of Shadow Monsters you want to be available in the rift

      • OptionalotherFilter?: ((l: Location) => boolean)

        Set an optional additional filtering function not covered by the above logic

          • (l): boolean
          • Parameters

            • l: Location

            Returns boolean

      • OptionalsortBy?: ((l: Location) => number)

        Set a function used to compare valid rifts between eachother; bigger numbers are better

          • (l): number
          • Parameters

            • l: Location

            Returns number

    Returns Location | null

    A rift that meets the criteria you specify, if one exists