Skip to main content
Module

x/fortuna/src/fortuna.ts

Weighted gacha system
Go to Latest
import * as fortuna from "https://deno.land/x/fortuna@v3.0.0/src/fortuna.ts";

Classes

Gacha system.

Interfaces

Data transformed by the constructor, fed to the binary search function. The result property holds the result that will be returned after rolling. cumulativeChance is used to make it fit for binary search.

Data fed to the constructor. The result property holds the result that will be returned after rolling. chance is the weight of the result.