Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
retraigo committed Jul 13, 2023
1 parent 02c072c commit e993d14
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ Weighted gacha system.

## Usage

Create an item using `GachaMachine.createItem`

More weight = more common. Think of it as in terms of probability.

```js

import { GachaMachine } from "https://deno.land/x/fortuna/mod.ts"
// or
import { GachaMachine } from "https://deno.land/x/fortuna/dist/fortuna.js"
import { GachaMachine } from "https://deno.land/x/fortuna/dist/machine.js"

const items = [
{ result: "SSR cool character", chance: 1 },
Expand Down Expand Up @@ -112,6 +110,4 @@ roll(items, chances, 19); // Rolls one item from the list of items using linear

## Documentation

Documentation for the latest version can be found in [https://doc.deno.land/https://deno.land/x/fortuna/mod.ts](https://doc.deno.land/https://deno.land/x/fortuna/mod.ts)

A guide for usage can be found in [docs.nekooftheabyss.moe](https://docs.nekooftheabyss.moe/fortuna) (not updated for v3 yet).
Documentation for the latest version can be found in [https://doc.deno.land/https://deno.land/x/fortuna/mod.ts](https://doc.deno.land/https://deno.land/x/fortuna/mod.ts)

0 comments on commit e993d14

Please sign in to comment.