Skip to content

Commit

Permalink
add more detailed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
retraigo committed Jun 2, 2023
1 parent 53dcbab commit 1189adb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fortuna.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ export class GachaMachine<T> {
* const machine = new GachaMachine(items);
* machine.get(11)
* ```
*
* You can roll `n` distinct items using the `get(n, true)` format.
* However, rolling distinct items does not mutate the pool.
* The items rolled are only distinct within the `n` items.
*/
get(count: number, distinct = false) {
if (distinct && count > this.#items.length) {
Expand Down

0 comments on commit 1189adb

Please sign in to comment.