@0xcap/loot-table

1.0.1 • Public • Published

loot-table

MIT License GitHub issues open

A simple loot table implementation in TypeScript.

Installation

Using yarn

yarn add loot-table

Using pnpm

pnpm add loot-table

Using npm

npm install loot-table

Usage

import LootTable from "0xcap/loot-table";

const lootTable = new LootTable();

lootTable.addItem("item1", 2);
lootTable.addItem("item2", 4);

const drop = lootTable.dropItem();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i @0xcap/loot-table

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

5.31 kB

Total Files

13

Last publish

Collaborators

  • 0xcap