An object of various requirements you might have for the rift you want
Optional
canSet to true
if you want to only select a rift that you can currently access
Optional
drops?: Item[]Set to an array of item drops you want to come from monsters in the rift
Optional
monsters?: Monster[]Set to an array of Shadow Monsters you want to be available in the rift
Optional
otherSet an optional additional filtering function not covered by the above logic
Optional
sortSet a function used to compare valid rifts between eachother; bigger numbers are better
A rift that meets the criteria you specify, if one exists
Choose a shadow rift to suit your needs