isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
11 lines • 897 B
TypeScript
import type { CustomStageBossPoolEntry, CustomStageRoomMetadata } from "../../../../interfaces/CustomStageTSConfig";
/**
* Helper function to get a random custom stage room from an array of custom stage rooms.
*
* Note that this function does not simply choose a random element in the provided array; it will
* properly account for each room weight using the algorithm from:
* https://stackoverflow.com/questions/1761626/weighted-random-numbers
*/
export declare function getRandomCustomStageRoom(roomsMetadata: readonly CustomStageRoomMetadata[], seedOrRNG: Seed | RNG | undefined, verbose?: boolean): CustomStageRoomMetadata;
export declare function getRandomBossRoomFromPool(roomsMetadata: readonly CustomStageRoomMetadata[], bossPool: readonly CustomStageBossPoolEntry[], seedOrRNG: Seed | RNG | undefined, verbose?: boolean): CustomStageRoomMetadata;
//# sourceMappingURL=utils.d.ts.map