Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Fortuna.createItem
import { Fortuna } from "https://deno.land/x/fortuna@v2.0.1/history/v1.ts";

Create a gacha item to add to the machine.

Parameters

result: ItemType
  • Data of the item.
optional
chance = [UNSUPPORTED]
  • Weight of the item. More weight = more common.
optional
tier = [UNSUPPORTED]
  • Tier of the item (optional and defaults to 1).

Returns

item - Item to be passed to the constructor