import { Fortuna } from "https://deno.land/x/fortuna@v1.2.2/mod.ts";
Gacha machine setup to roll items from.
Methods
get(): GachaChoice<ItemType>[] | ItemType[]
num?,
detailed?,
pool?: number[],
Roll a number of items from the machine.
Static Methods
createRollChoice<ItemType>(result: ItemType, chance?): GachaChoice<ItemType>
Create a gacha choice to directly roll using the static roll method.
roll<ItemType>(choices: GachaChoice<ItemType>[], totalChance?: number): GachaChoice<ItemType>
Roll one from an array of gacha choices.