Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fortuna/mod.ts>GachaData

Weighted gacha system
Go to Latest
interface GachaData
import { type GachaData } from "https://deno.land/x/fortuna@v2.0.2/mod.ts";

Data fed to the constructor. The result property holds the result that will be returned after rolling. chance is the weight of the result. tier is an optional parameter to group the items for rolling.

Properties

result: ItemType
chance: number
optional
tier: number