forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
f90ba7d989
commit
189b94d6b7
51 files changed
+3448
-154
No files matched your search
@@ -103,6 +103,20 @@ export function randomDungeonByCategory(
|
||||
return randomAvailableDungeon(dungeonsByCategory(category), currentDungeonId, random, eligible);
|
||||
}
|
||||
|
||||
/** Selects an enterable full-length WoW or RoM dungeon, excluding both Bite-Sized modes. */
|
||||
export function randomRegularDungeon(
|
||||
currentDungeonId?: string,
|
||||
random: () => number = Math.random,
|
||||
eligible: (dungeon: DungeonCatalogEntry) => boolean = () => true,
|
||||
): DungeonCatalogEntry | null {
|
||||
return randomAvailableDungeon(
|
||||
DUNGEON_CATALOG.filter((dungeon) => dungeon.category !== "bite-sized"),
|
||||
currentDungeonId,
|
||||
random,
|
||||
eligible,
|
||||
);
|
||||
}
|
||||
|
||||
/** Selects the next location without crossing from randomized mode into authored Bite-Sized mode. */
|
||||
export function randomRandomizedBiteSizedDungeon(
|
||||
currentDungeonId?: string,
|
||||
|
||||
Reference in new issue
Block a user